@Andreas
I have the gameroom mod
on a few sites I manage
the button has a active users [3] in the button <example
here is the code from the plugin
Code:
$lastGameroomTime = time() - 30;
$result = $vbulletin->db->query_read("SELECT COUNT(userID) AS c FROM " . TABLE_PREFIX . "session WHERE lastactivity > $lastGameroomTime AND location LIKE '%gameroom%'");
$row = $vbulletin->db->fetch_array($result);
$playersInGameroom = $row['c'];
$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'gameroom')
{
$vbulletin->options['selectednavtab']='gameroom_tab';
$tabselected = ' class="selected"';
$tablinks = ' <ul class="floatcontainer">
<li><a href="Gameroom.php">Casino [' . $playersInGameroom . ']</a></li>
</ul> ';
}
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="gameroom.php">Casino [' . $playersInGameroom . ']</a></li>' ;
How would I go about adding this
will your mod do this?
here is a screen shot
thanks for any help with this