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?


All times are GMT. The time now is 03:37 AM.

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.01569 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete