diff --git a/e107_core/shortcodes/batch/user_shortcodes.php b/e107_core/shortcodes/batch/user_shortcodes.php index b6a5105a2..500dec768 100644 --- a/e107_core/shortcodes/batch/user_shortcodes.php +++ b/e107_core/shortcodes/batch/user_shortcodes.php @@ -421,7 +421,8 @@ class user_shortcodes extends e_shortcode function sc_user_loginname($parm='') { - if(ADMIN && getperms("4")) { + if(ADMIN && getperms("4")) + { return $this->var['user_loginname']; } } @@ -618,11 +619,9 @@ class user_shortcodes extends e_shortcode function sc_user_picture($parm) { - $tp = e107::getParser(); - $parm['id'] = 'user-profile-avatar'; - return $tp->toAvatar($this->var, $parm); - + return e107::getParser()->toAvatar($this->var, $parm); +/* return $tp->parseTemplate("{USER_AVATAR=".$this->var['user_sess']."}",true); @@ -634,7 +633,7 @@ class user_shortcodes extends e_shortcode else { return LAN_USER_42; - } + }*/ } /* sc_USER_AVATAR - see single/user_avatar.php */ diff --git a/e107_core/templates/user_template.php b/e107_core/templates/user_template.php index bcbdb506c..daa6a426c 100644 --- a/e107_core/templates/user_template.php +++ b/e107_core/templates/user_template.php @@ -25,6 +25,11 @@ global $user_shortcodes, $pref, $user; //Set this to TRUE if you would like any extended user field that is empty to NOT be shown on the profile page define("HIDE_EMPTY_FIELDS", FALSE); + + + +/// --------------------- Start of Legacy Code --------------------------------------- // + $EXTENDED_CATEGORY_START = "
- {USER_ADDON_LABEL} - {USER_ADDON_TEXT} -
-'; -$EXTENDED_CATEGORY_TABLE = ' -- {EXTENDED_NAME} - {EXTENDED_VALUE} -
-'; -$sc_style['USER_COMMENTPOSTS']['pre'] = ''.LAN_USER_68.''; - -$sc_style['USER_COMMENTPER']['pre'] = ' ( '; -$sc_style['USER_COMMENTPER']['post'] = '% )'; - - $USER_FULL_TEMPLATE = ' - {SETIMAGE: w=600} -
{USER_SIGNATURE}
-{USER_RATING}
-{USER_SENDPM}
-'.LAN_USER_63.' {USER_REALNAME}
-'.LAN_USER_02.' {USER_LOGINNAME}
-'.LAN_USER_60.' {USER_EMAIL}
-'.LAN_USER_54.' {USER_LEVEL}
-'.LAN_USER_65.' {USER_LASTVISIT}
{USER_LASTVISIT_LAPSE}
'.LAN_USER_59.' {USER_JOIN}
{USER_DAYSREGGED}
'.LAN_USER_66.' {USER_VISITS}
- {USER_ADDONS} -{USER_COMMENTPOSTS} {USER_COMMENTPER}
- {USER_EXTENDED_ALL} - -+ {USER_ADDON_LABEL} + {USER_ADDON_TEXT} +
+ '; + + $USER_TEMPLATE['extended']['start'] = ''; + $USER_TEMPLATE['extended']['end'] = ''; + + $USER_TEMPLATE['extended']['item'] = ' ++ {EXTENDED_NAME} + {EXTENDED_VALUE} +
+ '; + + + $USER_TEMPLATE['list']['start'] = " +
+ | ".LAN_USER_58." | +".LAN_USER_60." | +".LAN_USER_59." | +
---|---|---|---|
{USER_PICTURE} | +{USER_ID}: {USER_NAME_LINK} | +{USER_EMAIL} | +{USER_JOIN} | +
'.LAN_USER_63.'{USER_REALNAME}
+'.LAN_USER_02.'{USER_LOGINNAME}
+'.LAN_USER_60.'{USER_EMAIL}
+'.LAN_USER_54.'{USER_LEVEL}
+'.LAN_USER_65.'{USER_LASTVISIT}
{USER_LASTVISIT_LAPSE}
'.LAN_USER_59.'{USER_JOIN}
{USER_DAYSREGGED}
'.LAN_USER_66.'{USER_VISITS}
+ {USER_ADDONS} +{USER_COMMENTPOSTS} {USER_COMMENTPER}
+ {USER_EXTENDED_ALL} + +