vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - WOL - Forums and Threads (https://vborg.vbsupport.ru/showthread.php?t=148370)

harmor19 05-28-2007 10:00 PM

WOL - Forums and Threads
 
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:
PHP Code:

". iif(!$vbulletin->options['WOLguests'], " AND session.userid user.userid", "") ." 


Below Add:
PHP Code:

$inforum_query 




Template Edits
Open: FORUMDISPLAY
Find:
PHP Code:

$vbphrase[currently_active_users


Replace With
PHP Code:

<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.


All times are GMT. The time now is 11:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01170 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete