vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Where do I edit so that the members birthdate YEAR is a required field as well? (https://vborg.vbsupport.ru/showthread.php?t=79636)

CrazyLady 04-08-2005 10:13 PM

Where do I edit so that the members birthdate YEAR is a required field as well?
 
Where do I edit so that the members birthdate YEAR is a required field as well?

thanks
CL

Princeton 04-08-2005 10:45 PM

you need to edit the register.php file
(please make a backup before you do any changes)

FIND IN register.php:
Code:

if ($day == -1 OR $month == -1)
REPLACE WITH:
Code:

if ($day == -1 OR $month == -1 OR $year == '')
I'm guessing that should work ... not tested..

CrazyLady 04-08-2005 11:46 PM

What file would this be in for users editing their profiles? I have a lot of users who did not enter their year, or will remove the year.

Princeton 04-09-2005 12:29 AM

do the same ... profile.php

Boofo 04-09-2005 12:31 AM

The only drawback about requiring a year, is that most users will lie about the year if they don't want it entered. Kind of defeats the purpose, I guess. ;)

Princeton 04-09-2005 12:34 AM

yea ... it depends on the site (subject)

CrazyLady 04-09-2005 12:51 AM

Quote:

Originally Posted by princeton
do the same ... profile.php

I tried that, but was unable to locate the code to replace it?

but found it as:
Code:

                (bitwise(REGOPTION_REQBIRTHDAY, $vboptions['defaultregoptions']) AND ($day == -1 OR $month == -1))
and changed it to:
Code:

                (bitwise(REGOPTION_REQBIRTHDAY, $vboptions['defaultregoptions']) AND ($day == -1 OR $month == -1 OR $year == ''))
worked for me :)

... as for lying, that will happen anyways... if they enter a year or not.. what ya gonna do?.. if only we could verify for proof of age with a CC.

thanks for your help :)

Princeton 04-09-2005 12:55 AM

yep ... that's it :)
good work


All times are GMT. The time now is 07:10 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.01205 seconds
  • Memory Usage 1,725KB
  • 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
  • (4)bbcode_code_printable
  • (1)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