vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hide the admin "current activity" in profile? (https://vborg.vbsupport.ru/showthread.php?t=210684)

brandonroy 04-08-2009 04:33 PM

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.

Brother Malachi 04-08-2009 09:10 PM

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

brandonroy 04-09-2009 01:31 AM

Quote:

Originally Posted by hammerhead24 (Post 1786930)
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.

Lynne 04-09-2009 01:42 AM

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.

brandonroy 04-09-2009 03:12 AM

Quote:

Originally Posted by Lynne (Post 1787052)
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

Dingo14 04-09-2009 03:59 AM

what part of template does this go to hide admin 2 thanks

brandonroy 04-09-2009 04:36 AM

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.

Brother Malachi 04-09-2009 05:44 AM

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 !=

brandonroy 04-09-2009 06:49 AM

Quote:

Originally Posted by hammerhead24 (Post 1787148)
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..

Lynne 04-09-2009 01:27 PM

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.


All times are GMT. The time now is 08:31 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.01826 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete