PDA

View Full Version : How do I set display DOB and age as default?


jderouen
05-14-2007, 01:38 PM
I'm using VB 3.6.7PL, and I still find it odd that this option isn't part of the standard vBulletin.

I've seen a lot of conflicting information on the subject, from people saying it IS in there (trust me, it isn't) to giving advice on how to change it that doesn't seem to work. (Though, for all I know, worked with previous versions...)

So I'm asking again - how can you change things so that, instead of "hide age and date of birth," the default is "Display age and full date of birth?"

Also, how would I go about changing already-existing user's defaults from hide to display?

Thanks,
Joe

jderouen
05-16-2007, 10:34 PM
Is there truly no way to do this??

Dismounted
05-17-2007, 05:45 AM
Edit the registration templates and add:
checked="checked"
To the ones you want checked by default.

jderouen
05-17-2007, 03:27 PM
Not sound obstuse, but where exactly do I put that?

I'm assuming in modifyprofile_birthday?

If so, where in this line do I add it?

<option value="2" $sbselected[2]>$vbphrase[display_age_and_dob]</option>

EnIgMa1234
05-17-2007, 03:29 PM
<option value="2" $sbselected[2]>$vbphrase[display_age_and_dob]</option>
Reply With Quote
to
<option value="2" $sbselected[1]>$vbphrase[display_age_and_dob]</option>
Reply With Quote

jderouen
05-17-2007, 05:02 PM
I did this, but it still uses Hide age and Dob as the default.

<option value="2" $sbselected[2]>$vbphrase[display_age_and_dob]</option>
Reply With Quote
to
<option value="2" $sbselected[1]>$vbphrase[display_age_and_dob]</option>
Reply With Quote

EnIgMa1234
05-17-2007, 05:04 PM
$sbselected[1]
to
$sbselected[0]

jderouen
05-17-2007, 05:24 PM
Okay, here's what I'm doing:

In modifyprofile_birthday, I'm changing both instances of:


<option value="0" $sbselected[0]>$vbphrase[hide_age_and_dob]</option>
<option value="1" $sbselected[1]>$vbphrase[display_age]</option>
<option value="3" $sbselected[3]>$vbphrase[display_day_and_month]</option>
<option value="2" $sbselected[2]>$vbphrase[display_age_and_dob]</option>


to:


<option value="0" $sbselected[2]>$vbphrase[hide_age_and_dob]</option>
<option value="1" $sbselected[1]>$vbphrase[display_age]</option>
<option value="3" $sbselected[3]>$vbphrase[display_day_and_month]</option>
<option value="2" $sbselected[0]>$vbphrase[display_age_and_dob]</option>


At first, that seems to work. I register as a new user, go to usercp, and the selected option is "Display age and date of birth"

But when I look at the user in AdminCP, it shows them as having selected "Hide Age and date of birth"

So what am I doing wrong?

jderouen
05-19-2007, 04:38 AM
Any other ideas?

Mrdby
05-22-2007, 08:20 PM
yeah me too!! anybody?

Dismounted
05-23-2007, 07:25 AM
<option value="2" selected="selected">$vbphrase[display_age_and_dob]</option>

Mrdby
05-23-2007, 11:44 AM
<option value="2" selected="selected">$vbphrase[display_age_and_dob]</option>where do we find that file?

EnIgMa1234
05-23-2007, 04:51 PM
Find:

<option value="0" $sbselected[2]>$vbphrase[hide_age_and_dob]</option>
<option value="1" $sbselected[1]>$vbphrase[display_age]</option>
<option value="3" $sbselected[3]>$vbphrase[display_day_and_month]</option>
<option value="2" $sbselected[0]>$vbphrase[display_age_and_dob]</option>
Replace With:

<option value="0" $sbselected[2]>$vbphrase[hide_age_and_dob]</option>
<option value="1" $sbselected[1]>$vbphrase[display_age]</option>
<option value="3" $sbselected[3]>$vbphrase[display_day_and_month]</option>
<option value="2" selected="selected">$vbphrase[display_age_and_dob]</option>

jderouen
05-24-2007, 03:06 AM
In modifyprofile_birthday, correct? And do I change the first instance, the second, or both?

Find:

<option value="0" $sbselected[2]>$vbphrase[hide_age_and_dob]</option>
<option value="1" $sbselected[1]>$vbphrase[display_age]</option>
<option value="3" $sbselected[3]>$vbphrase[display_day_and_month]</option>
<option value="2" $sbselected[0]>$vbphrase[display_age_and_dob]</option>
Replace With:

<option value="0" $sbselected[2]>$vbphrase[hide_age_and_dob]</option>
<option value="1" $sbselected[1]>$vbphrase[display_age]</option>
<option value="3" $sbselected[3]>$vbphrase[display_day_and_month]</option>
<option value="2" selected="selected">$vbphrase[display_age_and_dob]</option>


I've done this and it does seem to work, however... when I go in to look at the user via the Admin panel, it lists him as "Hide age and date of birth"

Dismounted
05-24-2007, 05:45 AM
You have to change it via the database and the template edit...