https://www.icyphoenix.com/viewtopic.php?f=28&t=1533&p=18991#p18991
-----------------------------------
Zuker
Mon 27 Aug, 2007 17:36

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

[code linenumbers=false]			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;
				}
			}[/code]

with

[code linenumbers=false]			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;
				}
			}[/code]

IMPORTANT: Replace  in WHERE group_id = x"; the x, with the id of the group you want to see the hidden code.


