vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - Hide Admin in "Who is Online" and "Profil" (https://vborg.vbsupport.ru/showthread.php?t=179115)

Allan 05-12-2008 10:00 PM

Hide Admin in "Who is Online" and "Profil"
 
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>

whitetigergrowl 05-13-2008 08:13 PM

Wouldn't being invisible accomplish the same thing?!

SwollenCranium 05-13-2008 10:24 PM

Quote:

Originally Posted by whitetigergrowl (Post 1518706)
Wouldn't being invisible accomplish the same thing?!


Not to mention 100X easier.

choccyclaire 05-14-2008 11:35 AM

^ But I'm guessing some forum owners want moderators to see other members that are invisible but they don't want them same mods to see they are invisible.

Boofo 05-14-2008 12:05 PM

Plus it doesn't let your mods or anyone else know where you are at on the site. I've been doing this for years on my site.

whitetigergrowl 05-14-2008 12:43 PM

I still thought there was a setting for this already where mods could or could not see whos invisible. I always have it so they can't see who's invisible. Making it so only admins can see who's invisible...if you have more than 1. But I usually never give people the same powers I have anyways. For obvious reasons.

Dev.Sun 05-21-2008 09:57 AM

Oh. if you have more admin and you must add more id at here
Code:

<if condition="$userinfo['userid'] != 1">
you can change userid to usergroup
Group Admin have id = 6

carrlos 05-31-2008 03:23 AM

You can also include "Last activity"!!! Installed!

Charlie98902 06-12-2008 01:10 AM

So if I wanted Super Mods only to be able to see admins would it look like this :

Code:

<if condition="$userinfo['group'] != 6"> != 5">
or

Code:

<if condition="$userinfo['group'] != 6" 5">

Darkfire122333 06-12-2008 07:32 AM

Code:

<if condition="$userinfo['group'] != 6,5">
I believe that is correct

Charlie98902 06-12-2008 01:02 PM

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>


Darkfire122333 06-12-2008 04:47 PM

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 (Post 1547638)
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>



Charlie98902 06-12-2008 04:50 PM

Well since I got an error on the other way(s) what is suggested then?

Charlie98902 06-12-2008 04:57 PM

Quote:

Originally Posted by Darkfire122333 (Post 1547423)
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.....

Charlie98902 06-12-2008 07:11 PM

OK I have been playing around with this and with all my findings the memberinfo & memberifo block works but not the who's online?

Charlie98902 06-12-2008 09:04 PM

userid works but if you try to use usergroup or group it doesn't? Any ideals?

MPDesignZ 07-20-2008 03:11 AM

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

Lady Divus 07-22-2008 04:40 AM

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

nhuhuu 08-09-2008 02:36 PM

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

dtv100 08-21-2008 08:06 PM

how can you hide from What's Going On in forum home template ?

dtv100 09-13-2008 07:46 AM

bump

Mazinger 11-30-2008 02:51 PM

Conditions in earlier posts are false, there's the true one:

HTML Code:

<if condition="is_member_of($bbuserinfo, 5, 6, 7)">

Frank Sinatra 01-08-2009 01:10 PM

then.. just can hide one user?
nothing works except with one id

Dulce 07-21-2009 02:05 AM

does this work on 3.8x?

AndyA 08-14-2009 10:26 AM

Quote:

Originally Posted by whitetigergrowl (Post 1519300)
I still thought there was a setting for this already where mods could or could not see whos invisible. I always have it so they can't see who's invisible. Making it so only admins can see who's invisible...if you have more than 1. But I usually never give people the same powers I have anyways. For obvious reasons.

You're correct, you can alter the mods privileges for viewing who's online without the need for additional mods.

ABDALWAHID 10-25-2009 12:33 PM

Can you hide "Last Activity: Today 14:23" too?

regard...


All times are GMT. The time now is 06:12 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.01294 seconds
  • Memory Usage 1,779KB
  • 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
  • (18)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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