vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How do I make the birthday year required? (https://vborg.vbsupport.ru/showthread.php?t=65078)

RDX1 05-13-2004 09:12 PM

How do I make the birthday year required?
 
How do I make the birthday year required when registering?

mmw 05-13-2004 10:02 PM

vBulletin Options > User Registration Options > Require Birthday @ the bottom :)

Synicide 05-13-2004 10:05 PM

Quote:

Originally Posted by mmw
vBulletin Options > User Registration Options > Require Birthday @ the bottom :)

Tried that. It still doesn't require the year. :(

Boofo 05-13-2004 10:13 PM

Quote:

Originally Posted by Synicide
Tried that. It still doesn't require the year. :(

I don't think it's possible without hacking. The only problem with that is that most users that don't want to have the year in their birthday would put a false year in to get past the registration process. ;)

RDX1 05-13-2004 11:15 PM

Quote:

Originally Posted by Boofo
I don't think it's possible without hacking.

That's why it's in the modification requests forum.

Quote:

The only problem with that is that most users that don't want to have the year in their birthday would put a false year in to get past the registration process. ;)
They can do that and if I catch them, they can be banned. I would like to force the year to be required, if they don't want to do that they can leave. I have a valid reason for it and I would like to know how.

I changed the coppa to check for users under the age of 18 instead of 13 which was easy just changing a few numbers in register.php, but I don't know how to require the birthday.

RDX1 05-15-2004 06:15 PM

No one knows how to do this small little modification request? I would do it If I knew where in register.php to look. Are the only hack requests that are completed are paid hacks now no matter the size?

moonclamp 05-20-2004 07:06 PM

I am interested in this too ... at the moment my users have to submit a birthday when they sign up ... but once they have joined, the birthday field is no longer compulsory and 'search members by age' is not in the advanced member search

moonclamp 05-21-2004 01:26 AM

OK here is a small workaround I've done by editing templates.

It does the trick by using a select box for registration and profile edits rather than a text field.

However you must remember to update the year manually every year

In this instance I have set 1986 as my cut off year (18)

Open template register_verify_age

find the following:

HTML Code:

<input type="text" class="bginput" name="year" size="10" maxlength="4" value="" />
replace it with:

HTML Code:

<select name="year">
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
<option value="1930">1930</option>
<option value="1929">1929</option>
<option value="1928">1928</option>
<option value="1927">1927</option>
<option value="1926">1926</option>
<option value="1925">1925</option>
<option value="1924">1924</option>
<option value="1923">1923</option>
<option value="1922">1922</option>
<option value="1921">1921</option>
<option value="1920">1920</option>
<option value="1919">1919</option>
<option value="1918">1918</option>
<option value="1917">1917</option>
<option value="1916">1916</option>
<option value="1915">1915</option>
<option value="1914">1914</option>
<option value="1913">1913</option>
<option value="1912">1912</option>
<option value="1911">1911</option>
<option value="1910">1910</option>
<option value="1909">1909</option>
<option value="1908">1908</option>
<option value="1907">1907</option>
</select>

Believe me typing that out manually was a real pain to do ;)

Open templates register and modify_profile

Find in both (or very similar):

HTML Code:

<input type="text" class="bginput" name="year" value="$year" size="4" maxlength="4" />

replace it with the same as above but include another option value at the top of the options list.

HTML Code:

<option value="$year">$year</option>
Remember that last bit of code must be below <select name="year"> in the options list


Anyway ... it's very late here and I'm bound to have made a mistake, but it seems to act as a workaround for now ...

T3MEDIA 12-26-2004 08:17 PM

So there isnt a real way to inforce the age then. Is there a way just to remove the whole dam thing completely from the profile page? that way once they have to put the age in it wont be able to change unless an admin does it.


OF COURSE I came here from this thread.

>sigh<

T3MEDIA 12-27-2004 01:22 PM

Bump?


All times are GMT. The time now is 10:03 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.01130 seconds
  • Memory Usage 1,765KB
  • 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_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete