vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   # of users in forum on forumhome (https://vborg.vbsupport.ru/showthread.php?t=38012)

Sho 08-22-2002 05:05 AM

Hmm ... maybe it doesn't look for the user, but for unique hosts or something?

scottct1 08-22-2002 04:02 PM

Does this hack show only the regsitered members browsing or does it include guests as well?

If it includes guests I will click install. :)

NTLDR 08-22-2002 04:05 PM

Only registered members, you have to wait till vB3 for guests ;)

ExcErr 08-27-2002 05:49 PM

yeah, GUEST ADDON will be very nice...
because i have more guests, than users online........

Tim Wheatley 08-31-2002 02:26 PM

Is it possible that I could install this so only admins/mods can view the counts?

cka 08-31-2002 03:26 PM

Hmm, maybe a good idea for a 'x members, y guests viewing forum' style on this hack would be to add a new column to the sessions table and modify admin/sessions.php... In fact, I think I'll mess around with it and try to get it set up like that.

But all in all, this is a pretty dope hack. Looking forward to getting it working later today.

Barret 09-01-2002 01:49 AM

Clicks install and tries it.
Thanks for the great hack :)

Gohan 09-10-2002 11:23 AM

Quote:

Originally posted by Orlandu
Well Neo, if you don't mind I have a addition to that hack. It will say "1 users" how it is, but I added a little bit and now it will say "1 user" and then "2 users" respectively.

I'll post if, but if you won't allow it then I will remove it.

Instead of add this:
PHP Code:

        global $forumbrowsers;
        
$count $forumbrowsers[$forum['forumid']];
        if (
intval($count) < 1) {
            
$count 0;
        } 

Add this for the correct term for 1 user:
PHP Code:

        global $forumbrowsers;
        
$count $forumbrowsers[$forum['forumid']];
                
$s 's';
        if (
intval($count) < 1) {
            
$count 0;
        }
        if (
intval($count) == 1) {
            
$s '';
        } 

That's in both forumdisplay.php and index.php
Then you have to change the counter to something like this:
Code:

($count user$s browsing)
in the right template.
Hope you like ;)

Better change code ;)
PHP Code:

        if (intval($count) == 1) { 

to:
PHP Code:

if (intval($count) == OR intval($count) == 1) { 

btw Great hack! also does working on vb 2.2.7

Dan Flynn 09-27-2002 03:32 AM

This seems like a very easy install. How ever I can't find this
<td bgcolor="#006633"><smallfont color="#FFCC00"><b>Threads</b></smallfont></td> in the forumhome template. You said look there or where it might be find.

Where else could it be. Please Help

Kedmyster 10-05-2002 05:02 PM

maybe it's a little late but can someone please post the whole code for the ($browsing the forum) - or something like that.
everything is screwed. I did it once but it screwed the forum so I don't want to try it again without having the right instructions.

Thanks.


All times are GMT. The time now is 07:58 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.01406 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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