vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Disable What's Going On by Usergroup? (https://vborg.vbsupport.ru/showthread.php?t=259263)

qubed 02-22-2011 12:34 PM

Disable What's Going On by Usergroup?
 
Is this possible to do in vb4? I have done a search and browsed through thread titles and didn't see anything specifically matching this.

I would like for certain usergroups to not be able to view the What's Going On Section at all. Thanks!

Lynne 02-22-2011 04:09 PM

You mean the listing on the forum.php page? You would need to put a condition around the code in the FORUMHOME template.
HTML Code:

<vb:if condition="is_member_of($bbuserinfo, 5, 6, 7)">
stuff to only show to users in usergroups 5, 6, or 7
</vb:if>


qubed 02-22-2011 07:40 PM

Thanks for the response Lynne. I don't know much of code myself, so is there a specific section in the forumhome template to place this (ex: before or after anything in particular). Thank you for the help as I believe this is exactly what I am looking to do.

Lynne 02-22-2011 10:07 PM

Did you look at the template at all? There are these comments right around the What's Going On area:
HTML Code:

<!-- what's going on box -->
code....
<!-- end what's going on box -->

Just put the condition around that area.

qubed 02-23-2011 08:22 AM

Ok Awesome! Thank you so much for the help. I had taken a look at the code, but didn't know where to place the tag inside the what's going on box - After reading your last reply, I figured out where to replace it so thank you, I also I had to remember to place the closing tag at the bottom of the what's going on after placing the top tag at the top. Thank you again.


All times are GMT. The time now is 09:29 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.00932 seconds
  • Memory Usage 1,711KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete