View Full Version : Miscellaneous Hacks - WOL - Forums and Threads
harmor19
05-28-2007, 10:00 PM
You can view all the users browsing a specific forum and the threads within said forum.
How to Install
Download the product XML. Go into to your ACP --> Plugins & Products --> Manage Products click "[Add/Import Product]". Browse to the product you have just downloaded and click "Import".
File Edits
Open: online.php
Find:
". iif(!$vbulletin->options['WOLguests'], " AND session.userid = user.userid", "") ."
Below Add:
$inforum_query
Template Edits
Open: FORUMDISPLAY
Find:
$vbphrase[currently_active_users]
Replace With
<a href="online.php?f=$foruminfo[forumid]">$vbphrase[currently_active_users]</a>
================================================== =============
harmor19
05-29-2007, 10:44 AM
<a href="http://xenweb.net/forums/" target="_blank">Demo</a>
Go to a forum that people are browsing.
Once in the forum scroll to the bottom and click on " Currently Active Users".
You'll be taken to "online.php?f=X" (Where X is the forum ID).
This will show all the users and guests that are viewing that particular forum and the threads within that forum.
zappsan
05-29-2007, 12:28 PM
This will be very useful for me, thanks.
Going to try it out soon :)
rjmjr69
05-29-2007, 09:32 PM
Woops Was looking for the first line of text in the templates.... Should change those directions to be a bit more specific that a core file needs to be edited.
rjmjr69
05-29-2007, 09:51 PM
I can't get it to work... First time I imported the xml I got an error the second time it looked as if it did not take. Third time is a charm but no good results
harmor19
05-29-2007, 09:59 PM
Do you remember what the error was?
rjmjr69
05-29-2007, 10:12 PM
Sorry I should have taken a screen shot. But it said something about invalid......line.....
FreshFroot
05-29-2007, 10:12 PM
hmm seems interesting.. but since my server is slow.. it might lag it more..
If I get a new server, I'll be using this for sure. :)
Thanks for another nice hack.
harmor19
05-29-2007, 10:46 PM
Page Generation Time
With the product enabled: 0.06717 Seconds
With the product disabled: 0.06390 Seconds
I would rather see the results from a very active site though.
SCRIPT3R
05-29-2007, 10:49 PM
i'm thinking this would add an additional query for each logged in session... on a busy form, that could mean trouble.
harmor19
05-29-2007, 10:52 PM
All I'm adding is AND session.inforum = '$currentforumid' to the WHERE clause and only if the address bar reads "online.php?f=X" otherwise it will return blank.
SCRIPT3R
05-29-2007, 11:07 PM
ahhh, i see that now... just pulling more info from the existing query, i'll check it out.
rjmjr69
05-30-2007, 12:23 AM
So whats the deal? I can't get this to work. I get it to install I make the changes to the files and nothing? I'm using 3.6.7
harmor19
05-30-2007, 12:29 AM
I don't know why it doesn't work on 3.6.7
harmor19
04-06-2008, 10:59 PM
If vBulletin 3.7 has a hook in 'online.php' so manual edits are unneeded you have my permission to upgrade this hack.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.