vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Force 18 and over at Registration Time. (https://vborg.vbsupport.ru/showthread.php?t=74808)

T3MEDIA 01-20-2005 10:00 PM

Force 18 and over at Registration Time.
 
I must have been asking for this for at least 3 months now. This is a patch to me not really a fix.

What this modification does:
When a new user (sorry only works for new users) Signs up on your forum they will have to enter an age that is 18 years and up. Once they do this and complete the registration they can not change the year they inputted at registration time.

What is the point of this???
Well this is the biggest thing I have seen that gives no control to the vB admin.

Users can sign up saying they are 18 and then once they are members change the year back to the age they really are (say 15) Issues occur when other users see this (esp. a 18 and older forum) They become concerned about the young users on the site.

Of course people can lie. But at least it is forced now (like their user name) once they enter the age.

In some countries and some states in the US you have to have something like this.

I do hope this helps everyone who needs it.

Works with 3.0.x up to 6

jugo 01-21-2005 11:39 PM

Very good idea.

Installing.

Sin City 01-22-2005 05:52 AM

i agree... i've been looking for something like this... thank you

T3MEDIA 02-11-2005 03:48 AM

no problem its cool. Wish I could do more.

evo_j 03-11-2005 03:50 PM

it seems to let you register at like 17yrs 11months and some days, i cant find the exact cut off point?? apart from that it works, is that normal??

many thanks

evo_j 03-11-2005 03:53 PM

perhaps there is something caching in the browser once you have tried it once?? never thought of that??

T3MEDIA 03-12-2005 10:02 AM

this is a very very easy hack so your saying 17 year olds and some months are still signing up?
you sure the dates are correct?

your idea has nothing to do with this hack to be honest with you.
I have no problems what so ever. Do you mind breaking it down what exactly is going on? DO you have more hacks installed?

evo_j 03-12-2005 02:51 PM

my idea? which idea was that then??? if ur refering to the caching i simply meant that if u go to sign up page, put in an age of over 18, then move onto next page, see that it works, click back in browser, then try to enter an age below 18 it may have cached the original entry, i have no idea how it works, just thinking outloud

i am also saying

i tried to sign up and i have just tried it again to verify

i put in date of march 30th 1987 it allowed me to register, this would make my age 17 years 11 months and some days, am i right or not? unless the server has the wrong date set which i doubt, im sure i would notice, i havent changed anything in the code.

I have installed miserable user hack thats it... i have double checked the mod and i did it exactly as its instructed to do it

thanks

Marco van Herwaarden 03-12-2005 05:49 PM

PHP Code:

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

It will accept you starting with the month you will turn 18.

evo_j 03-12-2005 06:07 PM

ok thanks for clarifying how it works, thats ok anyway, not a problem

thanks again

T3MEDIA 03-13-2005 10:37 AM

Quote:

Originally Posted by evo_j

I have installed miserable user hack thats it... i have double checked the mod and i did it exactly as its instructed to do it

thanks

Yo bro. I am asking you to help you and you throw some talk about miserable user?

Mechanical Mind 03-13-2005 11:21 AM

Quote:

Originally Posted by T3MEDIA
Yo bro. I am asking you to help you and you throw some talk about miserable user?

I think he is talking about the "Miserable User Hack". It's the one where it makes the forums start screwing up for certain users so they get fed up and go. I don't think he was saying he was a "Miserable User"... LOL :classic:

(I like to be a peacemaker whenever I can) :smoke:

T3MEDIA 03-13-2005 11:23 AM

Quote:

Originally Posted by Mechanical Mind
I think he is talking about the "Miserable User Hack". It's the one where it makes the forums start screwing up for certain users so they get fed up and go. I don't think he was saying he was a "Miserable User"... LOL :classic:

(I like to be a peacemaker whenever I can) :smoke:

Oh ok... I was like wow this guy is rude! LOL
well then I am sorry for the assumption.

evo_j 03-14-2005 03:31 PM

yes you did ask what else i had installed, it was miserable user hack;) im not gonna be rude when asking for help :) i appreciate the input and ur time. Its clear now and i understand how it works, and its working fine

thanks again

SloChild 03-15-2005 06:30 AM

Thanks - I've been looking for this one. Keep up the good work.

CrazyLady 03-18-2005 04:47 AM

will this work with Version 3.0.7?

Thanks
CL

T3MEDIA 03-18-2005 08:17 PM

Quote:

Originally Posted by CrazyLady
will this work with Version 3.0.7?

Thanks
CL

yes not a problem with 3.0.7

Scerina 03-21-2005 12:45 PM

Am workin on an Anne Rice forum and I want members who are 16 & above ONLY to join...is there anyway to change the age from 18 to 16 on this hack? Cuz I for one would use it in a heartbeat!

T3MEDIA 03-22-2005 03:26 PM

Quote:

Originally Posted by Scerina
Am workin on an Anne Rice forum and I want members who are 16 & above ONLY to join...is there anyway to change the age from 18 to 16 on this hack? Cuz I for one would use it in a heartbeat!

The area in the hack that says...

PHP Code:

1. open register.php

######################################################################################
Find:

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

Replace with:
        
// 18 and older START by kinglifer
        // if ($year < ($current['year'] - 13) OR ($year == ($current['year'] - 13) AND $month <= $current['month']))
          
if ($year < ($current['year'] - 18) OR ($year == ($current['year'] - 18) AND $month <= $current['month']))
        
// 18 and older END by kinglifer
###################################################################################### 

do all the finds but replace it with this...
PHP Code:

// 18 and older START by kinglifer
        // if ($year < ($current['year'] - 13) OR ($year == ($current['year'] - 13) AND $month <= $current['month']))
if ($year < ($current['year'] - 16) OR ($year == ($current['year'] - 16) AND $month <= $current['month']))
// 18 and older END by kinglifer 

That will do 16+

biggkay 05-04-2005 04:23 PM

The new uptade doesn't work. I get this error.

Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in /home/pioneers/public_html/forums/register.php on line 88

T3MEDIA 05-04-2005 07:10 PM

Quote:

Originally Posted by biggkay
The new uptade doesn't work. I get this error.

Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in /home/pioneers/public_html/forums/register.php on line 88

whoops That means something is missing. Must be a typo. Thank you for telling me. Let me check it out.
Your sure you didnt make any mistakes correct?
BRB
edit. Im at work so try this...
Change in the hack:
Quote:

if ( $month == 0 OR ! preg_match ( "!^(19[0-9]{2}|200[0-5]{1})$!", $year ) )
to:
Quote:

if ( $month == 0 OR ! preg_match ( '!^(19[0-9]{2}|200[0-5]{1})$!', $year ) )

murrtex 12-01-2005 03:48 PM

is there any version for 3.5.x ??

T3MEDIA 12-10-2005 09:16 AM

Quote:

Originally Posted by murrtex
is there any version for 3.5.x ??

No. but I dont see why it cant be ported.

ORP 05-10-2006 06:27 PM

Any plans to port this to version 3.5? Please!!!!!!!

Thanks in advance.

Artes_Marciales 12-02-2007 01:30 PM

Thanks.
this works with 3. 6. 7?? :)


All times are GMT. The time now is 04:46 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.01376 seconds
  • Memory Usage 1,782KB
  • 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
  • (3)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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