Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2017, 02:48 AM
KatFennec's Avatar
KatFennec KatFennec is offline
Member
 
Join Date: Apr 2017
Posts: 57
Gender: Female
Credits: 11,401
KatFennec is on a distinguished road
Default

The birthday is actually pretty simple.
You just need to drop
PHP Code:
elseif(preg_match('/[01]\d\/[0123]\d\/19\d\d|20[012]\d/'$birthday)){

         
$this->seterror("Please enter your birthdate in the format provided.");

         return 
FALSE;

      } 
into the birthdayvalidate function in the same file.

EDIT:
It looks like I was wrong. You need to partially re-write the birthdayvalidate function like so:
PHP Code:
protected function birthdayvalidate($birthday ""){
      
$lang Registry::get("lang");
      if(empty(
$this->value['birthday'])){
         
$this->seterror($lang->birthdayTRUE);
         return 
FALSE;
      }
      if(
preg_match_all('/[01]\d\/[0123]\d\/19\d\d|20[012]\d/'$birthday)){

         

         return 
TRUE;

      }
      else{
         
$this->seterror("Please enter your birthdate in the format provided.");
          return 
FALSE;
      };
  } 
__________________

Last edited by KatFennec; 06-05-2017 at 03:07 AM. Reason: Mistake in code
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:33 AM.

Currently Active Users: 3594 (0 members and 3594 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636