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)
-   -   disable who's online but still view in acp (https://vborg.vbsupport.ru/showthread.php?t=58238)

joeydood 10-26-2003 10:00 PM

disable who's online but still view in acp
 
what this does:
only admins can see who's online by basically removing the requirement for the on/off option in the online.php and hiding a copy of it as adminonlie.php in /forums/admin/.

tested on 2.3.2

no support, i'm not sure if this is even a hack!

here's how to diable who's online and still view it in the acp:

1. edit /forums/online.php:

comment out the following code by putting slashes in front the following lines. this disables the requirement of the option being read in the settings:

//if (!$WOLenable) {
// eval("standarderror(\"".gettemplate("error_whosonl inedisabled")."\");");
//}

2. in online.php replace ALL instances of 'online.php' with 'adminonline.php'. this is so that when the page refreshes automagically, it will call itself, not the standard 'online.php' page.

3. save the online.php to adminonline.php

4. upload adminonline.php to /forums/admin/

5. edit /admin/index.php, put the following line of code after some meaningful place where you want the option to be in your acp navbar:

makenavoption("Users Online","adminonline.php?s=","<br>");

6. disable who's online in the acp so members can't click it.

7. goto acp and click your new link "Users Online" in your navbar.

Dean C 10-27-2003 08:50 PM

Would be nice if you added your php code in the php tags so it will be easier to read :)

Logician 10-28-2003 11:09 AM

I can't see how this is different that changing vb usergroup permission ("Can View Who's Online") to restrict WOL view to admins only?

Thx for sharing though..

joeydood 10-28-2003 12:53 PM

Quote:

Originally Posted by Logician
I can't see how this is different that changing vb usergroup permission ("Can View Who's Online") to restrict WOL view to admins only?

Thx for sharing though..

DOH! i'm a newbie, please forgive...

Logician 10-28-2003 07:43 PM

Quote:

Originally Posted by joeydood
DOH! i'm a newbie, please forgive...

nothing to forgive.. Please keep hacking and keep sharing.. :) This is what this community is for..


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.01078 seconds
  • Memory Usage 1,717KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete