1
0
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:
Cameron
2016-03-22 16:52:54 -07:00
parent 0b27b3d760
commit 846be2c23c
4 changed files with 68 additions and 23 deletions

View File

@@ -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)
{

View File

@@ -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>