The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have a custom page that my chatroom is on. I would like to have it so that it shows the number of users browsing the chatroom page in the nav bar...like this:
Chatroom (2) Does anyone know how i can do this? |
#2
|
||||
|
||||
![]()
You should ask this in the modification thread since they know the database structure for the chatroom and know what query to make.
|
#3
|
|||
|
|||
![]()
ah i dont have a chatroom on my server, because i found no matter what chatroom modification i added, it kept hanging if any more than 4 users joined it. The chatroom is a big feature on my site. So basically i have a free hosted chatbox, from xat.com on a custom page, and so its how to add the amount of users browsing that page that i need to know.
|
#4
|
||||
|
||||
![]() Quote:
|
#5
|
|||
|
|||
![]()
its not to show whom is in the chatroom, its to show the count of whom is browsing the page itself that the chatroom is on.
![]() |
#6
|
||||
|
||||
![]()
Well, a good place to start for that would be to copy the code in the showthread.php page that grabs the users browsing the thread (or the forumdisplay.php page which does the same only for the forum). It starts around line 1728. If all you want is the number, you can probably simplify that quite a bit - like you won't need all the stuff to do with the forumdisplay_loggedinuser template. The query gets it's data from the session table, so you'll want to modify the query to grab just sessions where the user has that page in the location field. I'm terrible at writing queries to work on live sites where I can only try it on a test site so I won't try with this one. Perhaps you can do it or someone else will wander in and try.
|
#7
|
|||
|
|||
![]()
eek sounds complex! Mind you i like a challenge so may have a look myself. Thanks for taking the time to help me
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|