Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hide Administrator in "Who is Online" and "Profil stats" Details »»
Hide Administrator in "Who is Online" and "Profil stats"
Version: 1.00, by Allan Allan is offline
Developer Last Online: Mar 2017 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.0 Rating:
Released: 12-14-2009 Last Update: Never Installs: 27
Template Edits
 
No support by the author.

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> 

Screenshots

File Type: gif aboutme.gif (4.7 KB, 0 views)
File Type: gif ministats.gif (17.2 KB, 0 views)
File Type: gif wol.gif (6.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
8thos, FReeSTER

Comments
  #12  
Old 06-01-2010, 12:48 PM
whitedd's Avatar
whitedd whitedd is offline
 
Join Date: Jan 2010
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is for admin who have ID 1...on our forum ,we have 4 admins...how to hides whole group of administrators???...
Reply With Quote
  #13  
Old 06-09-2010, 11:09 PM
whitedd's Avatar
whitedd whitedd is offline
 
Join Date: Jan 2010
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...no one?...
Reply With Quote
  #14  
Old 06-10-2010, 01:11 AM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change userid to usergroup or groupid?
Reply With Quote
  #15  
Old 06-10-2010, 10:53 PM
whitedd's Avatar
whitedd whitedd is offline
 
Join Date: Jan 2010
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dont work...
Reply With Quote
  #16  
Old 03-06-2011, 08:00 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by whitedd View Post
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">
Reply With Quote
  #17  
Old 03-08-2011, 07:07 PM
Fire112 Fire112 is offline
 
Join Date: Sep 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 04-09-2011, 01:11 PM
The Rocketeer's Avatar
The Rocketeer The Rocketeer is offline
 
Join Date: Jun 2010
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i wonder if this will hide me from other admins
Reply With Quote
  #19  
Old 06-09-2011, 06:37 AM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Reply With Quote
Благодарность от:
FReeSTER
  #20  
Old 07-31-2011, 07:31 PM
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Location: Rome
Posts: 730
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fire112 View Post
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.
Reply With Quote
  #21  
Old 07-31-2011, 08:50 PM
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Location: Rome
Posts: 730
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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> 
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:45 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.05012 seconds
  • Memory Usage 2,404KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (9)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete