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)

mrtroybaker 05-22-2009 07:03 AM

Been waiting on this for a while' Thanks

Installed

IdanB 05-22-2009 11:33 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

This feature now available with new version.

mrtroybaker 05-22-2009 06:34 PM

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

mrtroybaker 05-22-2009 06:43 PM

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

IdanB 05-22-2009 06:44 PM

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)

IdanB 05-22-2009 07:01 PM

Quote:

Originally Posted by mrtroybaker (Post 1815371)
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.

IdanB 05-22-2009 08:49 PM

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.

IdanB 05-22-2009 09:45 PM

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.

Hostboard 05-22-2009 10:09 PM

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!

mrtroybaker 05-22-2009 10:16 PM

Yes, all the problems were fixed. Thank you. Great hack


All times are GMT. The time now is 12:22 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.01329 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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