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 10-30-2007, 10:24 AM
hinch's Avatar
hinch hinch is offline
 
Join Date: May 2003
Location: UK
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default hiding forums based on user age

I assumed this was a fairly common issue but appears I was wrong

I want to create an "after hours" forum section as part of my public forums however I want it to not show up for unregistered users or registered users below the age of 18.

Now my plan was to have an admin editable only custom field that is simply a 1 or a 0 for above or older that way I have to verify that they are over 18 instead of just taking their word for it (way to cover my ass legally )

What I can't seem to work out how todo is make a forum visible/invisible based off the value of a custom user profile field.

Is there any known way of doing this or perhaps a better way of doing this?
Reply With Quote
  #2  
Old 10-30-2007, 10:28 AM
phlogiston's Avatar
phlogiston phlogiston is offline
 
Join Date: Feb 2003
Location: Woodlands
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think possibly a better solution would be to use a joinable usergroup.
Create an "over 18" usergroup that will add access to your "after hours" forum, if you set the usergroup to require approval before joining it will work out the same as you altering a custom profile field

Instructions on Public Usergroups from vb.com: http://www.vbulletin.com/forum/showthread.php?p=1437328
Reply With Quote
  #3  
Old 10-30-2007, 02:32 PM
hinch's Avatar
hinch hinch is offline
 
Join Date: May 2003
Location: UK
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah I was hoping todo it avoiding usergroups because its a gaming community forum so most members are a member of either the standard public group or one of the clan groups. going through 2k members and adding them all into a 2nd group is a little painful for me and as far as i'm aware the public joinable groups become primary groups not secondary groups
Reply With Quote
  #4  
Old 10-30-2007, 03:19 PM
phlogiston's Avatar
phlogiston phlogiston is offline
 
Join Date: Feb 2003
Location: Woodlands
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hrmm. I can see it may be confusing to have two seperate types of joinable group but to be honest, personally I'd still go with trying it via usergroups - vbulletin already deals with all the permissions for forum access by usergroup which is easier to use than hooking in with conditionals to use profile field based permissions (dealing with forumhome, forumdisplay, search results, forum jump menus, etc, etc)

Public Joinable groups are usually (I think) added as a secondary group, make sure when you create the usergroup to leave "Can override primary group title/markup" as unchecked, that way none of the settings or stuff from the group will show on profiles or postbits etc.

Also I may be misunderstanding - you say you'd have to verify them as over 18 for custom profile field method so I'm not certain how approving Join Requests would be more of a chore? :S
Reply With Quote
  #5  
Old 10-30-2007, 03:49 PM
hinch's Avatar
hinch hinch is offline
 
Join Date: May 2003
Location: UK
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if public joinables do go as secondary usergroups then that is an option i could use i guess.

i possibly explained it badly for the approval thing. they way i was after setting it up was just an input box in usercp where they could paste a link to a scan of some form of ID proving their age. then i could have a non editable usergroup box and just change it to 1 (writing an external batch script to help me mass review) going through the public user groups i have to open each applicant contact them to send me a link via pm read a pm open the link and then approve I can't really automate it so it just adds a few extra steps into the process.
Reply With Quote
  #6  
Old 10-30-2007, 04:07 PM
phlogiston's Avatar
phlogiston phlogiston is offline
 
Join Date: Feb 2003
Location: Woodlands
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes indeed

I'd suggest making the terms of joining the group that they must paste the link to the ID scan in the join reason ipnut box but I'm not certain how successful that would be with people not reading instructions!

Maybe someone else has simpler ideas of using profile fields to figure forum permissions, it'd definitely be a nice addition. Similar to Promotions I'd guess, rather than basing the promotion on rep or posts, base it on entering the correct value for a custom profile field.

In fact, try a search here for "custom promotions" it may yield a solution
Reply With Quote
  #7  
Old 10-30-2007, 04:10 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried this modification:

https://vborg.vbsupport.ru/showthrea...stricted+forum

I think it does what you want.
Reply With Quote
  #8  
Old 10-30-2007, 04:46 PM
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Location: Buenos Aires
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should try this: https://vborg.vbsupport.ru/showthread.php?t=136097
Reply With Quote
  #9  
Old 11-01-2007, 12:50 PM
hinch's Avatar
hinch hinch is offline
 
Join Date: May 2003
Location: UK
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the links guys sorry its taken me so long to reply been busy.

I'll check them out see if i can get them working how i want them to
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 06:49 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.04136 seconds
  • Memory Usage 2,239KB
  • Queries Executed 11 (?)
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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_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