Displaying a gif for a paying member - 12/29/2008 7:44 PM
I started a thread over at ubb but it looks like it is more of a mod than is supported over there. I have tried to edit post_side.tpl with
and added a query to showflat.inc.php like this that I took from user.inc.php I also added "groups" => $groups, to the Smarty part of the code...
Any ideas as to why the gif does not show up
Thanks,
Ian
Code
<br />
{if (in_array("10",$groups))}
<img src="{$config.BASE_URL}/images/member.gif" alt="Member" />
{/if}
and added a query to showflat.inc.php like this that I took from user.inc.php I also added "groups" => $groups, to the Smarty part of the code...
Code
// First we grab all of their groups
$query = "
select GROUP_ID
from {$config['TABLE_PREFIX']}USER_GROUPS
where USER_ID = ?
";
$sth = $dbh->do_placeholder_query($query,array($Uid),__LINE__,__FILE__);
$groups = array();
while($result = $dbh->fetch_array($sth)) {
$groups[] = $result['GROUP_ID'];
} // end while
$_SESSION['mygroups'] = serialize($groups);
Any ideas as to why the gif does not show up
Thanks,
Ian