View Full Version : Need a hack to force birthday field entry
I need a hack that would make the birthday field a required field so that a new loggin must fill this out!
Thanks
DM
Xenon
09-16-2002, 08:53 PM
hm try that:
open register.php
find if ($username=="" or $email=="" or $emailconfirm=="" or $password=="" or $passwordconfirm=="") {
replace with: if ($username=="" or $email=="" or $emailconfirm=="" or $password=="" or $passwordconfirm=="" or $day==-1 or $month==-1 or $year<1901) {
Thanks Xenon! I'll try that.... I forgot to say I'm running VB 2.2.7
Got your code up... I'll let you knw how it works... :)
THanks
DM
You sere so good at that... tell me how do I make the users name above his avatar clickable to his member info??? ;)
g-force2k2
09-17-2002, 01:01 AM
uhh.. nice Xenon ;) i actually helped someone with this and i took a much longer route :p but i guess thats me... anyways dm02 you'll probably want to add the same effect to the member.php file so they can't just re edit their profile later on ;)
btw for the member link replace
$post[username]
with:
<a href='member.php?s=$session[sessionhash]&action=getinfo&userid=$post[userid]'>$post[username]</a>
regards ;)
g-force2k2
Xenon
09-17-2002, 10:56 AM
@dm02: np :)
btw the changes g-force told ya, should be applied in the postbit template ;)
@g-force: my way is just a fast effectiv way, but not so nice, because it just leads to the field missing error.
in a longer routine, you can make an extra errormsg please enter birthday field or whatever.
but i like the pure fast way ;)
USODJA
04-23-2003, 12:09 PM
Worked for me in 2.30
But what about the edit profile (member.php)
To catch those already signed up...
T3MEDIA
12-27-2004, 01:25 PM
Worked for me in 2.30
But what about the edit profile (member.php)
To catch those already signed up...
There is this hack on here that dynamicly shows pop ups. you can make a condition to force users who have not filed out that field to go there now when they log in.
T3MEDIA
12-27-2004, 01:27 PM
@dm02: np :)
btw the changes g-force told ya, should be applied in the postbit template ;)
@g-force: my way is just a fast effectiv way, but not so nice, because it just leads to the field missing error.
in a longer routine, you can make an extra errormsg please enter birthday field or whatever.
but i like the pure fast way ;)
what exactly happens if you add this? I need this bad I have too many under age people putting they are 40 then changing it back to 16. when other users see that they freak. Yes people could lie im not talking about that... just would like to keep it over a certain age regardless.
boo.3
12-27-2004, 02:49 PM
i don't understand why you don't upgrade to 3.0.3?
T3MEDIA
01-09-2005, 06:55 PM
I am version 3.
Zachery
01-09-2005, 07:11 PM
I am version 3.
This wont work for vB3 :)
Tekton
01-11-2005, 10:05 AM
Erm, doesn't vb3 allow the forcing of bday in options? (admin panel)
T3MEDIA
01-14-2005, 06:27 AM
Erm, doesn't vb3 allow the forcing of bday in options? (admin panel)
You think if were posting all this time....
What were talking about doesnt exist yet
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.