mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
new module creation
This commit is contained in:
5
e107_files/shortcode/extended_text.sc
Normal file
5
e107_files/shortcode/extended_text.sc
Normal file
@@ -0,0 +1,5 @@
|
||||
//USAGE: {EXTENDED_TEXT=<field_name>.<user_id>}
|
||||
//EXAMPLE: {EXTENDED_TEXT=user_gender.5} will show the text of the extended field user_gender for user #5
|
||||
$parms = explode(".", $parm);
|
||||
global $tp;
|
||||
return $tp->parseTemplate("{USER_EXTENDED={$parms[0]}.text.{$parms[1]}}");
|
Reference in New Issue
Block a user