Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Forum Minimum Age Restriction Details »»
Forum Minimum Age Restriction
Version: 1.1.2, by IdanB IdanB is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.2 Rating:
Released: 05-20-2009 Last Update: 05-22-2009 Installs: 122
DB Changes Uses Plugins
 
No support by the author.


Forum Minimum Age Restriction
By: Idan B.

1. Description & Usage:
Forum Minimum Age Restriction hack will allow the forum admin to set minimum age restriction for the given forum. Should the age be under the minimum age, the user will be unable to view forum.

2. Installation:
Please click Mark as Installed.
Installation is pretty easy - just download & install:
  • Goto: AdminCP->Plugin System->Manage Products : Choose "Add/Import Product" and import this product xml (product-forum_min_age.xml)
3. Upgrade From Older Version:
1. uninstall previous version
2. Download new version xml & install as instructed in previous section.

4. Configuration:
Once installed, the "Forum Manger" under admincp will have extra section for each forum:
Section name: "Minimum Age Requirement"
  • Enabled ? - Yes/No
  • Minimum Age - Text (INT)
  • Hide Forum ? - Yes/No
5. Known Bugs:
- [S]Advanced Search still listing all forums (including hidden ones).[/S] fixed in v1.1.2

6. TO-DO's LIST (Next Versions):
- Bypass to certain usergroups

7. Extra Notes:
The text used in this modification is fully configured via phrase manager in admincp.
- "Last Post" : min_age_limit_cannot_view_last_post_info
- "access denied" error_under_min_age

typo in "restriction" word fixed. sorry about that

Enjoy hack & dont forget to click Mark as Installed

Download Now

File Type: xml product-forum_min_age.xml (9.8 KB, 551 views)

Screenshots

File Type: jpg forumhome_view_when_under_age.jpg (47.5 KB, 0 views)
File Type: jpg error_msg_when_attempting_to_view_forum_while_under_age_.jpg (17.9 KB, 0 views)
File Type: jpg forum_admin_options.jpg (17.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
iMpAcK

Comments
  #2  
Old 05-21-2009, 07:36 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

23 May 2009 (01:35PM) - Version 1.1.2 released :
  • BUG FIX: Hidden forums are no longer displayed on list on the "Advanced Search" screen.

23 May 2009 (01:00AM) - Version 1.1.1 released :
  • BUG FIX: forum marked to be hidden were still showing in some conditions while moving from forumhome to forumdisplay.
  • BUG FIX: Search will now "drop" from results any thread/post that is located on "hidden forum" for the user.
  • BUG FIX: Add permission check to threads view as well, so should any direct link to thread be followed, he wont be able to view the thread.

22 May 2009 - Version 1.1.0 released :
  • UPDATE: Plugins names have been renamed to better names.
  • UPDATE: Now age calculation algorithm will only be executed once & then stored in datastore cache.
  • NEW: forum manager will now show default values when adding new forum.
  • NEW: now possible to hide forum from under-aged user completely !
Reply With Quote
  #3  
Old 05-21-2009, 07:45 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome IdanB. Thank you very much for this.
Reply With Quote
  #4  
Old 05-21-2009, 08:19 PM
pein87's Avatar
pein87 pein87 is offline
 
Join Date: Sep 2008
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed this is what I need for my more mature members.
Reply With Quote
  #5  
Old 05-21-2009, 10:49 PM
marianoblesa marianoblesa is offline
 
Join Date: Jan 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good Mod
Reply With Quote
  #6  
Old 05-21-2009, 11:53 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent mod, thank you
________
How to roll a blunt
Reply With Quote
  #7  
Old 05-22-2009, 12:22 AM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

needed this a while back. Will definatly give it a go. Thanks
Reply With Quote
  #8  
Old 05-22-2009, 01:56 AM
jonah1892 jonah1892 is offline
 
Join Date: Jul 2008
Location: Newcastle, UK
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would there be any chance to hide the age restricted forum all together

as i would be concerned younger members can see this and change their age to gain access
Reply With Quote
  #9  
Old 05-22-2009, 05:34 AM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jonah1892 View Post
would there be any chance to hide the age restricted forum all together

as i would be concerned younger members can see this and change their age to gain access
Yea, i think that can be done - it will require template edit though, to place the entire bit under condition of var placed inside the hook.
I'll put it as an option for next version.
Reply With Quote
  #10  
Old 05-22-2009, 06:51 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thankyou! finally I have a way to set things.

Now I would love the option to set for specific usergroups to be able to bypass the setting. eg. premium members can be any age to access the section.
Reply With Quote
Reply

Thread Tools

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 10:49 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.04609 seconds
  • Memory Usage 2,322KB
  • Queries Executed 24 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete