PDA

View Full Version : One small hack please. :)


jonnerd154
02-21-2005, 12:02 AM
I need one small hack,

2. Prohibiting users from registering with an unreal birth year such as 0000. Maybe only allowing 1900 - [TodaysDate] would be a good idea.

Any takers? Any help would be greatly appreciated!

Edit: Removed first hack request due to reply #2 of this thread.

Viktor Kraft
02-21-2005, 12:11 AM
The first one doesn't need a hack.
You can use the promotion system to do that :)

jonnerd154
02-21-2005, 04:44 AM
The first one doesn't need a hack.
You can use the promotion system to do that :)

Ohhhh, ok. Thanks! Just the second one then.

jonnerd154
02-26-2005, 05:53 AM
anyone?

jonnerd154
03-11-2005, 03:53 PM
please?

Protoman
03-11-2005, 04:58 PM
In register.php

find:
if ($year < ($current['year'] - 13) OR ($year == ($current['year'] - 13) AND $month <= $current['month']))
Above it put:

if ($year < $current['year']-110)
{
eval(print_standard_error('error_too_old'));
}
add a new phrase in AdminCP..

Type: Front-End Error Message
VarName: too_old
Text: Sorry, but you must be living to join the site.

change the 110 above to however many years back you want it to limit membership.

jonnerd154
03-11-2005, 09:24 PM
Awesome! Thank you so much!

nexialys
03-11-2005, 10:29 PM
funny, you can release this in the Mini-Hacks, this is completely useful!

jonnerd154
03-11-2005, 11:08 PM
Yeah, I kept having people register with bogus years then spam my board with pr0n. Now they have to take a few extra seconds to register.