1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-19 05:28:10 +01:00
php-e107/e107_files/shortcode/extended_value.sc
2006-12-02 04:36:16 +00:00

7 lines
293 B
Scala

//USAGE: {EXTENDED_VALUE=<field_name>.<user_id>}
//EXAMPLE: {EXTENDED_VALUE=user_gender.5} will show the value of the extended field user_gender for user #5
$parms = explode(".", $parm);
global $tp;
return "hello";
return $tp->parseTemplate("{USER_EXTENDED={$parms[0]}.value.{$parms[1]}}");