The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help on Correcting Code - Userage Permission
I'm trying to correct the code with the following Plugin:
https://vborg.vbsupport.ru/showthread.php?t=93138 Registration Denied if Under 18 The issue is even if you are 18 Today, you have to wait till the end of the month before this plugin will let you register. So basically you have to be 18 + the remainder of days in the month. I'm not yet at the expertise needed to fix this, but I believe I've located the part of the code that needs fixing: PHP Code:
Some help would be greatly appreciated |
#2
|
|||
|
|||
Code:
if ((($current['year'] - $vbulletin->GPC['year']) < $vbulletin->options['minjoinage']) OR ((($current['year'] - $vbulletin->GPC['year']) == $vbulletin->options['minjoinage']) AND ($vbulletin->GPC['month'] <= $current['month']) AND ($vbulletin->GPC['day'] < $current['day']))) |
#3
|
|||
|
|||
*blink*
After many hours of trying to figure this out with Cyricx STILL having issues. Mainly with the month part not working properly :| We've gotten it to work with "March" .. all the way up to the end of the month. But when the month after starts. It stops working and lets them register all the way up to December 31, 1988. This is the code Me and cyricx were using. If someone else could try this and figure it out i'd GREATLY appreciate it. Basically We have been replacing the code in register_checkdate hook We had to define $current['day'] = date('d'); because it wasn't in register.php PHP Code:
|
#4
|
||||
|
||||
PHP Code:
PHP Code:
|
#5
|
|||
|
|||
Hmm... still having issues. The 1st one doesn't work at all. I've been putting it in as
PHP Code:
and the 2nd code. Trying it by itself or with the PHP Code:
BTW Thanks for responding. It's greatly appreciated |
#6
|
||||
|
||||
Quote:
Don't know why the alternative doesn't work ... it shoud. Did you try to output $age? |
#7
|
|||
|
|||
Now it seems to be working in the opposit direction O.o
Everything From March 24, 2006 to Jan 01, 2006 says your under 18. Everything After March 24, 2006 works *lol* These are some of the same things I was getting when working with Cyricx. It's a tough lil bugger |
#8
|
|||
|
|||
Anyone have any other ideas?
|
#9
|
|||
|
|||
None?
|
#10
|
||||
|
||||
Works for me.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|