mirror of
https://github.com/e107inc/e107.git
synced 2025-08-25 15:31:41 +02:00
User/Member List may now include extended user-field data. Use {USER_EUF: field=xxxx} (excluding the 'user_' ) in your user_template.
This commit is contained in:
@@ -660,8 +660,27 @@ class user_shortcodes extends e_shortcode
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// v2.x extended user field data.
|
||||
/**
|
||||
* Usage {USER_EUF: field=xxxx} (excluding the 'user_' )
|
||||
* @param string $parm
|
||||
* @return string
|
||||
*/
|
||||
function sc_user_euf($parm='')
|
||||
{
|
||||
|
||||
if(!empty($parm['field']))
|
||||
{
|
||||
$fld = 'user_'.$parm['field'];
|
||||
$val = $this->var[$fld];
|
||||
return e107::getUserExt()->renderValue($val); //TODO auto-detect type, from within the user-extended class.
|
||||
|
||||
}
|
||||
|
||||
return ' ';
|
||||
|
||||
}
|
||||
|
||||
function sc_user_extended_all($parm)
|
||||
{
|
||||
|
@@ -189,6 +189,7 @@
|
||||
'link' => 'blogcalendar_menu/config.php',
|
||||
),
|
||||
)]]></core>
|
||||
<core name="membersonly_redirect">login</core>
|
||||
<core name="meta_tag"></core>
|
||||
<core name="multilanguage">0</core>
|
||||
<core name="nbr_cols">1</core>
|
||||
|
Reference in New Issue
Block a user