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 enable "show age and DOB" by default? (https://vborg.vbsupport.ru/showthread.php?t=133780)

BigJohnny 12-12-2006 12:56 AM

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.

peterska2 12-17-2006 10:57 PM

It should be in vBOptions > User Registration Options > Default Registration Settings.

BigJohnny 12-18-2006 05:26 PM

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.

isanda 03-05-2007 07:00 PM

Does anybody know how to make this the default on the site...I have seen it like this when registering on other sites

vulg 03-27-2007 07:32 PM

Quote:

Originally Posted by Kerry-Anne (Post 1140630)
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'

jderouen 05-10-2007 05:23 PM

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 (Post 1213858)
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'


jderouen 05-12-2007 04:37 AM

Any advice?

Apparently not...

christinar78 07-03-2008 01:07 PM

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


All times are GMT. The time now is 03:18 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.01004 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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