JohnCMS [thank] BBCode

227
.
Mod Thank Post to sh0w text

##edit File
forum/index.php

Search For:
$text = functions :: smileys ( $text , $res [ 'rights' ] ? 1 : 0 );


put this after the above code:
$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' , '<div class="rmenu"><p align="center"><b>POST LOCKED</b><br>click thanks to Unlock content</p></div>' , $text );
} else {
$text = preg_replace ( '#\[thank\](.*?)\[/thank\]#si' , '\1' , $text );
}


BBCode: [#thank]your txt[/#thank]
Remove: #

Author: Sohel Rana
Demo: http://masterloft.tk
.
Блиносвёрт ?
Sohel, cool site, but I couldn't find there demo, can you upload screenshot?
.
Nice design thank
.
что за мод?
.
Hat-Trik (14.04.2013 / 10:15)
что за мод?
Если я правильно понял, то это Походу спойлер при нажатии на который выводится пользователи которые поблагодарили за пост. . Или я ошибаюсь.-
.
Sohel (14.04.2013 / 04:13)
Mod Thank Post to sh0w text

##edit File
forum/index.php

Search For:
$text = functions :: smileys ( $text , $res [ 'rights' ] ? 1 : 0 );


put this after the above code:
[php]$chec
I have been added this code to the forum/index.php. After that, what should I do? I try to post with thank BB Code, but it shown as text.
Всего: 6