Can I disable "Highest age possible for site members"?

Hello,

I want to disable the "Highest age possible for site members" check for the join page. I know where I can set the highest possible age in admin, but I want to disable that check altogether. Is that possible? If so, how?

Quote · 4 May 2012

humm!! i think you can put 1000 in that field as 1000 is really high...:)

so much to do....
Quote · 4 May 2012

 

 

humm!! i think you can put 1000 in that field as 1000 is really high...:)

 

 Prashank,

 

Unfortunately, that causes the date picker pop-up to load up 1000 years of dates, so it makes it super-slow, and it would allow the member to choose dates from centuries ago.

 

The root of my issue is that, for some reason, no matter what I put for the date of birth it gives me the "highest age" error message. I'm not sure which file/setting change caused this issue, but it is driving me mad trying to hunt it down.

 

===================

EDIT:

OK, so this doesn't answer my initial question, but I was able to fix the "always error" issue. I simply made changes to the two files referenced below, changing the date format to my preferred format:

 

For date DateOfBirth you need to change:


1. Date format for JS Date Picker in inc/js/jquery.webForms.js -> addWebForms method -> line 137
2. Date parser in profile fields in inc/classes/BxDolProfileFields.php -> processPostValues method -> line 111



inc/js/jquery.webForms.js (changed for date format dd/mm/yyyy)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


// Date picker
if(this.getAttribute("type") == "date") {
$(this).attr('readonly', 'readonly').datepicker({
changeYear: true,
dateFormat: 'dd-mm-yy',
defaultDate: -8030,
yearRange: ($(this).attr('min') ? $(this).attr('min') : '1900') + ':' + ($(this).attr('max') ? $(this).attr('max') : '2100')
});
}

// DateTime picker
if(this.getAttribute("type") == "datetime") {
$(this)
.attr('readonly', 'readonly')
.dynDateTime({
ifFormat: '%d-%m-%y %H:%M:%S',
showsTime: true
});
}

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++






inc/classes/BxDolProfileFields.php (changed for date format dd/mm/yyyy)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


case 'date':
if( isset( $_POST[$sItemName] ) and isset( $_POST[$sItemName][$iHuman] ) and trim( $_POST[$sItemName][$iHuman] ) !== '' ) {
list( $iDay, $iMonth, $iYear ) = explode( '-', $_POST[$sItemName][$iHuman] ); // 1985-10-28

$iDay = intval($iDay);
$iMonth = intval($iMonth);
$iYear = intval($iYear);

$mValue = sprintf("%04d-%02d-%02d", $iDay, $iMonth, $iYear);
}
break;

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Quote · 4 May 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.