Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/.sites/78/site4192458/web/lib/include.php on line 61 Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /home/.sites/78/site4192458/web/lib/include.php on line 62 Deprecated: Return type of cms_config::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/.sites/78/site4192458/web/lib/classes/class.cms_config.php on line 339 Deprecated: Return type of cms_config::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/.sites/78/site4192458/web/lib/classes/class.cms_config.php on line 347 Deprecated: Return type of cms_config::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/.sites/78/site4192458/web/lib/classes/class.cms_config.php on line 564 Deprecated: Return type of cms_config::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/.sites/78/site4192458/web/lib/classes/class.cms_config.php on line 577 Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$assignGlobal is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_extension_handler.php on line 132 Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$registerResource is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_extension_handler.php on line 132 Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$registerDefaultPluginHandler is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_extension_handler.php on line 132 Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$registerPlugin is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_extension_handler.php on line 132 Deprecated: Creation of dynamic property CMSSmartySecurityPolicy::$smarty is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_security.php on line 260 Deprecated: Creation of dynamic property CMSSmartySecurityPolicy::$allow_php_tag is deprecated in /home/.sites/78/site4192458/web/lib/classes/internal/class.CMSSmartySecurityPolicy.php on line 44 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.FileTypeHelper.php on line 86 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.FileTypeHelper.php on line 86 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.FileTypeHelper.php on line 86 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.FileTypeHelper.php on line 86 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.FileTypeHelper.php on line 86 Deprecated: Creation of dynamic property CmsApp::$_hrinstance is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.CmsApp.php on line 462 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$class is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 284 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$friendlyname_key is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 293 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$class is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 284 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$friendlyname_key is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 293 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$class is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 284 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$friendlyname_key is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 290 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$class is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 284 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$friendlyname_key is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 293 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$class is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 284 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$friendlyname_key is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 293 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$class is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 284 Deprecated: Creation of dynamic property CmsContentTypePlaceholder::$friendlyname_key is deprecated in /home/.sites/78/site4192458/web/lib/classes/class.contentoperations.inc.php on line 293 Deprecated: Creation of dynamic property CMS_Smarty_Template::$compiled is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_template.php on line 640 Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/.sites/78/site4192458/web/lib/classes/internal/class.CMSContentTemplateResource.php on line 69 Deprecated: Creation of dynamic property CMS_Smarty_Template::$compiled is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_template.php on line 640 Deprecated: Creation of dynamic property CMS_Smarty_Template::$compiler is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_template.php on line 640 Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$_codeFrame is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_extension_handler.php on line 132 Deprecated: Return type of TP_yyToken::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templateparser.php on line 29 Deprecated: Return type of TP_yyToken::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templateparser.php on line 34 Deprecated: Return type of TP_yyToken::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templateparser.php on line 39 Deprecated: Return type of TP_yyToken::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templateparser.php on line 62 Deprecated: Function strftime() is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_runtime_codeframe.php on line 44 Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$_writeFile is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_extension_handler.php on line 132 Deprecated: Creation of dynamic property Smarty_Internal_Extension_Handler::$_filterHandler is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_extension_handler.php on line 132 Deprecated: Creation of dynamic property CMS_Smarty_Template::$compiled is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_template.php on line 640 Niknet - User Defined Tags Deprecated: Creation of dynamic property CMS_Smarty_Template::$compiled is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_template.php on line 640

User Defined Tags

Deprecated: Creation of dynamic property CMS_Smarty_Template::$compiled is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_template.php on line 640 Deprecated: Creation of dynamic property CMS_Smarty_Template::$compiler is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_template.php on line 640 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 310 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 310 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 937 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 937 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 310 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 310 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 447 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 310 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 310 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 937 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 937 Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_templatelexer.php on line 310 Deprecated: Function strftime() is deprecated in /home/.sites/78/site4192458/web/lib/smarty/sysplugins/smarty_internal_runtime_codeframe.php on line 44

One of the little known features of CMS Made Simple is the User Defined tag. Basically, this allows you to write PHP code inside the Admin Panel. Use the 'Add User Defined Tag' button in Extension » User Defined Tags in the Admin Panel, write some code, and then insert into a template or page with {newpluginname}. Simple!

As an example, I've put together a one line plugin/tag that will show your current User Agent information (which browser you're using). The output is right here: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com).

If you're not looking at the source, all that is in the page is {user_agent}. To see how this code works, edit the user_agent tag in the Extensions » User Defined Tags page of the admin.

This is a VERY powerful feature if used right. Remember, user defined tags do not get cached, therefore, scripts to rotate ad banners and such will work just fine. Note also that tag code has to be written without opening < ? php and ending ? > tags.


Vorherige Seite: Tags in the core