vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Hide Administrator in "Who is Online" and "Profil stats" (https://vborg.vbsupport.ru/showthread.php?t=230238)

Allan 12-14-2009 10:00 PM

Hide Administrator in "Who is Online" and "Profil stats"
 
1 Attachment(s)
This mod hides the presence of the administrator to members.
  • In the "whosonlinebit" template (Who is online ?), add on the top:
PHP Code:

<vb:if condition="$userinfo['userid'] != 1"

  • Add, in the same template, at the bottom:
PHP Code:

</vb:if> 

  • In the "memberinfo_block_aboutme" template, find:
PHP Code:

<vb:if condition="$prepared['action']">
    <
dl class="stats">
        <
dt>{vb:rawphrase current_activity}</dt>
        <
dd> {vb:raw prepared.action} {vb:raw prepared.where}</dd>
    </
dl>
    </
vb:if> 

  • Replace with:
PHP Code:

    <vb:if condition="$userinfo['userid'] != 1">
    <
vb:if condition="$prepared['action']">
    <
dl class="stats">
        <
dt>{vb:rawphrase current_activity}</dt>
        <
dd> {vb:raw prepared.action} {vb:raw prepared.where}</dd>
    </
dl>
    </
vb:if>
    </
vb:if> 

  • in the "memberinfo_block_ministats" template , find:
PHP Code:

<vb:if condition="$prepared['action']">
    <
dl class="stats">
        <
dt>{vb:rawphrase current_activity}</dt>
        <
dd> {vb:raw prepared.action} {vb:raw prepared.where}</dd>
    </
dl>
    </
vb:if> 

  • Replace with:
PHP Code:

        <vb:if condition="$userinfo['userid'] != 1">
        <
vb:if condition="$prepared['action']">
    <
dl class="stats">
        <
dt>{vb:rawphrase current_activity}</dt>
        <
dd> {vb:raw prepared.action} {vb:raw prepared.where}</dd>
    </
dl>
    </
vb:if>
    </
vb:if> 

  • in the "memberinfo_block_statistics" template , find:
PHP Code:

<vb:if condition="$prepared['action']">
        <
dl class="stats">
            <
dt>{vb:rawphrase current_activity}</dt>
            <
dd> {vb:raw prepared.action} {vb:raw prepared.where}</dd>
        </
dl>
        </
vb:if> 

  • Replace with:
PHP Code:

<vb:if condition="$userinfo['userid'] != 1">
        <
vb:if condition="$prepared['action']">
        <
dl class="stats">
            <
dt>{vb:rawphrase current_activity}</dt>
            <
dd> {vb:raw prepared.action} {vb:raw prepared.where}</dd>
        </
dl>
        </
vb:if>
        </
vb:if> 


fourat 12-15-2009 11:40 PM

Thank you allan
Merci boku

ChopSuey 12-16-2009 07:14 AM

English demo's please :)

Merjawy 12-17-2009 11:58 AM

Nice one.. Thanks

It doesn't really hide Admin totally but at least he/she won't show up in Who's Online and noone knows what the Admin is doing.

Still shows on forum home and profile shows last activities etc.

Installed for now as I don't like anyone to know where and what I am doing

Thanks again
RC4

Allan 12-18-2009 06:28 AM

Quote:

Originally Posted by Merjawy (Post 1932184)
Nice one.. Thanks

It doesn't really hide Admin totally but at least he/she won't show up in Who's Online and noone knows what the Admin is doing.

Still shows on forum home and profile shows last activities etc.


Installed for now as I don't like anyone to know where and what I am doing


Thanks again
RC4

Choice invisible mode :)

Cableguy69 12-18-2009 05:05 PM

Yeah that's what I was going to say lol, if you want to hide just set yourself to invisible via your user cp, no need to go editing templates.

Charlie98902 12-18-2009 05:10 PM

This mod allows an admin to hide when you allow mods to see those that are invisible. So mods think you are not online.

Dr.osamA 12-18-2009 09:02 PM

good job allan

installed
________
Long beach patient resource cooperative inc.

Merjawy 12-18-2009 11:23 PM

Quote:

Originally Posted by Allan (Post 1932734)
Choice invisible mode :)


Theres invisible mode in vB???? No wayyyyyyyyyyyyyyyyyyyy :D

the thing is that other admins and in some cases SMODs can see the invisible and I don't like anyone to see what I am doing..

currerntlly I am using Who's Online Faker hack for 3.8 and loving it


Cheers

SİMAR 12-21-2009 05:04 PM

Nice one.. Thanks


All times are GMT. The time now is 12:08 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.01218 seconds
  • Memory Usage 1,771KB
  • 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
  • (8)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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