PDA

View Full Version : How do I enable "show age and DOB" by default?


BigJohnny
12-12-2006, 12:56 AM
I want to change the options around a bit so that the default option thats selected when a user register is "Display age and date of birth" instead of "hide age and date of birth" being the default.

The reason for this is im going to comment that little section of code for that drop down box out, so the user is forced to display the age and DOB.

If i simply comment it out now, then it will hide that stuff by default.

peterska2
12-17-2006, 10:57 PM
It should be in vBOptions > User Registration Options > Default Registration Settings.

BigJohnny
12-18-2006, 05:26 PM
errr.... im not sure i was totally clear on this.

I know its in the options, but what i want to do, is with the actual code, change it so that show age and DOB is the first selected option..... through code, not through the ACP, if that makes any sense at all..

like the code for the drop down box.

isanda
03-05-2007, 07:00 PM
Does anybody know how to make this the default on the site...I have seen it like this when registering on other sites

vulg
03-27-2007, 07:32 PM
It should be in vBOptions > User Registration Options > Default Registration Settings.

it's not. :(

here is a way to set all the current users to show birthdays:

run this mysql query in phpmyadmin


UPDATE user SET showbirthday='2' WHERE showbirthday='0'

jderouen
05-10-2007, 05:23 PM
They're right, Kerry-Anne, the option is definitely not there. How can we add it?

Thanks,
Joe

I have exactly enough knowledge of PHP and Phpmyadmin to be dangerous. :)

How exactly do I run this query?

When phpmyadmin loads, I select database vbulletin, click on query, and add the text you quoted to the "SQL query on database vbulletin:" field, and then click "Submit Query."

I get this in response:

You have to choose at least one column to display

What am I doing wrong?




it's not. :(

here is a way to set all the current users to show birthdays:

run this mysql query in phpmyadmin


UPDATE user SET showbirthday='2' WHERE showbirthday='0'

jderouen
05-12-2007, 04:37 AM
Any advice?

Apparently not...

christinar78
07-03-2008, 01:07 PM
Actually this can be done directly from your admin panel.

Sign into your admin panel and click on Maintenance > Execute SQL Query

Enter that code into the manual Query box. Then enter continue. You will be asked to confirm Query Execution click continue again and Viola you have every one's birthdays displayed!!!