Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2007, 01:08 PM
DJ RRebel DJ RRebel is offline
 
Join Date: Jul 2002
Location: CANADA
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Complex Forum Permissions Brain-Teaser!

Hello everyone .. not sure if this is solvable without resorting to the tediousness of manually adding masks for everyone. I know this isn't really a hack request/issue, but due to the fact it's probably a complex answer I thought I'd ask here as well. Basically want to know if it's posible to have a member's access to particular forums based on two of their usergroups. As in user must be of usergroup A AND usergroup B to have access to a particular forum.



Here's the specifics of what I'm looking for if the above was a little too simple ...


Let's say I have two sets of usersgroups members each get placed into. So that members have both one number usergroup and one letter usergroup:

Usergroup: 1, 2, 3, 4, 5, 6, 7, 8, 9 or 10

and

Usergroup: A or B


Is there a way to set forum permissions up so that if I have 20 corresponding forums (1A, 1B, 2A, 2B, 3A, 3B, etc) that I could figure out a way that that member MUST be of BOTH usergroups to have access to their particular number-letter matching forum?

I thought it would be really easy, but when I tried to impliment it I realised the logic behind such a system is nowhere near as simple as it might seem.

I did also set up catagories 1 to 10 where each pair of sub-forums sit (catagory 1 holds forums 1A and 1B, cat 2 hold forums 2A and 2B, etc). Doing so I thought that I could use the catagory's forum permissions to block off everyone but users with that particular number usergroup, and then simply use the individual forum's forum permissions to give letter usergroup access to the A or B in question. But then realised that by giving access permissions to either A or B for their particular forums would give permission for ALL users of B to that B forum .. so that members with 1B, 2B, 3B, etc would all unfortunately have access to forum 1B!


============= PART 2 ===============

Note that if given the solution to the above I could probably figure out my particular needs, but for those with even more pare time ...

For my particular needs I also need the A's see their corresponding B forum, but ONLY for their matching number so that a user of usergroups 1 & A can access forum 1A and 1B, but a user with usergroups 1 & B can only see forum 1B.

Again though .. this part 2 shouldn't be too dificult for me to figure out if there's a solution to the first part of this delema.


THANKS to anyone who helps try to figure this brain teaser out!
Reply With Quote
  #2  
Old 07-07-2007, 07:10 PM
DJ RRebel DJ RRebel is offline
 
Join Date: Jul 2002
Location: CANADA
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So I'm guessing the only way to make it posible to have a member's access to particular forums based on two of their usergroups is by using masks?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:27 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.03242 seconds
  • Memory Usage 2,167KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete