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

whitedd 06-01-2010 12:48 PM

this is for admin who have ID 1...on our forum ,we have 4 admins...how to hides whole group of administrators???...

whitedd 06-09-2010 11:09 PM

...no one?...

Charlie98902 06-10-2010 01:11 AM

Change userid to usergroup or groupid?

whitedd 06-10-2010 10:53 PM

dont work... :(

Phaedrus 03-06-2011 08:00 PM

Quote:

Originally Posted by whitedd (Post 2046498)
this is for admin who have ID 1...on our forum ,we have 4 admins...how to hides whole group of administrators???...

Add the numbers to the !=1

I believe you separate by commas... He currently has it set for Userid 1, but I only use that one rarely. I would just add my own userid, then add the ones for others I wanted to make invisible.


So this code:
Code:

<vb:if condition="$userinfo['userid'] != 1">
Would read this way (if I am right):
Code:

<vb:if condition="$userinfo['userid'] != 1,2,45,12">

Fire112 03-08-2011 07:07 PM

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>


i not have in the "memberinfo_block_aboutme

The Rocketeer 04-09-2011 01:11 PM

i wonder if this will hide me from other admins:p:rolleyes:

AURFSCAN 06-09-2011 06:37 AM

and to hide admin from memberlist...

goto memberlist_resultsbit template

add
Code:

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

after
Code:

<tr>

at start of template

and add

Code:

</vb:if>

before

Code:

</tr>
at end of template.

:)

FReeSTER 07-31-2011 07:31 PM

Quote:

Originally Posted by Fire112 (Post 2171062)
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>


i not have in the "memberinfo_block_aboutme

I have the same problem.

FReeSTER 07-31-2011 08:50 PM

this is what I have on the memberinfo_block_aboutme

PHP Code:

<vb:if condition="$show['simple_link']">
        <
class="floatright" href="{vb:link member,{vb:raw bbuserinfo},{vb:raw block_data.pageinfo_aboutme_view}}">{vb:rawphrase view_your_about_me}</a>
</
vb:if>
<
vb:if condition="$show['edit_link']">
    <
class="floatright" href="{vb:link member,{vb:raw bbuserinfo},{vb:raw block_data.pageinfo_aboutme_edit}}">{vb:rawphrase edit_your_about_me}</a>
</
vb:if>
<
div class="blocksubhead subsectionhead userprof_headers userprof_headers_border">
    <
span class="subsectiontitle">{vb:rawphrase about_x, {vb:raw userinfo.username}}</span>

<!-- 
basic information -->
<
h4 class="subsectionhead-understate" id="about-me">{vb:rawphrase basicinfo}</h4>
<
br />
</
div>
<
div class="subsection">
            <
vb:if condition="$prepared['birthday']">
                <
dl class="stats userprof_content userprof_content_border">
                    <
dt>{vb:rawphrase birth_date}</dt>
                    <
dd> {vb:raw prepared.birthday} <vb:if condition="$prepared['age']">({vb:raw prepared.age})</vb:if></dd>
                </
dl>
            <
vb:elseif condition="$prepared['age']" />
                <
dl class="stats userprof_content userprof_content_border">
                    <
dt>{vb:rawphrase age}</dt>
                    <
dd>{vb:raw prepared.age}</dd>
                </
dl>
            </
vb:if>

    {
vbraw block_data.fields}
</
div>
<
vb:if condition="$prepared['signature']">
<
div class="blocksubhead subsectionhead userprof_headers userprof_headers_border">
<
h4 class="subsectionhead-understate">{vb:rawphrase signature}</h4>
<
br />
</
div>
<
div class="blockbody subsection userprof_content userprof_content_border">
    {
vb:raw prepared.signature}
</
div>
</
vb:if> 


Marcin_J_ 01-07-2012 02:12 PM

Quote:

Originally Posted by Fire112 (Post 2171062)
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>


i not have in the "memberinfo_block_aboutme

Quote:

Originally Posted by FReeSTER (Post 2227354)
I have the same problem.

vb 4.1.9 - memberinfo_block_statistics

stevieb 11-04-2014 09:17 AM

doesn't work in vB 4.2 :(

thetechgenius 06-05-2015 08:09 PM

Can you upload English screenshots?


All times are GMT. The time now is 06:03 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.01567 seconds
  • Memory Usage 1,822KB
  • 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
  • (9)bbcode_code_printable
  • (9)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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