Log in

View Full Version : Creating a mod, age restriction for specific forum


Voltar
11-06-2008, 06:03 AM
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/showthread.php?t=173780&highlight=age+restriction+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!