The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Number of Guests browsing current forum
Anyone have a idea how to make it?
I have try to make it by self, but no luck with it |
#2
|
|||
|
|||
Well its not exactly possible as their is a column called inforum on the user table so when a user enters a forum this column is updated in the table.
Guests don't have entires in the user table so they wont show up. open forumdisplay.php look for PHP Code:
PHP Code:
|
#3
|
||||
|
||||
I released this hack a few days ago: https://vborg.vbsupport.ru/showthrea...threadid=38005
|
#4
|
|||
|
|||
thats not the number of guests, that just the number of users that have user accounts.
I believe that yasunari wanted the number of actual unregistered users browsing the forums. |
#5
|
||||
|
||||
That code will only work for people who are browsing forumdisplay.php though, it won't catch guests that read actual threads or something. That will require adding an inforum field to the session table (and removing it from the user table) to keep track of everyone.
|
#6
|
||||
|
||||
/me feels very silly right now...
|
#7
|
|||
|
|||
good point chen, i might try changing of the session table to hold inforum and see how much trouble it causes editing it, I don't expect much though.
Just changing the query at bottom of forumdisplay.php to join the user table based on the session table inforum. |
#8
|
||||
|
||||
I'd say remove the field from the user table altogether and just use the session table. You only need to edit updateuserforum() function to chagne the shut down query, and forumdisplay.php to grab the data from the session table... but you'll probably need two queries since you want to group first by userid then by IP address, I think.
|
#9
|
|||
|
|||
Yes PPN is right, I need to show the total Guests on each Forums..
I have try PPN's method,it only show the total Guest on the forumdisplay.php,but not the thread err... *waiting for the new method.. thanks* |
#10
|
|||
|
|||
Has anyone released this? I'm also interested in this hack.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|