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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2009, 05:33 PM
brandonroy brandonroy is offline
 
Join Date: Dec 2008
Location: Louisiana
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Hide the admin "current activity" in profile?

I want to hide the current activity of the admin (me) in my profile. It shows in two places: Just under the "last activity" at the top and in the statistics tab.

on the vb forums they suggested using the invisible mode, but I don't want to go invisible and make myself look like I'm offline.

Thanks.
Reply With Quote
  #2  
Old 04-08-2009, 10:10 PM
Brother Malachi Brother Malachi is offline
 
Join Date: Jun 2008
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only way I can think of is using an <if condition=""><else /></if>
Something like
if is admin don't show the last activity
else show it

Not sure what you would put in the condition parameter
Reply With Quote
  #3  
Old 04-09-2009, 02:31 AM
brandonroy brandonroy is offline
 
Join Date: Dec 2008
Location: Louisiana
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hammerhead24 View Post
The only way I can think of is using an <if condition=""><else /></if>
Something like
if is admin don't show the last activity
else show it

Not sure what you would put in the condition parameter
Probably my profile id, which is "2". Not sure what the code is...maybe someone can help out.
Reply With Quote
  #4  
Old 04-09-2009, 02:42 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you trying to hide *your* activity or every admin's (ie. user in usergroupid 6) activity from other users?

If yours, you can try:
HTML Code:
<if condition="$bbuserinfo['userid'] == '2'">
the line to hide from all except userid 2
</if>
or if for usergroup:
HTML Code:
<if condition="$bbuserinfo['usergroupid'] == '6'">
the line to hide from all but usergroupid 6
</if>
Try that and see if it works.
Reply With Quote
  #5  
Old 04-09-2009, 04:12 AM
brandonroy brandonroy is offline
 
Join Date: Dec 2008
Location: Louisiana
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Are you trying to hide *your* activity or every admin's (ie. user in usergroupid 6) activity from other users?

If yours, you can try:
HTML Code:
<if condition="$bbuserinfo['userid'] == '2'">
the line to hide from all except userid 2
</if>
or if for usergroup:
HTML Code:
<if condition="$bbuserinfo['usergroupid'] == '6'">
the line to hide from all but usergroupid 6
</if>
Try that and see if it works.
I just want to hide my activity. I'm the only admin.

What do I put between those <if tags in the MEMBERINFO template? I got a little confused
Reply With Quote
  #6  
Old 04-09-2009, 04:59 AM
Dingo14 Dingo14 is offline
 
Join Date: Dec 2007
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what part of template does this go to hide admin 2 thanks
Reply With Quote
  #7  
Old 04-09-2009, 05:36 AM
brandonroy brandonroy is offline
 
Join Date: Dec 2008
Location: Louisiana
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I get it. I had a brain fart or something. This works BUT, it doesn't allow members to see what other members are doing. I want everyone to see everyone's current activity as normal except not be able to see the admins current activity.
Reply With Quote
  #8  
Old 04-09-2009, 06:44 AM
Brother Malachi Brother Malachi is offline
 
Join Date: Jun 2008
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go find the code that shows the activity, then use what Lynne gave you:
PHP Code:
<if condition="$bbuserinfo['userid'] != '2'">
the code that shows current activity
</if> 
Note the !=
Reply With Quote
  #9  
Old 04-09-2009, 07:49 AM
brandonroy brandonroy is offline
 
Join Date: Dec 2008
Location: Louisiana
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hammerhead24 View Post
Go find the code that shows the activity, then use what Lynne gave you:
PHP Code:
<if condition="$bbuserinfo['userid'] != '2'">
the code that shows current activity
</if> 
Note the !=
It still doesn't allow regular members to see other members current activity..
Reply With Quote
  #10  
Old 04-09-2009, 02:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, I see. Try changing it to:
HTML Code:
<if condition="$prepared['userid'] != '2'">
the code that shows current activity
</if>
That should show the activity unless you are on member #2's page. Test it and see. You may have to use $userinfo instead of $prepared in other templates.
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 08:10 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.04567 seconds
  • Memory Usage 2,262KB
  • 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
  • (5)bbcode_html
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete