Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
MURALIDHARAN RAMASAMY
0 points
Beginner
There was some problem in custom registration fields which got deleted when we click on premiumpress menu > configuration for second time after updating custom registration fields and i found out due to below logic custom registration fields are getting reset to empty. Please update this in future release, it will be helpful for others.
In admin-2-userfields.php, it is updating option regfields to empty for the second time if we visit same admin menu again, i think update_option("regfields", ""); is not needed.
if(isset($_POST) && current_user_can('administrator') ){
if(!isset($_POST['regfields'])){
update_option("regfields", "");
}else{
update_option("regfields", $_POST['regfields']);
}
}
There was some problem in custom registration fields which got deleted when we click on premiumpress menu > configuration for second time after updating custom registration fields and i found out due to below logic custom registration fields are getting reset to empty. Please update this in future release, it will be helpful for others.
In admin-2-userfields.php, it is updating option regfields to empty for the second time if we visit same admin menu again, i think
update_option("regfields", "");
is not needed.if(isset($_POST) && current_user_can('administrator') ){
if(!isset($_POST['regfields'])){
update_option("regfields", "");
}else{
update_option("regfields", $_POST['regfields']);
}
}
$regfields = get_option("regfields");
if(!is_array($regfields)){ $regfields = array(); }
Members Only Content
This reply is for PremiumPress customers only.
Login Now