vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   One small hack please. :) (https://vborg.vbsupport.ru/showthread.php?t=76722)

jonnerd154 02-21-2005 12:02 AM

One small hack please. :)
 
I need one small hack,

2. Prohibiting users from registering with an unreal birth year such as 0000. Maybe only allowing 1900 - [TodaysDate] would be a good idea.

Any takers? Any help would be greatly appreciated!

Edit: Removed first hack request due to reply #2 of this thread.

Viktor Kraft 02-21-2005 12:11 AM

The first one doesn't need a hack.
You can use the promotion system to do that :)

jonnerd154 02-21-2005 04:44 AM

Quote:

Originally Posted by Viktor Kraft
The first one doesn't need a hack.
You can use the promotion system to do that :)

Ohhhh, ok. Thanks! Just the second one then.

jonnerd154 02-26-2005 05:53 AM

anyone?

jonnerd154 03-11-2005 03:53 PM

please?

Protoman 03-11-2005 04:58 PM

In register.php

find:
PHP Code:

if ($year < ($current['year'] - 13) OR ($year == ($current['year'] - 13) AND $month <= $current['month'])) 

Above it put:
PHP Code:

if ($year $current['year']-110)
    {
            eval(
print_standard_error('error_too_old'));
    } 

add a new phrase in AdminCP..

Type: Front-End Error Message
VarName: too_old
Text: Sorry, but you must be living to join the site.

change the 110 above to however many years back you want it to limit membership.

jonnerd154 03-11-2005 09:24 PM

Awesome! Thank you so much!

nexialys 03-11-2005 10:29 PM

funny, you can release this in the Mini-Hacks, this is completely useful!

jonnerd154 03-11-2005 11:08 PM

Yeah, I kept having people register with bogus years then spam my board with pr0n. Now they have to take a few extra seconds to register.


All times are GMT. The time now is 08:15 PM.

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.01144 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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