vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Creating a mod, age restriction for specific forum (https://vborg.vbsupport.ru/showthread.php?t=195559)

Voltar 11-06-2008 06:03 AM

Creating a mod, age restriction for specific forum
 
Creating a mod, age restriction for a specific (sub)forum. Have a few questions for anyone who knows about all the vB plugin hooks available. From what I've gathered, I need to check age when entering the forum, and when viewing a thread or post that resides in said forum. I also need to remove results from search queries.
  • I've got code working to check one's age from their birthday using forumdisplay_start.
  • I'm fairly sure that using search_start I could filter the search results, but I am unsure on how to do this on the backend.
  • I am completely clueless on checking age when viewing a topic/post. I am unsure on how to check if a thread/post if in said forum.
Hopefully that made sense. Thanks in advance for any help or ideas.

Azhrialilu 11-06-2008 07:28 AM

Like this https://vborg.vbsupport.ru/showthrea...riction+forums you mean?

I was pretty sure I'd seen a mod that does something like what you're describing, although I don't think it stops people from viewing, just posting:)

Voltar 11-06-2008 07:56 AM

Hey, thanks for that, I didn't find it when I was searching. Might be something to adapt and re-release with permission as a few seem to want the same thing.

Azhrialilu 11-06-2008 07:58 AM

You're welcome :)

I know I'd definitely be interested in a mod that restricts viewing as well as posting by age.

You'd need to get permission from the original author if you wanted to adapt his code though, but you know that already!


All times are GMT. The time now is 09:26 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.00899 seconds
  • Memory Usage 1,713KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete