Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 12-12-2006, 12:56 AM
BigJohnny's Avatar
BigJohnny BigJohnny is offline
 
Join Date: Jun 2006
Location: Canada
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I enable "show age and DOB" by default?

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.
Reply With Quote
  #2  
Old 12-17-2006, 10:57 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should be in vBOptions > User Registration Options > Default Registration Settings.
Reply With Quote
  #3  
Old 12-18-2006, 05:26 PM
BigJohnny's Avatar
BigJohnny BigJohnny is offline
 
Join Date: Jun 2006
Location: Canada
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-05-2007, 07:00 PM
isanda isanda is offline
 
Join Date: Sep 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anybody know how to make this the default on the site...I have seen it like this when registering on other sites
Reply With Quote
  #5  
Old 03-27-2007, 07:32 PM
vulg vulg is offline
 
Join Date: Nov 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kerry-Anne View Post
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

Code:
UPDATE user SET showbirthday='2' WHERE showbirthday='0'
Reply With Quote
  #6  
Old 05-10-2007, 05:23 PM
jderouen's Avatar
jderouen jderouen is offline
 
Join Date: Oct 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?




Quote:
Originally Posted by vulg View Post
it's not.

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

run this mysql query in phpmyadmin

Code:
UPDATE user SET showbirthday='2' WHERE showbirthday='0'
Reply With Quote
  #7  
Old 05-12-2007, 04:37 AM
jderouen's Avatar
jderouen jderouen is offline
 
Join Date: Oct 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any advice?

Apparently not...
Reply With Quote
  #8  
Old 07-03-2008, 01:07 PM
christinar78 christinar78 is offline
 
Join Date: Jan 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!!
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 01:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04234 seconds
  • Memory Usage 2,227KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete