vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Forum Minimum Age Restriction (https://vborg.vbsupport.ru/showthread.php?t=214227)

IdanB 05-20-2009 10:00 PM

Forum Minimum Age Restriction
 
1 Attachment(s)

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 :p

Enjoy hack & dont forget to click Mark as Installed :)

IdanB 05-21-2009 07:36 PM

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 !

HMBeaty 05-21-2009 07:45 PM

Awesome IdanB. Thank you very much for this.

pein87 05-21-2009 08:19 PM

installed this is what I need for my more mature members.

marianoblesa 05-21-2009 10:49 PM

Good Mod

Sweeks 05-21-2009 11:53 PM

Excellent mod, thank you :)
________
How to roll a blunt

Reycer 05-22-2009 12:22 AM

needed this a while back. Will definatly give it a go. Thanks

jonah1892 05-22-2009 01:56 AM

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

IdanB 05-22-2009 05:34 AM

Quote:

Originally Posted by jonah1892 (Post 1814994)
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.

Hornstar 05-22-2009 06:51 AM

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.


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.01151 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete