diff --git a/e107_core/shortcodes/batch/comment_shortcodes.php b/e107_core/shortcodes/batch/comment_shortcodes.php index e2735f250..bc70b91cf 100644 --- a/e107_core/shortcodes/batch/comment_shortcodes.php +++ b/e107_core/shortcodes/batch/comment_shortcodes.php @@ -105,12 +105,13 @@ class comment_shortcodes extends e_shortcode $width = e107::getPref("im_width"); $tp = e107::getParser(); + if (vartrue($this->var['user_id'])) { if (vartrue($this->var['user_image'])) { - $img = $tp->thumbUrl(e_MEDIA."avatars/".$this->var['user_image'],"aw=".$width."&ah=".$height); - $text = ""; + $img = (strpos($this->var['user_image'],"://")!==false) ? $this->var['user_image'] : $tp->thumbUrl(e_MEDIA."avatars/".$this->var['user_image'],"aw=".$width."&ah=".$height); + $text = ""; } else { diff --git a/e107_core/shortcodes/batch/signup_shortcodes.php b/e107_core/shortcodes/batch/signup_shortcodes.php index 969d80181..8a8a0e5aa 100755 --- a/e107_core/shortcodes/batch/signup_shortcodes.php +++ b/e107_core/shortcodes/batch/signup_shortcodes.php @@ -42,11 +42,11 @@ class signup_shortcodes extends e_shortcode function sc_signup_xup() // show it to those who were using xup { - return $this->sc_social_login(); + return $this->sc_signup_social_login(); } - function sc_social_login() + function sc_signup_social_login() { $pref = e107::getPref('social_login_active'); @@ -54,7 +54,7 @@ class signup_shortcodes extends e_shortcode { $text = ""; $providers = e107::getPref('social_login'); - // $providers = array('facebook','twitter','google','yahoo','blogger'); + foreach($providers as $p=>$v) { $p = strtolower($p); @@ -65,9 +65,8 @@ class signup_shortcodes extends e_shortcode //TODO different icon options. see: http://zocial.smcllns.com/ } - $text .= "
"; + // $text .= "
"; return $text; - // return $tp->parseTemplate($SIGNUP_XUP_FORM, TRUE, $signup_shortcodes); } } @@ -322,47 +321,11 @@ class signup_shortcodes extends e_shortcode function sc_signup_images() // AVATARS { - global $pref; + $pref = e107::getPref(); + if($pref['signup_option_image']) { - - $text = " - - - -
"; - - // Intentionally disable uploadable avatar and photos at this stage - if (false && $pref['avatar_upload'] && FILE_UPLOADS) - { - $text .= "
".LAN_SIGNUP_25." -
".LAN_SIGNUP_34."
"; - } - - if (false && $pref['photo_upload'] && FILE_UPLOADS) - { - $text .= "
".LAN_SIGNUP_26." -
".LAN_SIGNUP_34."
"; - } - return $text; + return e107::getForm()->avatarpicker('avatar'); } } diff --git a/e107_core/shortcodes/single/user_avatar.sc b/e107_core/shortcodes/single/user_avatar.php similarity index 100% rename from e107_core/shortcodes/single/user_avatar.sc rename to e107_core/shortcodes/single/user_avatar.php