vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Birthdate is a Required Field (https://vborg.vbsupport.ru/showthread.php?t=56643)

Gary King 08-30-2003 10:00 PM

Birthdate is a Required Field
 
<font size="3">What does this hack do?</font>

It enables the Birthdate field to become a required field, so that every member must fill it out otherwise they won't be able to register.

Tae-Hwan 08-31-2003 06:18 PM

excellent! :)

the hack works, but there's a small bug: when a new user registers without inputting his birthday, he sees:

Quote:

You have not completed the required field "". Please press the back button, complete it, and resubmit the form.
instead of "You have not entered your birthdate. Please go back and do so now."


also, just out of curiosity.. this hack seems to prevent a user from registering even if he puts in both the month and day of his birth, but not the year. i looked at the code, and it seems to only restrict the month and day.

Code:

if ($month == -1 or $day == -1)
so how does it protect against the year? :(

Gary King 08-31-2003 08:10 PM

OK it checks the year now.

For the problem you're having, I'm not sure what's going on because the hack works fine for me.

Sebastian 09-01-2003 03:04 AM

why force a person to reveal their private info?
nice way to annoying possible new members.

you dont even have your birthday field fill in here :p
what next, social security number required? ;)

Gary King 09-01-2003 03:06 AM

Well, then the users just don't have to register, that's all ;)

Sebastian 09-01-2003 03:07 AM

your loss not theirs :p

SmEdD 09-01-2003 04:42 AM

I thought there was a hack like this already?

[high]* SmEdD might of just been seing stuff . . . :o
[/high]

Quote:

Today at 12:04 AM Sebastian said this in Post #4
why force a person to reveal their private info?
nice way to annoying possible new members.

you dont even have your birthday field fill in here :p
what next, social security number required? ;)

This can verfy a users age if you need if, as some boards do.

ZiRu$ 09-01-2003 07:52 PM

Thanks alot man.....really appreciate it!!!! *INSTALLED*

Red Blaze 09-02-2003 05:39 PM

Hmm... this could help me in something I wanted. I'll install it. ^_^ Thanks!

Dark_Wizard 09-02-2003 08:59 PM

Quote:

Yesterday at 12:04 AM Sebastian said this in Post #4
why force a person to reveal their private info?
nice way to annoying possible new members.

you dont even have your birthday field fill in here :p
what next, social security number required? ;)

I think this is an excellent idea...helps with COPPA if you use it and like myself we do require an age limit for our clan.

TheComputerGuy 09-13-2003 11:56 AM

How come I can't see this hack....

I mean...I am licensed.

assassingod 09-13-2003 11:57 AM

Quote:

Originally Posted by TheComputerGuy
How come I can't see this hack....


I mean...I am licensed.

It looks like it has been removed.

TheComputerGuy 09-13-2003 12:02 PM

thanks...thought I was going crazy, checked my license 3 times lol

Well then...I guess we will have to wait for its return!

Gary King 09-13-2003 01:24 PM

Strange, when I edit the post, the attached instructions.txt is still there.

I'll see what I can do.

Gary King 09-13-2003 01:33 PM

There we go, you should be able to see the attachment now :)

Red Blaze 10-03-2003 02:55 PM

I installed this a while back and forgot to post that...

It works. ^_^ This hack could help me in a hack I'm trying to request. ^^; Based on permissions.

Quote:

why force a person to reveal their private info?
nice way to annoying possible new members.
Who said that info COULD be public? For all you know it could be set to hidden. :p

Gary King 10-03-2003 06:40 PM

Quote:

Originally Posted by Sonikku
I installed this a while back and forgot to post that...

It works. ^_^ This hack could help me in a hack I'm trying to request. ^^; Based on permissions.



Who said that info COULD be public? For all you know it could be set to hidden. :p

Yep, that's always a possibility ;) :D

ZiRu$ 10-12-2003 01:06 AM

The current TXT file still only forces you to put in the month and the day....what about the year?

Also....this only affects users registering...what if i want to make my users who are already joined put in their date the next time they go to edit their profile!

Onkel_Tom 11-10-2003 03:42 PM

thanks for the nice feature ! => INSTALLED !

Burley 10-13-2005 12:38 PM

I know this is a really old hack, but my forum still runs 2.3 (working on 3.5).
I clicked install and put this hack to good use.

However it still only checks for the month and the day, not the year.
I added the code which I thought solves the problem, but it didn't.

PHP Code:

($month == -or $day == -or $year == -1

So what is the correct code?
Does anybody know?


All times are GMT. The time now is 11:50 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.01252 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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