What’s new

We’re constantly making Code Snippets better. Here are some of the of notable new features and improvements that we’ve made to Code Snippets since it’s first launched.
Added
  • Added Admin Page Load and Site and Admin Page Load locations so PHP snippets can run in the administrator.
  • Added Safe Mode: set tcs_safe_mode in configuration.php to pause every snippet while you fix a broken one.
Fixed
  • Fixed code being stripped from CSS, HTML, JavaScript and PHP snippets when the CodeMirror editor plugin is disabled, as the editor fell back to the site's WYSIWYG editor.
  • Fixed PHP snippets not being syntax highlighted unless the code started with an opening PHP tag.
  • Fixed the Location filter in the snippets list offering locations that do not exist.
Changed
  • Improved Smart Tags support so article, user and site tags work in HTML snippets and article text
  • Improved error handling so a snippet that hits a fatal error is auto-disabled instead of breaking every page load.
  • PHP snippets that use a forbidden function (exec, system, shell_exec, eval, unlink) or backticks are now auto-disabled with a clear error, instead of silently doing nothing.
  • PHP snippets now report when the Joomla temp folder is not writable, instead of silently doing nothing.
Security
  • Security: Fixed obsolete framework files not being removed during updates.
Added
  • Added Duplicate button to the snippets toolbar for quick one-click duplication of selected snippets.
  • Added the ability to customize the shortcode of a snippet directly from the edit screen.
  • Added click-to-copy on the shortcode shown in the Location column of the snippets list.
Fixed
  • Fixed installation failure on Joomla sites that were upgraded from version 3.x.
  • Fixed an error appearing during uninstall caused by a duplicate folder entry in the plugin manifest.
Changed
  • Initial Release.
Manage CSS, HTML and JS in Joomla
Add custom CSS, JavaScript and HTML without touching template files. Change site functionality with PHP. Reduce the number of extension on your site.