TalkPTC
The MarketPlace => Mods and Addons => Aurora Free Addons => Topic started by: rustydust on May 02, 2013, 09:59:15 PM
-
have put the free online addon in admin panel instead
(http://img15.imageshack.us/img15/4674/onlinemembers.png)
make a php file with this code and name it onlinemem and put it in admin2 folder
<p><b><font color="#03FC07">ONLINE MEMBERS ON ADMIN PANEL</font></b></p>
<blockquote>
<p><b><font color="#effa07">
Online users which have been active within the pass 15 minutes!
</font></b></p>
</blockquote>
<img src="templates/<?php echo $settings[template] ?>/images/um_manage.png" width="64" height="64" />
<?
$timenow=time();
$select = mysql_query("SELECT * FROM user WHERE last_act > '".(time()-900)."' ORDER by username");
$num = mysql_num_rows($select);
while ($i = mysql_fetch_object($select)){
$echo = "$i->username ";
echo "<a href=\"admin.php?view=admin&ac=members&search=$echo\">$echo</a> | </h447>";
}
?>
then go to your admin panel-- settings/admin panel /admin panel and Create Sub Category(online members) to members directory
like this picture
(http://img707.imageshack.us/img707/8987/admingh.png)
i use this icon if you whant it(or just change the directory in onlinemem php script(http://img18.imageshack.us/img18/4994/ummanage.png)
hope you enjoy it :)
ps:if you whant to change the minutes modify this code (time()-900) (3600 is 1 hour if i remember it right)
welcome to my site www.ptcash.info