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)
-   -   "Users browsing this thread" (https://vborg.vbsupport.ru/showthread.php?t=36841)

cditty 04-03-2002 12:45 AM

How would I make this visible to admins and mods only?

Chris

TWTCommish 04-03-2002 01:12 PM

Quote:

Originally posted by cditty
How would I make this visible to admins and mods only?
I think you'll want to replace this...

PHP Code:

    if ($browsers) {
        eval(
"\$onlineusers = \"".gettemplate('showthread_browsing')."\";");
    } 

...with this...

PHP Code:

    if ($browsers && ($bbuserinfo[usergroupid] == || $bbuserinfo[usergroupid] == || $bbuserinfo[usergroupid] == 7)) {
        eval(
"\$onlineusers = \"".gettemplate('showthread_browsing')."\";");
    } 

...I think that should make it visible to Mods, Super Mods, and Admins. Haven't tested it, though. :)

Admin 04-03-2002 03:32 PM

Or use ... and ismoderator(). :)

TWTCommish 04-03-2002 03:36 PM

Shhhhh! Do you want EVERYONE to know that I don't know jack squat about vb? :D

Admin 04-03-2002 03:39 PM

Heh, I was using what you posted as well until very recently, when I discovered ismoderator(). :)

Gutspiller 04-05-2002 09:10 PM

Can somebody tell me if this hack would work with 2.0.3? And where is the "Who's Browsing This Forum" hack? I want that one too, is that included in 2.2.4/5 :ermm:

I have been looking for a hack that does this ever since I installed my board, but yet again I am stuck with my version and am not willing to upgrade. Somebody please tell me this hack will work or might work with 2.0.3???

Thanks for any help you guys can provide.

Lyric Olympics 04-06-2002 01:06 AM

i have 2.2.5
and this line isn't in newreply.php

PHP Code:

updateuserforum($threadinfo['forumid']); 


FWC 04-06-2002 06:45 AM

Quote:

Originally posted by Lyric Olympics
i have 2.2.5
and this line isn't in newreply.php

PHP Code:

updateuserforum($threadinfo['forumid']); 


It's line 72 of an unhacked 2.2.5 newreply.php.

Admin 04-06-2002 07:35 AM

That line is changed if you installed my Users Browsing Thred hack, Olympics.

Lyric Olympics 04-06-2002 02:53 PM

that's odd
i have no hacks and i've uploaded the files
but my newreply is different
i downloaded a fresh copy and reuploaded again
and now i can find that line
odd
thanx anyways


All times are GMT. The time now is 06:13 AM.

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.01084 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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