Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Forum Minimum Age Restriction Details »
Forum Minimum Age Restriction
Mod Version: 1.1.2, by IdanB (Member) IdanB is offline
Developer Last Online: May 2010 I like it Show Printable Version Email this Page

vB Version: 3.8.2 Rating: (8 votes - 4.88 average) Installs: 120
Released: 21 May 2009 Last Update: 23 May 2009 Downloads: 556
Not Supported DB Changes Uses Plugins  


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:
- Advanced Search still listing all forums (including hidden ones). 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

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	forumhome_view_when_under_age.jpg
Views:	1250
Size:	47.5 KB
ID:	99428   Click image for larger version

Name:	error_msg_when_attempting_to_view_forum_while_under_age_.jpg
Views:	890
Size:	17.9 KB
ID:	99429   Click image for larger version

Name:	forum_admin_options.jpg
Views:	748
Size:	17.9 KB
ID:	99455  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #16  
Old 22 May 2009, 21:01
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Real name: Idan Bismut
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.
__________________
vBHackers.com - vBulletin Modification Community
Reply With Quote
  #17  
Old 22 May 2009, 22:49
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Real name: Idan Bismut
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.
__________________
vBHackers.com - vBulletin Modification Community

Last edited by IdanB; 22 May 2009 at 22:55.
Reply With Quote
  #18  
Old 22 May 2009, 23:45
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Real name: Idan Bismut
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.
__________________
vBHackers.com - vBulletin Modification Community
Reply With Quote
  #19  
Old 23 May 2009, 00:09
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Real name: Steven
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
  #20  
Old 23 May 2009, 00:16
mrtroybaker mrtroybaker is offline
 
Join Date: Feb 2009
Yes, all the problems were fixed. Thank you. Great hack
Reply With Quote
  #21  
Old 23 May 2009, 09:12
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Real name: Idan Bismut
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
__________________
vBHackers.com - vBulletin Modification Community
Reply With Quote
  #22  
Old 23 May 2009, 11:42
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Real name: Idan Bismut
I've fixed the "loophole" that was displaying hidden forum names on the advanced search screen.
New version posted - v1.1.2
__________________
vBHackers.com - vBulletin Modification Community
Reply With Quote
  #23  
Old 23 May 2009, 16:37
dxflw dxflw is offline
 
Join Date: May 2008
Thanks a llot for creating my request!!
Installed & Nominated!
Reply With Quote
  #24  
Old 23 May 2009, 16:52
Hasann's Avatar
Hasann Hasann is offline
 
Join Date: Sep 2005
Real name: Hasann
Uncached templates: forumhome_forumbit_level1_nopost (3)
Uncached templates: forumhome_forumbit_level2_post (18)
__________________
HASANN
Reply With Quote
  #25  
Old 23 May 2009, 16:54
dxflw dxflw is offline
 
Join Date: May 2008
The Hack works not with subforums.. will be work in the update?
Reply With Quote
  #26  
Old 23 May 2009, 16:58
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Real name: Idan Bismut
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.
__________________
vBHackers.com - vBulletin Modification Community
Reply With Quote
  #27  
Old 23 May 2009, 17:19
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Real name: Idan Bismut
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).
__________________
vBHackers.com - vBulletin Modification Community

Last edited by IdanB; 23 May 2009 at 17:44.
Reply With Quote
  #28  
Old 23 May 2009, 23:35
Sweeks's Avatar
Sweeks Sweeks is offline
 
Join Date: Jul 2008
If a member changes their date of birth will they have access to the restricted forums immediately?

Thank you.
________
MARY JANE

Last edited by Sweeks; 06 Apr 2011 at 14:24.
Reply With Quote
  #29  
Old 24 May 2009, 01:15
bigmonay2k bigmonay2k is offline
 
Join Date: May 2004
Ggggrrreeeat Work My Dude...you Are The Best...i'll wait til all the bugs are fix
Reply With Quote
  #30  
Old 24 May 2009, 04:32
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Real name: Idan Bismut
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.
__________________
vBHackers.com - vBulletin Modification Community
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 17:36.

Layout Options | Width: Wide Color: