I have had to take out the names from the front page member block, because of them slowing down my site, but I would like to create a block that shows which admins are online at any time.....
The problem is, it has to look in the users table, for level 2, and the sessions table, to see that the admin name is online.......
Any help with that.....?
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Fri Apr 04, 2003 7:54 am
actually, admins aren't stored in the users table (unless ur just talking about teh phpBB forum admin).
Admins are stored in the Authors table.
Anyway, i don't see why it should be hard to sort out, all you ahve to do is run 2 SQL queries, with the second one refering to the first.
Download my modules tweak, and look at the code where it looks in the modules table and pulls the info for the categories and then the mdoules themselves for an idea of what to do. Only difference being that the second SQL query will be for a different table rather than 2 queries based on the same one.
AI
dsnail2000 Site Admin
Joined: Mar 17, 2003
Posts: 331
Location: Northern VA
Posted:
Tue Apr 22, 2003 11:57 am
Hey CSFrance, did you get that code to work? Did you make it a standalone block?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum