Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2007, 01:38 PM
jderouen's Avatar
jderouen jderouen is offline
 
Join Date: Oct 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 05-16-2007, 10:34 PM
jderouen's Avatar
jderouen jderouen is offline
 
Join Date: Oct 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there truly no way to do this??
Reply With Quote
  #3  
Old 05-17-2007, 05:45 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the registration templates and add:
HTML Code:
checked="checked"
To the ones you want checked by default.
Reply With Quote
  #4  
Old 05-17-2007, 03:27 PM
jderouen's Avatar
jderouen jderouen is offline
 
Join Date: Oct 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #5  
Old 05-17-2007, 03:29 PM
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
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
Reply With Quote
  #6  
Old 05-17-2007, 05:02 PM
jderouen's Avatar
jderouen jderouen is offline
 
Join Date: Oct 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did this, but it still uses Hide age and Dob as the default.

Quote:
Originally Posted by EnIgMa1234 View Post
<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
Reply With Quote
  #7  
Old 05-17-2007, 05:04 PM
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$sbselected[1]
to
$sbselected[0]
Reply With Quote
  #8  
Old 05-17-2007, 05:24 PM
jderouen's Avatar
jderouen jderouen is offline
 
Join Date: Oct 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 05-19-2007, 04:38 AM
jderouen's Avatar
jderouen jderouen is offline
 
Join Date: Oct 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any other ideas?
Reply With Quote
  #10  
Old 05-22-2007, 08:20 PM
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Location: Hades
Posts: 1,298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah me too!! anybody?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:39 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.07942 seconds
  • Memory Usage 2,249KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete