![]() |
Age Lock Hack
UPDATE: Updated the code to work with latest versions (both stable and beta)
Quote:
Total File Modifications: 0 Total Plugins: 1 Total Hooks Used: 6 Total extra sql querys: 0 Make sure to read the txt files before installing!!! limited support will be provided! enjoy and dont forget to click install :) Stuie B |
This can be used especially in forums that have adult content.
|
oh this is just what I was waiting for! Sweetness :D
|
the idea of deleting the content of the template modifyprofile_birthday is irrelevent... just add a new plugin for the hook: profile_editprofile_start, add simply a "no_permission" thingy...
btw, i think it would be more efficient to be conditional to a setting - admin can activate this or not, so if not, the users will be able to change their birthday |
Quote:
|
Quote:
|
Also, would it be possible for me to implement this with vBshout? I have a shoutbox, but I would prefer it if that was only accessible to adult users as well.
*Clicks Install* Just the hack I was looking for :) |
Sorry, but one more question.
Is there a way to make it so that the forums are hidden? I setup a test account, and it still shows the forum, but when I click on the it gives me the message about being too young. I would prefer it if they couldn't see the forums to begin with. |
Is it possible to toggle the option to edit the date of birth?
The reason for this is so that some birthday data was incorrect during an import from phpbb and I want to allows users some time to correct any errors before enabling it |
Quote:
Quote:
Quote:
i should have a beta version by the end of the week for you with most of these included (hopefully) stuie b |
I love the idea, but it dosn't work.
MySQL Error : Unknown column 'age_locked' in 'field list' Error Number : 1054 Referrer : http://www.japani.no/forum/admincp/f...o=edit&f=30&s= |
not sure why you get that but it does work, i've just installed it onto the latest VB release and it works 100%, if you would like me to try to install it for you just pm me
stuie b |
Would this work on exsisting members or only new members? Also would it work on 3.5.1?
|
as long as all of your members have a date of birth set in there profiles it will work for them all,
and yes it works for 3.5.1 stuie_b |
Code:
<tr> Removing that also removes that from registration. then when someone tries to register they cant because it requires age. |
demo
|
* christianb subscribes to this thread
How hard would this be to set up a reversely? For example: I've got forums that are for teens only (under the age of 18) - this would work great if that would be possible. :D |
I thought I should try an uninstall it and then install it again. But I got this
Code:
Database error in vBulletin 3.5.0: |
Quote:
It seems as it isn't updating the tables correctly, Try installing it again but this time try using the "Allow Overwrite" set to YES Stuie B |
Can this hack be used for individual sections in the site or is this just for reigstering to enter the site?
|
Yes the hack works with the forums and not the registration
|
Quote:
Code:
|
Same error as me, and the second time I tried it and selected YES on overwrite, same error.
|
Quote:
|
Appologies all it seems i forgot to add the install bit for the age_type field, please downlaod the hack again and try that
|
all the errors you guys and I are getting is because of Table PRECIXES ... if you have table prefixes it will give you errors and installing and uninstalling will be a mess ....
so don't mess around with it untill stuie_b fixes the code for table prefixes.... peace |
I installed it again and got the same problem.
I'm not using table prefixes either. |
Same problem with no prefix
|
Also after doing this, people are saying they can't get into the forums that have an age limit :(
|
I've sorted the Prefix error, so can you please try the new version even if you dont use Prefixes.
cheers stuie b |
I'm sorry to say that it still doesn't work. Still getting the DB error. I edited the template again and uploaded the product.
|
can you tell me if there is only one uninstall/install code when you edit the plugin
cheers |
Quote:
Install Code: Code:
require_once('./global.php'); Code:
require_once('./global.php'); |
New error I found after I install Gallery and try to create a Category:
Code:
Fatal error: Field age_locked is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485 Database error in vBulletin 3.5.1: Code:
Invalid SQL: |
It's because the plugin hasn't been installed correctly for some reason it is'nt installing it for you???
To uninstall the plugin, edit the plugin and remove the uninstall code, save it and then retry the uninstall cheers stuie |
Quote:
|
Works on my site, but only for people who are older. If I want a forum that is for people 15 and under, it allowes people 15 and over to post, but not below. Yes, I have tried changing the 0 and 1 thing.
|
Quote:
cheers Stuie B |
Thank you, it works perfect now. ;) Great work Stuie!
|
The mod is letting people not of the given age into the forums that have a lock. I've observered several 15-17 year olds in my 18+ forum. Not posting, but luriking, because posting would get them banned.
Anyone else see this behaviour? |
All times are GMT. The time now is 12:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|