Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #22  
Old 05-23-2009, 07:12 AM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hostboard View Post
Would it be possible to have this have its own catagory/forum selection page? For sites that have LOTS of catagories/forums it is a bit cumbersome to have to go in and edit each and every forum whereby if it had its own list it should be easier to select.

If you could select a catagory and have it tag all the forums under it that would work too.

Thanx!
hmm, yea, that's possible. i'll add support for it on next version
Reply With Quote
  #23  
Old 05-23-2009, 09:42 AM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've fixed the "loophole" that was displaying hidden forum names on the advanced search screen.
New version posted - v1.1.2
Reply With Quote
  #24  
Old 05-23-2009, 02:37 PM
dxflw dxflw is offline
 
Join Date: May 2008
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a llot for creating my request!!
Installed & Nominated!
Reply With Quote
  #25  
Old 05-23-2009, 02:52 PM
Hasann's Avatar
Hasann Hasann is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 897
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uncached templates: forumhome_forumbit_level1_nopost (3)
Uncached templates: forumhome_forumbit_level2_post (18)
Reply With Quote
  #26  
Old 05-23-2009, 02:54 PM
dxflw dxflw is offline
 
Join Date: May 2008
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Hack works not with subforums.. will be work in the update?
Reply With Quote
  #27  
Old 05-23-2009, 02:58 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dxflw View Post
The Hack works not with subforums.. will be work in the update?
yes, there will be fix for sub forums.
Reply With Quote
  #28  
Old 05-23-2009, 03:19 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hasann View Post
Uncached templates: forumhome_forumbit_level1_nopost (3)
Uncached templates: forumhome_forumbit_level2_post (18)
i'm aware of that, i'll try to optimize that in future version.
The hide/show forum forced me to use manipulation on the templates.
I used datastore instead though, so it wont have too many unneeded reads.

EDIT: to further clear up the "behind-the-scene" made:
1. during intial load i store both of the mentioned templates into the datastore, and clear both of them.
2. during hook loads, a check is made vs. mod logic (for should be visible or not).
3. Based on previous check, i assign to the template value (or empty string) from the datastore cache variable.

So counters may show it's uncached, while it's in fact some sort of cache (assigning template value from datastore cache).
Reply With Quote
  #29  
Old 05-23-2009, 09:35 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If a member changes their date of birth will they have access to the restricted forums immediately?

Thank you.
________
MARY JANE
Reply With Quote
  #30  
Old 05-23-2009, 11:15 PM
bigmonay2k bigmonay2k is offline
 
Join Date: May 2004
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ggggrrreeeat Work My Dude...you Are The Best...i'll wait til all the bugs are fix
Reply With Quote
  #31  
Old 05-24-2009, 02:32 AM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sweeks View Post
If a member changes their date of birth will they have access to the restricted forums immediately?

Thank you.
Yes.
Might be worth to implant some code modification that prevent user from re-setting his birthday date. If anyone has any suggestion, these can be implanted into next version.
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 10:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10838 seconds
  • Memory Usage 2,343KB
  • Queries Executed 26 (?)
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
  • (4)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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