Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2007, 09:42 PM
tobybird's Avatar
tobybird tobybird is offline
 
Join Date: Jul 2006
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Hide Admin & Super Mod Whos Online Location

I need to determine if there's a way I can hide the location of our admins and super mods from regular members when viewing the Who's Online page.

"Can View Detailed Location Info for Users" is set to No in the usergroup permissions, but what is visible is still too much information.

Also, what I've found while searching doesn't seem to work with the current release of vB.


I'm assuming I could modify this bit of the whosonlinebit template, but I'm not 100% sure what to add.

Code:
<if condition="$show['where']">
			<div class="smallfont" style="margin-top:1px">
				<if condition="$show['subscribed']"><img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></if>
				$userinfo[where]
			</div>
		</if>
The only thing I can think of is an AND !is_member_of condition, but I think I'm on the wrong track with that. I don't want to restrict viewing of other members locations...just the admins and super mods.

I'd really appreciate any help with this!

Thanks!
Reply With Quote
  #2  
Old 11-19-2007, 05:41 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If show detailed is set to no for regular members, what information is still displayed that you don't want?
Reply With Quote
  #3  
Old 11-19-2007, 10:15 AM
tobybird's Avatar
tobybird tobybird is offline
 
Join Date: Jul 2006
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Members are able to see whether or not we are viewing the Admin/Moderators Control Panel and/or any one of our private (not hidden) access request forums. Our private forums deal with fairly sensitive personal topics, and as "staff" we must be able to view these. Our members know this, but we would prefer it not be so terribly obvious.


The screen shot below shows what a regular member would see if I were to access the Admin Panel:




ETA: Just one more thing... I realize this request seems pretty minimal and borderline silly. Unfortunately, we have a greater need for this now. lol Typical drama that comes along with a board full of women.
Reply With Quote
  #4  
Old 11-20-2007, 11:06 AM
tobybird's Avatar
tobybird tobybird is offline
 
Join Date: Jul 2006
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to bump this. Would a modification to the following line in the online.php file be the way to go? I'm just not sure how to adjust this for an entire usergroup...

$userinfo["{$vbulletin->userinfo['userid']}"]['location'] = '/online.php';

PHP Code:
if (!$foundviewer AND $vbulletin->userinfo['userid'] AND ($vbulletin->GPC['who'] == '' OR $vbulletin->GPC['who'] == 'members'))
// Viewing user did not show up so fake him
    
construct_im_icons($vbulletin->userinfo);
    
$userinfo["{$vbulletin->userinfo['userid']}"] = $vbulletin->userinfo;
    
$userinfo["{$vbulletin->userinfo['userid']}"]['location'] = '/online.php';
    
$userinfo["{$vbulletin->userinfo['userid']}"]['host'] = IPADDRESS;
    
$userinfo["{$vbulletin->userinfo['userid']}"]['lastactivity'] = TIMENOW;
    
fetch_musername($userinfo["{$vbulletin->userinfo['userid']}"]);
    
$userinfo["{$vbulletin->userinfo['userid']}"]['hidden'] = iif($vbulletin->userinfo['invisible'], '*');
    
$userinfo["{$vbulletin->userinfo['userid']}"]['invisible'] = 0

And if not, would it be easier to hide all admins and supermods completely from the WOL page rather than hide just their location? I'm trying to work through this and not having the greatest luck. Hopefully, I'm missing something minor. Any sort of guidance would be greatly appreciated. Thanks!
Reply With Quote
  #5  
Old 11-23-2007, 02:29 PM
tobybird's Avatar
tobybird tobybird is offline
 
Join Date: Jul 2006
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Last bump. I can't imagine this is as difficult as it's appearing. I'm not looking for hand holding....just any thoughts on how I would begin. Thanks
Reply With Quote
  #6  
Old 11-23-2007, 05:59 PM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Something like this might work for you. (this is part of the whosonlinebit template)
Code:
	<td class="alt2" width="35%">


<if condition="in_array($userinfo[displaygroupid], array(5, 6)) AND !is_member_of($bbuserinfo, 5, 6)">
	<b>$vbphrase[unknown_location]</b>
<else />

		<div>
			<span style="float:$stylevar[right]">
				<if condition="$show['lockedout']"><img src="$stylevar[imgdir_statusicon]/wol_lockedout.gif" alt="$vbphrase[viewing_forum_closed]" /></if>
				<if condition="$show['nopermission']"><img src="$stylevar[imgdir_statusicon]/wol_nopermission.gif" alt="$vbphrase[viewing_no_permission_message]" /></if>
				<if condition="$show['errormessage']"><img src="$stylevar[imgdir_statusicon]/wol_error.gif" alt="$vbphrase[viewing_error_message]" /></if>
				<if condition="$show['reallocation']"><img src="$stylevar[imgdir_misc]/question_icon.gif" alt="$userinfo[location]" /></if>
			</span>
			$userinfo[action]
		</div>
		<if condition="$show['where']">
			<div class="smallfont" style="margin-top:1px">
				<if condition="$show['subscribed']"><img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></if>
				$userinfo[where]
			</div>
		</if>

</if>

	</td>
Reply With Quote
  #7  
Old 11-24-2007, 10:26 AM
tobybird's Avatar
tobybird tobybird is offline
 
Join Date: Jul 2006
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Analogpoint, I can't thank you enough! I tweaked it just a bit to change the location, lol which is minor to say the least. Anyway, this is exactly what we needed.

Thanks again!
Reply With Quote
  #8  
Old 11-24-2007, 10:36 AM
dtv100 dtv100 is offline
 
Join Date: Apr 2007
Location: in the south of the north
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

to hide what i was doing on who online I use this mod :

https://vborg.vbsupport.ru/showthread.php?t=145428
Reply With Quote
  #9  
Old 11-24-2007, 11:07 AM
tobybird's Avatar
tobybird tobybird is offline
 
Join Date: Jul 2006
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dtv100 View Post
to hide what i was doing on who online I use this mod :

https://vborg.vbsupport.ru/showthread.php?t=145428
lol That certainly would have saved me some time. I swear... I searched and searched for a mod and never ran across this one.
Reply With Quote
  #10  
Old 11-24-2007, 03:21 PM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tobybird View Post
Analogpoint, I can't thank you enough! I tweaked it just a bit to change the location, lol which is minor to say the least. Anyway, this is exactly what we needed.

Thanks again!
You're welcome.

Quote:
Originally Posted by dtv100 View Post
to hide what i was doing on who online I use this mod :

https://vborg.vbsupport.ru/showthread.php?t=145428
Good find.
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 01:26 AM.


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.07442 seconds
  • Memory Usage 2,271KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete