diff --git a/e107_core/shortcodes/batch/usersettings_shortcodes.php b/e107_core/shortcodes/batch/usersettings_shortcodes.php index 5be90697e..d1864e105 100755 --- a/e107_core/shortcodes/batch/usersettings_shortcodes.php +++ b/e107_core/shortcodes/batch/usersettings_shortcodes.php @@ -141,7 +141,7 @@ class usersettings_shortcodes extends e_shortcode if($parm == 'radio') { $options['enabled'] = array('title' => LAN_USER_84); - return e107::getForm()->radio_switch("hideemail", $this->var['user_hideemail'],LAN_YES,LAN_NO,$options); + return "
".e107::getForm()->radio_switch("hideemail", $this->var['user_hideemail'],LAN_YES,LAN_NO,$options)."
"; } } @@ -238,14 +238,26 @@ class usersettings_shortcodes extends e_shortcode function sc_photo_upload($parm) { - $diz = LAN_USET_27."
".LAN_USET_28; + $diz = LAN_USET_27.". ".LAN_USET_28."."; + + if(USERPHOTO) + { + $text .= e107::getParser()->parseTemplate("{PICTURE}",true); + } if (e107::getPref('photo_upload') && FILE_UPLOADS) { - return "".LAN_USET_16."
\n - -
{$diz}
"; + $text .= "
"; + $text .= e107::getForm()->checkbox('user_delete_photo', 1, false, LAN_USET_16); + $text .= "
"; + + + // $text .= "".LAN_USET_16."
\n"; + $text .= "

\n"; + } + + return $text; } diff --git a/e107_core/shortcodes/single/user_avatar.php b/e107_core/shortcodes/single/user_avatar.php index d3e2ce0ea..d96e40110 100644 --- a/e107_core/shortcodes/single/user_avatar.php +++ b/e107_core/shortcodes/single/user_avatar.php @@ -27,7 +27,7 @@ function user_avatar_shortcode($parm=null) $image=$row['user_image']; } } - elseif(!is_null($parm)) + elseif(!empty($parm)) { $image=$parm; } @@ -56,6 +56,7 @@ function user_avatar_shortcode($parm=null) } elseif(substr($image,0,8) == "-upload-") { + $image = substr($image,8); // strip the -upload- from the beginning. if(file_exists(e_AVATAR_UPLOAD.$image)) // Local Default Image { @@ -63,6 +64,7 @@ function user_avatar_shortcode($parm=null) } else { + $img = $genericImg; } } @@ -72,6 +74,7 @@ function user_avatar_shortcode($parm=null) } else // Image Missing. { + $img = $genericImg; } } diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index b639ea5c4..df0f8564c 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -602,8 +602,12 @@ class e_form $text .= "
".LAN_USET_26." -
-
OR
"; + "; + + if(count($avFiles) > 0) + { + $text .= "
OR
"; + } }