Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
// Thanks Ajax Adaptex By ThiagoInfo - Start
if ($this->ipsclass->vars['thanks_mod_enable'])
{
$thank_pid = $row['pid'];
if ($this->ipsclass->vars['thx_topics_replies'])
{
$row['thanks_button'] = "<a style=\"cursor:pointer;\" id=\"thank_".$thank_pid."b\" onclick=\"thanks_add('thanks', '{$thank_pid}', '{$row['author_name']}','{$row['author_id']}')\"><img src=\"style_images/<#IMG_DIR#>/p_thanks.gif\" alt=\"Спасибо\" title=\"Спасибо\" /></a>";
}
if ($row['pid'] == $this->topic['topic_firstpost'])
{
$row['thanks_button'] = "<a style=\"cursor:pointer;\" id=\"thank_".$thank_pid."b\" onclick=\"thanks_add('thanks', '{$thank_pid}', '{$row['author_name']}','{$row['author_id']}')\"><img src=\"style_images/<#IMG_DIR#>/p_thanks.gif\" alt=\"Спасибо\" title=\"Спасибо\" /></a>";
}
if ($this->ipsclass->member['id'] == $row['author_id'] || !$this->ipsclass->member['id'])
{
$row['thanks_button'] = "";
}
$thank_text = "";
$thank_text1 = "";
$tquery = $this->ipsclass->DB->query("SELECT * FROM ibf_post_thanks WHERE postid = '$thank_pid' ORDER BY username ASC");
$thank_tot = $this->ipsclass->DB->get_num_rows($tquery);
if ($thank_tot)
{
$thank_text1 = "<div class=\"row1\" colspan=\"2\" align=\"top\"><strong>{$this->ipsclass->lang['thx_thanks1']} {$thank_tot} {$this->ipsclass->lang['thx_thanks2']} {$row['author_name']} {$this->ipsclass->lang['thx_thanks3']}:</strong></div>";
while($th_row =$this->ipsclass->DB->fetch_row($tquery))
{
if ($this->ipsclass->member['id'] == $th_row['userid'])
{
$row['thanks_button'] = "";
}
$thank_text .= "<a href=\"index.php?showuser=".$th_row['userid']."\">".$th_row['username']."</a>, ";
}
$thank_text = preg_replace( "/,\s+$/", "" , $thank_text);
}
$row['who_thanks'] = "<tr><td class=\"row2\" colspan=\"2\" align=\"top\"><div id=\"";
$row['who_thanks'] .= "thank_".$thank_pid."\"> \n{$thank_text1} {$thank_text}</div></td></tr>\n";
if ($this->ipsclass->vars['thx_member_display'])
{
$thanksquery = $this->ipsclass->DB->query("SELECT thanks_point FROM ibf_members WHERE id = '{$poster['id']}'");
$thanks = $this->ipsclass->DB->fetch_row($thanksquery);
$poster['thanks_point'] = $this->ipsclass->compiled_templates['skin_topic']->member_thanks_point( $thanks['thanks_point'] );
}
}
//Thanks Ajax Adaptex By ThiagoInfo - End