Author Topic: Online members on admin panel  (Read 6302 times)

0 Members and 1 Guest are viewing this topic.

  • ptcash
  • Member
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
  • Karma: +0/-0
  • Site Owner
  • Referrals: 0
    • ptcash
Online members on admin panel
« on: May 02, 2013, 09:59:15 PM »
have put the free online addon in admin panel instead

make a php file with this code and name it onlinemem and put it in admin2 folder
Code: [Select]
<p><b><font color="#03FC07">ONLINE MEMBERS ON ADMIN PANEL</font></b></p>

  <p><b><font color="#effa07">
Online users which have been active within the pass 15 minutes!

<img src="templates/<?php echo $settings[template?>/images/um_manage.png" width="64" height="64" />

$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

i use this icon if you whant it(or just change the directory in onlinemem php script

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
« Last Edit: May 02, 2013, 10:25:12 PM by rustydust »


advertise here