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)

slapjack2fast 04-13-2009 06:44 PM

Ive done this and it works it don't show my last login date but it does say 'On' beside my name and also in the Statistics it says it aswell, any way i cant hide both of these?

Lynne 04-13-2009 07:05 PM

If you don't want anyone to see your online status, then either go Invisible or put the same condition around the online status as you put around the current activity. And I don't know what statistics you are talking about - if it's from a mod, you will have to ask in the modification thread for help modifying the code.

slapjack2fast 04-13-2009 07:08 PM

Ok i'll try it thanks again Lynne :D

--------------- Added [DATE]1239658881[/DATE] at [TIME]1239658881[/TIME] ---------------

Just before i edit anything that might mess up the templates does the code go anywhere here?

<!-- current activity -->
<if condition="$prepared['lastactivitydate'] OR $prepared['action']">
<div class="alt2 smallfont block_row" id="activity_info">
<if condition="$prepared['lastactivitydate']">
<div id="last_online">
<span class="shade">$vbphrase[last_activity]:</span> $prepared[lastactivitydate]<if condition="!$show['detailedtime']"> <span class="time">$prepared[lastactivitytime]</span></if>
</div>
</if>
<if condition="$prepared['action']">
<span class="shade">$vbphrase[current_activity]:</span> $prepared[action]

I Put it somewhere there and it said that there's an error and it's highly recommended that i fix it so i clicked 'Go back' just incase

Dingo14 04-13-2009 11:08 PM

Quote:

Originally Posted by Lynne (Post 1790273)
Try this:
HTML Code:

<if condition="!in_array($prepared['userid'], array(1,3))">

thanks heaps Lynne that is spot on works great

bobc973 02-23-2010 05:54 PM

The individual works great, but what about groups?

On my site, it may not be the primary group, but perhaps a secondary group....
But I tried this and it doesn't work even if it is the primary group:

<if condition="!in_array($prepared['usergroupid'], array(23,4))">

---lines of code---

</if>

where 23 and 4 are Groupids of the groups i do NOT want to show.

Any help would be apprciated!

Lynne 02-23-2010 08:21 PM

You would not use in_array for the usergroupid, you would use is_member_of (in the API in the Quick Links).

bobc973 02-24-2010 06:19 PM

Quote:

Originally Posted by Lynne (Post 1989908)
You would not use in_array for the usergroupid, you would use is_member_of (in the API in the Quick Links).

Like this?:

<if condition="is_member_of($prepared['usergroupid']) != '23'">

<span class="shade">$vbphrase[current_activity]:</span> $prepared[action] $prepared[where]

</if>

assuming you do NOT want to allow if the profile being viewed is a member of usergroup 23

Thanks

ChopSuey 02-25-2010 12:37 PM

https://vborg.vbsupport.ru/showthread.php?t=179115

Try that :D


All times are GMT. The time now is 07:00 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.01724 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_html_printable
  • (2)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
  • (8)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