vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How To Disable To Who.is going on (https://vborg.vbsupport.ru/showthread.php?t=198295)

chennairam 12-08-2008 03:22 AM

How To Disable To Who.is going on
 
Hi members

Please Help Me

How To Disable This To register members and Non Others

Only admins, Moderator, super moderator can View This How ?

https://vborg.vbsupport.ru/external/2008/12/96.jpg


Please Help me

Lynne 12-08-2008 03:27 AM

You can turn it off in vboptions > forum home display > display logged in users > No. Then you'll have to go change the condition around it in the FORUMHOME template from:
HTML Code:

<if condition="$show['loggedinusers']">
<!-- logged-in users -->

To (it will make it visible to users in group 5,6, or 7):
HTML Code:

<if condition="$show['loggedinusers'] OR is_member_of($bbuserinfo,5,6,7)">
<!-- logged-in users -->

That should get rid of the line "Currently Active Users....." and the list of users under it. It wasn't clear to me if you want to get rid of the whole line where it says What's Going On? or just the words. The phrase for it is just above the lines I quoted, so you can remove the phrase right there.

I haven't tested this.

chennairam 12-08-2008 03:36 AM

i dont under stand How to Put

Give a Complete Code sir

i need user Groups Can view 6,7,5,21,27,26,10,28,3

Thx in Advance

br.,
Ram

Lynne 12-08-2008 03:08 PM

Quote:

Originally Posted by chennairam (Post 1680697)
i dont under stand How to Put

Give a Complete Code sir

i need user Groups Can view 6,7,5,21,27,26,10,28,3


Thx in Advance

br.,
Ram

Then the condition would be:
HTML Code:

<if condition="$show['loggedinusers'] OR is_member_of($bbuserinfo,6,7,5,21,27,26,10,28,3)">

chennairam 12-09-2008 02:59 AM

Quote:

Originally Posted by Lynne (Post 1680987)
Then the condition would be:
HTML Code:

<if condition="$show['loggedinusers'] OR is_member_of($bbuserinfo,6,7,5,21,27,26,10,28,3)">


I did Enter This Code

Not Shows on Admin also Sir

How to Do



regards
Ram

Lynne 12-09-2008 03:11 AM

I can't think of why it wouldn't show to your admins if they are in usergroup 6. All you did was add that little part to the condition, right? Maybe you should post that part of your template - from about 4 lines above the condition to about 4 lines below the condition.

chennairam 12-09-2008 03:20 AM

Quote:

Originally Posted by Lynne (Post 1681395)
I can't think of why it wouldn't show to your admins if they are in usergroup 6. All you did was add that little part to the condition, right? Maybe you should post that part of your template - from about 4 lines above the condition to about 4 lines below the condition.

Add this
<if condition="$show['loggedinusers'] OR is_member_of($bbuserinfo,6,7,5,21,27,26,10,28,3)">


My admin user id also 6

I add this code here sir

https://vborg.vbsupport.ru/external/2008/12/87.jpg


I think you have idea


Br.,
Ram

Lynne 12-09-2008 03:26 AM

And nothing is showing up at all? (And those are usergroup ids, not the user id, right?)

chennairam 12-09-2008 03:35 AM

yes all are group id not User id

How to Do sir For user group id only

regards
Ram

Lynne 12-09-2008 03:40 AM

I'm not sure what else to suggest if those are all valid usergroup ids. I use that condition in my FORUMHOME template to just show stuff to my mods (I only put in 5,6,and 7) and it works just fine.


All times are GMT. The time now is 11:02 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.01197 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
  • (4)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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