Shortcodes, adding to a plugin

From e107 Wiki
Jump to: navigation, search

e107 Wiki: English | Русский | Deutsch | Français | Magyar | Português | Български | Česky | Nederlands | Ελληνικά | Italiano | Norske | Polska | Slovenščina | Español | Svenska | Translate: Wiki | Page


Current Release 1.0.4 | | Download | Changelog | Forum | Plugins | Themes | RSS Feed of Latest Changes | Atom Feed of Latest Changes

How to write a plugin
Main page > I : First Aid > II : Development > III : Administration > IV : How To's > V : Plugin Writing > VI : Theming & Shortcodes

As of e107 v0.7.6 there are two ways to add shortcodes to your plugin:

1. adding any file in your plugin folder with the extension .sc

You will then just need to include a file in your main plugin directory. See e107_files/shortcodes for sample files. Whenever {NEWCODE} is found, it will be replaced with the code returned from your

2. adding an e_sc.php file in your plugin folder. (to be continued)

Note: To be sure that your shortcode is registered in e107, check the Preference Viewer in admin -> database and look for your file in the pref called shortcode_list. If it is not shown, run the Plugin Scan & View in admin -> database.