vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I set display DOB and age as default? (https://vborg.vbsupport.ru/showthread.php?t=147217)

jderouen 05-14-2007 01:38 PM

How do I set display DOB and age as default?
 
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:
HTML Code:

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.

Quote:

Originally Posted by EnIgMa1234 (Post 1249557)
<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:

Code:

<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:

Code:

<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

Code:

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

Mrdby 05-23-2007 11:44 AM

Quote:

Originally Posted by Dismounted (Post 1253149)
Code:

<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:
Code:

<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:
Code:

<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?

Quote:

Originally Posted by EnIgMa1234 (Post 1253321)
Find:
Code:

<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:
Code:

<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...


All times are GMT. The time now is 08:31 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
  • Page Generation 0.01089 seconds
  • Memory Usage 1,759KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete