Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

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

Category: Mini Mods - Version: 3.7.0 Rating:
Released: 05-12-2008 Last Update: Never Installs: 33
Template Edits
Translations  
No support by the author.

Hide Admin in "Who is Online" and "Profil"


Description: Hide Admin in "Who is Online" and "Profil"
Recommandation: Install this plugin so: https://vborg.vbsupport.ru/showp...05&postcount=4 (no tested for vB 3.7)

PS: Only User ID1 with this condition ^^
  • In the "MEMBERINFO" template (profil), find:
Code:
<if condition="$prepared['action']">
                            <span class="shade">$vbphrase[current_activity]:</span> $prepared[action] $prepared[where]
                        </if>
  • Remplace by:
Code:
<if condition="$userinfo['userid'] != 1">
                        <if condition="$prepared['action']">
                            <span class="shade">$vbphrase[current_activity]:</span> $prepared[action] $prepared[where]
                        </if></if>
  • In the "memberinfo_block_statistics" template (profil), find:
Code:
<if condition="$prepared['action']">
                <li><span class="shade">$vbphrase[current_activity]:</span> $prepared[action] $prepared[where]</li>
            </if>
  • Replace by:
Code:
<if condition="$userinfo['userid'] != 1">
            <if condition="$prepared['action']">
                <li><span class="shade">$vbphrase[current_activity]:</span> $prepared[action] $prepared[where]</li>
            </if>
</if>
  • In the "whosonlinebit" template (who is online), add to the top:
Code:
<if condition="$userinfo['userid'] != 1">
  • And bottom, add:
Code:
</if>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-12-2008, 01:02 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got an error that way so I tried the second way I posted error so it has to be the first way?

The other way I was doing it I saw it wasn't working as it put != 5"> in my header so what I did was this:

This is at the top
Code:
<if condition="$userinfo['group'] != 6">
<if condition="$userinfo['group'] != 5">
Had to put this in the bottom
Code:
</if>
</if>
Reply With Quote
  #13  
Old 06-12-2008, 04:47 PM
Darkfire122333 Darkfire122333 is offline
 
Join Date: Mar 2005
Location: Canada
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is only one problem with that. You have to be a member of group 6, becuase the condition is overwriting the group 5, so group 5 is just sitting there useless.


Quote:
Originally Posted by Charlie98902 View Post
Got an error that way so I tried the second way I posted error so it has to be the first way?

The other way I was doing it I saw it wasn't working as it put != 5"> in my header so what I did was this:

This is at the top
Code:
<if condition="$userinfo['group'] != 6">
<if condition="$userinfo['group'] != 5">
Had to put this in the bottom
Code:
</if>
</if>
Reply With Quote
  #14  
Old 06-12-2008, 04:50 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well since I got an error on the other way(s) what is suggested then?
Reply With Quote
  #15  
Old 06-12-2008, 04:57 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Darkfire122333 View Post
Code:
<if condition="$userinfo['group'] != 6,5">
I believe that is correct
Here's the error I get with your code:

Quote:
The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected ',' in /home/dvdnextc/public_html/includes/adminfunctions_template.php(3716) : eval()'d code on line 1

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish
.

What about this?

Code:
<if condition="$userinfo['group'] != 5">
Then admins would be able to see as well as super mods right?

Nope that doesn't work either.....
Reply With Quote
  #16  
Old 06-12-2008, 07:11 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I have been playing around with this and with all my findings the memberinfo & memberifo block works but not the who's online?
Reply With Quote
  #17  
Old 06-12-2008, 09:04 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

userid works but if you try to use usergroup or group it doesn't? Any ideals?
Reply With Quote
  #18  
Old 07-20-2008, 03:11 AM
MPDesignZ MPDesignZ is offline
 
Join Date: Feb 2007
Location: Daytona Beach, FL
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would really love for this to work but it does not do what I need it to do. I need the admin to be invisible to EVERYONE and allow the moderators & super mods to view others that are invisible. This is not working in that manner. Any ideas on this? We are running a 3.7.1 P1 board and have the plugin installed. There were no errors with the plugin so I'm guessing its working properly. Any help would be great.

EDIT: I did try both using userid & using usergroup.....nada
Reply With Quote
  #19  
Old 07-22-2008, 04:40 AM
Lady Divus Lady Divus is offline
 
Join Date: Feb 2006
Location: U.S.A.
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really would like to know how to add multiple users to be hidden in whos online...This is an awesome modification...Thank you!

Edit: I figured out how to atleast make multiple users invisible. You have to add the template modification twice..

Code:
<if condition="$userinfo['userid'] != 1">
<if condition="$userinfo['userid'] != 2">
Code:
</if>
</if>
Hope this helps others...If you cant hide a group, you can atleast add every user within the group you want hidden. Just add the modification multiple times. Be sure and do the same with the </if> at the end of the template...Be well -

Lady Divus
Reply With Quote
  #20  
Old 08-09-2008, 02:36 PM
nhuhuu's Avatar
nhuhuu nhuhuu is offline
 
Join Date: Sep 2004
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, some times i need to invisble but i don't want everyone can see me online... example this night.. i rename install folder for some funtions... but one of my member see me install and him click myforum.com/forum/install/install.php oh god what the hell... luck i had been backed up my database before
Reply With Quote
  #21  
Old 08-21-2008, 08:06 PM
dtv100 dtv100 is offline
 
Join Date: Apr 2007
Location: in the south of the north
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can you hide from What's Going On in forum home template ?
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 06:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05165 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
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
  • (14)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete