Hi at all, i've a little problem ^^
So, i've just installed the mod "Hide code Until reply", and to install this mode i had only to modify two files...
the first is "language/en/common.php"
and there i had to added
'HAVE_TO_REPLY' => 'You have to reply to view this code',
And the second file is "includes/bbcode.php" where first i had to find this line
$code = $this->bbcode_tpl('code_open') . $code . $this->bbcode_tpl('code_close');
and then i had to add this part of code
$topic_id = request_var('t', 0);
$sql = 'SELECT *
FROM ' . POSTS_TABLE . '
WHERE topic_id ="' . $topic_id . '"
AND poster_id ="' . $user->data["user_id"] . '"';
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if(empty($row)) $code = $user->lang['HAVE_TO_REPLY'];
So, i need help to modify this mode
Briefly, i wanna show at the admin's group or at other group, the words between code before answering