mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
new module creation
This commit is contained in:
6
e107_files/shortcode/extended_value.sc
Normal file
6
e107_files/shortcode/extended_value.sc
Normal file
@@ -0,0 +1,6 @@
|
||||
//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]}}");
|
Reference in New Issue
Block a user