
Re: BBCode Hide message with an image buttom
mmm, i don't think if it's ok. i have no idea of how to make it :P
try in bbcode.php and viewtopic.php
replace
if($userdata['session_logged_in'])
{
$sql = "SELECT *
FROM " . THANKS_TABLE . "
WHERE topic_id = $topic_id
AND user_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$show = $db->sql_numrows($resultat) ? true : false;
if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD))
{
$show = true;
}
}
with
if($userdata['session_logged_in'])
{
$sql = "SELECT user_id FROM " . USER_GROUP_TABLE . " WHERE group_id = x";
$result = $db->sql_query($sql);
if ( $userdata['user_id'] == $result )
{
$show = true;
}
if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD))
{
$show = true;
}
}
IMPORTANT: Replace in WHERE group_id = x"; the x, with the id of the group you want to see the hidden code.