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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2014, 11:07 AM
cjnettleingham cjnettleingham is offline
 
Join Date: Jun 2014
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Age Restrictions & DOB

Hello All,

I am hoping someone would be able to help me in some way. I have two questions that i need to be able to sort out as soon as possible.

1) Any age can access my forums at the moment but there is threads in there which is really for over 16+ is there any mod that can block people accessing this part?

2) How do i only show users date and month on the profile?

Thanks in advance

Christian
Reply With Quote
  #2  
Old 12-15-2014, 11:16 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Regarding your first question, on my forum I modified the promotion system to allow promotion by age, then made a secondary usergroup that has permission to use the 18 and over forum (and the existing Registered User group does not). This does require file changes though. I described the changes in this thread: https://vborg.vbsupport.ru/showthread.php?t=298022 . Note that there are changes to two different files, and I described the changes to each file in a separate post.
Reply With Quote
  #3  
Old 12-15-2014, 11:26 AM
cjnettleingham cjnettleingham is offline
 
Join Date: Jun 2014
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Regarding your first question, on my forum I modified the promotion system to allow promotion by age, then made a secondary usergroup that has permission to use the 18 and over forum (and the existing Registered User group does not). This does require file changes though. I described the changes in this thread: https://vborg.vbsupport.ru/showthread.php?t=298022 . Note that there are changes to two different files, and I described the changes to each file in a separate post.
But by doing the way you said would that not make more work for the site admins / mods to re arrange users from under 16 to a different usergroup?
Reply With Quote
  #4  
Old 12-15-2014, 11:31 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the point of modifying the promotion system is that it happens automatically. The promotion system decies which user qualify, then automatically adds the secondary usergroup. It will immediately promote all users who are 16 and over, and then as new users join or existing users become 16 they will get promoted.

Of course it's possible to do this via a mod that wouldn't require file changes, but I don't think anyone's done it yet.
Reply With Quote
  #5  
Old 12-15-2014, 11:42 AM
cjnettleingham cjnettleingham is offline
 
Join Date: Jun 2014
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay before i edit any php files i would like to ask a question.

So if i want too do this and set it up for age 16 it will auto upgrade the user account to the correct user group for over 16+?

What does it do for people under the age of 16? Does it hide it?

--------------- Added [DATE]1418650969[/DATE] at [TIME]1418650969[/TIME] ---------------

Note that i only want to block just one category which is really for people over 16
Reply With Quote
  #6  
Old 12-15-2014, 11:53 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those changes won't do anything to your forum permissions, they just allow adding a secondary usergroup to certain users (actually you can have it change the primary group if you want, but I think in your case you'd want to add a seconadry).

So you need to set up the appropriate forum permissions yourself, by going to Forum Permissions and adjusting the permissions for the different groups. I think what you'd want to do is remove permissions from any groups you want to hide the forum from by default, then create an "over 16" group (maybe copying from Registered User), and add back the permissions for that group. Unfortuantely I can't tell you offhand exactly which permissions to set how, but I suppose you'd want to set most of the permissions for Registered User to 'no' for the over 16 forum.

Of course this is a little more difficult than having a product that does it all for you, so I understand if you don't want to go this route.
Reply With Quote
  #7  
Old 12-16-2014, 08:47 PM
cjnettleingham cjnettleingham is offline
 
Join Date: Jun 2014
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Those changes won't do anything to your forum permissions, they just allow adding a secondary usergroup to certain users (actually you can have it change the primary group if you want, but I think in your case you'd want to add a seconadry).

So you need to set up the appropriate forum permissions yourself, by going to Forum Permissions and adjusting the permissions for the different groups. I think what you'd want to do is remove permissions from any groups you want to hide the forum from by default, then create an "over 16" group (maybe copying from Registered User), and add back the permissions for that group. Unfortuantely I can't tell you offhand exactly which permissions to set how, but I suppose you'd want to set most of the permissions for Registered User to 'no' for the over 16 forum.

Of course this is a little more difficult than having a product that does it all for you, so I understand if you don't want to go this route.
Thank you i will give this a try.
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 07:12 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.04105 seconds
  • Memory Usage 2,218KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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