##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