BLOGCODE.HEXAT.COM
$text= functions::smileys($text,$res['rights'] ? 1:0);
thêm code sau vào dưới đoạn đó
$checkthank= mysql_query('SELECT COUNT(*) FROM `forum_thank` WHERE `userthank` = "'.$user_id.'" and `topic` = "'.$res['id'].'" and `user` = "'.$res['user_id'].'"');
$thankcheck= mysql_result($checkthank,0);
if($thankcheck<1&&$user_id!=$res['user_id']){$text= preg_replace('#\[thank\](.*?)\[/thank\]#si','
hidden post
click thanks to Unlock content
',$text);
}else{
$text= preg_replace('#\[thank\](.*?)\[/thank\]#si','',$text);
}- Để xài thì [thank]nội dung[/thank]
| - Share: BBCode: Link: |
Cùng chuyên mục