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
  #12  
Old 05-22-2009, 07:03 AM
mrtroybaker mrtroybaker is offline
 
Join Date: Feb 2009
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Been waiting on this for a while' Thanks

Installed
Reply With Quote
  #13  
Old 05-22-2009, 11:33 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
This feature now available with new version.
Reply With Quote
  #14  
Old 05-22-2009, 06:34 PM
mrtroybaker mrtroybaker is offline
 
Join Date: Feb 2009
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love the idea. But there is a problem.
It still does not hide the forum. If the member clicks the main forum it gives the error but if the member clicks "last post" it will still let them in.
After clicking the "last post" and getting in I can now enter the 18 and over section with a username that is 9 years old
Reply With Quote
  #15  
Old 05-22-2009, 06:43 PM
mrtroybaker mrtroybaker is offline
 
Join Date: Feb 2009
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, it did hide the forum but only after refreshing the page. But as long as it can be seen you can still get in by using the "last post" link
Reply With Quote
  #16  
Old 05-22-2009, 06:44 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm.. i assumed if forum access is denied it will prevent him from thread link...
but you are right, i'll fix it: will add check on thread page as well.
will update hack by tomorrow noon (maybe even in next hour or so)
Reply With Quote
  #17  
Old 05-22-2009, 07:01 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mrtroybaker View Post
Ok, it did hide the forum but only after refreshing the page. But as long as it can be seen you can still get in by using the "last post" link
When you select the "hide forum" the forum still visible for you ?
Also where does it show you the last post link ? (that one should be replaced by phrase)

I'm adding now check on thread view as well, so should u get there from some unknown source, it will show denied access as well.
Reply With Quote
  #18  
Old 05-22-2009, 08:49 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's work progress:
1. I've confirmed the bug which resulted with the forum still visible in some condition, while going from forumhome to forumdisplay.
This bug is now fixed: now forum in the "forumdisplay" is properly hidden.
2. Last Post link was hidden already. Couldnt not confirm any bug there. according to all my testing this worked fine. Did you mean by any chance you got the link from some search / or "new posts" link ? as that's one loophole that wasnt covered.
3. To cover any loophole of any kind = I've also added check on "showtread". so if user may obtain link to post (from somewhere), he will not be able to see it.

TO-DO:
Now working on 1 more (last) fix - to "filter" any posts from search results (on hidden forums) from under-aged users, so they wont be aware of such forums.

Once this last "search filter fix" is ready, i'll upload new version code (will be towards tomorrow after-noon). as i dont want to "spam" with too often updates. i will upload all of these fixes tomorrow.

regards.
Reply With Quote
  #19  
Old 05-22-2009, 09:45 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

finished updating modification - new version uploaded (1.1.1)
All "immediate bugs" been fixed.

Note: One possible "loophole" still remains - if going into "advanced search", under-age user will be able to see list of all forums names (including hidden ones).
He can't search them !! (only see their names)
I'm still researching on how to code so that list wont show hiddens ones. i hope this will be fixed on next version.
Reply With Quote
  #20  
Old 05-22-2009, 10:09 PM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #21  
Old 05-22-2009, 10:16 PM
mrtroybaker mrtroybaker is offline
 
Join Date: Feb 2009
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, all the problems were fixed. Thank you. Great hack
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 03:05 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.09766 seconds
  • Memory Usage 2,345KB
  • Queries Executed 28 (?)
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
  • (2)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
  • (3)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_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
  • 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