vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   show/hide conditional buttons? (https://vborg.vbsupport.ru/showthread.php?t=124305)

Evoir 08-18-2006 02:11 PM

show/hide conditional buttons?
 
I am setting up a forum using 3.6 after many years of using 2x versions of vB. I'm still getting used to all the new bells and whistles... so I may be missing something...

I have set up tons of usergroups and permissions, and I'd like they forum to reflect the permissions. ie: if I have a usergroup that does not have posting priveleges, I'd like there to not be a "New Thread" or "post reply" buttons to show. The system gives the person an error if they try to post, but that is not so friendly.

Is there a way that these buttons can show up conditionally based on the permission system?

Wired1 08-26-2006 03:43 AM

<if condition="!is_member_of($bbuserinfo, 8)">ENTER BUTTON CODE HERE</if>

Slap that around the button code. Replace 8 with the usergroup ID.

Evoir 08-26-2006 05:11 AM

I do appreciate getting a reply! But, I have 300 members that all belong to different groups, and all of the groups all have varying permissions in varying forums. In some forums they can post, in others they cannot, all based on different groups. (It's a school with parents, a board, staff -- It's an odd set of permissions.) And we'll want to change permissions later. It makes no sense to me that vB cannot do this already. I mean, if the code only allows certain groups to post in certain forums, then show/hiding the buttons would seem to be a simple change, right? Something like <if usergroup allowed to post reply, then show button, if not, then don't show button. Or show a different button>. I don't want to have to actually name (or number) the usergroup. How would I do that?

Wired1 08-26-2006 06:16 AM

Each group already has a number, just have to grab it from the admin area.


All times are GMT. The time now is 10:26 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.01053 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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