Extending core functionality (addons)
Please note: This page is under construction and has not been finished yet.
Introduction
There are several ways to extend the core functionality of e107. One of those ways is by using so-called "addons". These addons are files which reside in each plugin's folder and allow a plugin to embed itself inside e107's core pages and functions.
The addons can be recognised by their e_xxxxx.php naming format. By simply placing them inside your plugin's folder, they will be auto-detected during installation and integrated into the system.
Please note: If addons are added after plugin installation, you may need to run the ๐ "Scan plugin directories" option in Admin Area > Tools > Database.
Overview of all plugin addons
Name
Description
Allows a plugin to add customized BBCodes.
Allows a plugin to override the default ๐comments 'engine'
Allows a plugin to add additional ๐Scheduled Tasks (or 'cronjobs') to e107.
Adds custom plugin information to the dashboard of e107's admin area.
Deprecated! Use e_print instead.
Allows a plugin to easily hook into system events and trigger their own methods/functions.
Allows a plugin to generate content for the ๐Featurebox plugin.
Allows a plugin to include code in the footer of every page of the site
Allows a plugin developer to add their plugin as a ๐Frontpage option.
Allows a plugin to create automated entries for the ๐Google Sitemap plugin.
Allows a plugin developer to add data to <head> of every page.
Deprecated!
Allowed plugin developers to add information to the plugin configuration page sidebar. This has now been integrated within the Admin-UI through the renderHelp() method.
Deprecated! Use e_dashboard instead.
Allows a plugin to include a third-party library.
Deprecated!
Use e_sitelink instead.
Allows a plugin to hook into the ๐List Latest plugin
Allows a plugin to use e107's mailout feature for bulk mailing.
Provide configuration options for each instance of the plugin's menus.
Is loaded every time the core of e107 is included and allows a developer to modify or define code which should be loaded prior to the header or anything that is sent to the browser as output.
Adds a plugin to the notifications section in e107's admin area.
Allows a plugin to hook into all pages at the end (after closing </html>)
Allows a plugin to hook into e107's parser methods
Allows a plugin developer to specify content that is displayed in printer-friendly format.
Adds a plugin to the RSS plugin, and generates RSS feeds.
Adds a plugin to the search which generates 'related' links in news items and pages.
Adds a plugin to the ๐Search page.
Allows a plugin to make their shortcodes available to core templates and templates of other plugins.
Allows a plugin to automatically generate ๐Navigation links
Deprecated! Use e_dashboard instead.
Allows a plugin to set categories for ๐Public Uploads
Provides a simple way to add mod-rewrite redirects to a plugin's page. Used to create search-engine-friendly URLs through the e107::url() method.
Adds information about a specific user to the user's profile page, allows to add fields to the user settings page and allows to specify a routine that is run upon user deletion.
Plugin addons
๐ Be sure to replace plugindir with your plugin's directory name in all examples below.
e_admin.php
e_bb.php
e_comment.php
e_cron.php
This addon allows a plugin to add additional scheduled task options to e107. (see Admin Area > Tools > Scheduled Tasks).
Example:
e_dashboard.php
This addon adds custom plugin information to the dashboard of e107's admin area. The 'latest', 'status' and 'website stats' areas may all contain information from your plugin.
Example:
e_emailprint.php
Deprecated! This addon has been deprecated. Use e_print.php instead.
e_event.php
This addon allows a plugin to easily hook into system events and trigger their own methods and functions using data provided by those events.
You can make use of the event methods and event triggers.
Example:
e_featurebox.php
e_footer.php
This addon allows a plugin to include code in the footer of every page of the site.
e_frontpage.php
This addon allows a plugin developer to add their plugin as a ๐Frontpage option.
Example:
e_gsitemap.php
e_header.php
This addon allows a plugin developer to add data to the <head> of every page. This file is loaded in the header of each page of your site. ie. Wherever you see require_once(HEADERF) in a script.
Typically you would use one or all of the following functions within this file: e107::js(), e107::css() or e107::meta()
Warning: Output should never be echoed or printed from this file!
Example:
e_help.php
Deprecated!
This addon allowed plugin developers to add information to the plugin configuration page sidebar.
This has now been integrated within the Admin-UI through the renderHelp() method.
e_latest.php
Deprecated! This addon has been deprecated. Use e_dashboard.php instead.
e_library.php
e_linkgen.php
Deprecated! This addon has been deprecated. Use e_sitelink.php instead.
e_list.php
e_mailout.php
This addon allows a plugin to use e107's mailout feature for bulk mailing.
e_menu.php
This addon provides configuration options for each instance of the plugin's menus.
Example:
e_meta.php
Deprecated! This addon has been deprecated. Use e_header.php instead.
e_module.php
This addon is loaded every time the core of e107 is included. ie. Wherever you see require_once("class2.php") in a script.
It allows a developer to modify or define constants, parameters etc. which should be loaded prior to the header or anything that is sent to the browser as output. It may also be included in Ajax calls.
e_notify.php
This addon adds the plugin to the ๐ Notify section in the Admin Area and allows a plugin to send notifications.
Example:
The notification can then be triggered by using:
e_output.php
This addon allows to hook into all pages at the very end (after the closing </html>). This is useful for example when capturing ๐ output buffering.
e_parse.php
This addon allows to hook into e107's parser methods
Example:
e_print.php
This addon allows a plugin developer to specify content that is displayed in printer-friendly format
Example:
e_rss.php
This addon adds the plugin to the RSS plugin, and generates RSS feeds for the plugin.
Example:
e_related.php
This addon adds the plugin to the search which generates 'related' links in news items and pages of e107.
Example:
e_search.php
This addon adds the plugin to the 'search page' of e107.
Example:
e_shortcode.php
This addon allows a plugin to make their shortcodes available to core templates and templates of other plugins.
It's content is identical to that of a regular shortcode class except that all the methods must follow the following naming convention: sc_plugindir_name()
The $override property can be used to override existing core/plugin shortcodes. When set to true existing core/plugin shortcodes matching methods below will be overridden.
Example:
e_sitelink.php
This addon adds a sitelink sublink-generating function for your plugin. An example is auto-generated navigation drop-down menus for 'latest articles'.
Example:
e_status.php
Deprecated! This addon has been deprecated. Use e_dashboard.php instead.
e_tohtml.php
Deprecated! This addon has been deprecated. Use e_parse.php instead.
e_upload.php
e_url.php
This addon provides a simple way to add mod-rewrite redirects to the plugin's pages, without having to edit the .htaccess file. This addon is used to create Search-Engine-Friendly (SEF) URLs through the e107::url() method.
Example:
e_user.php
This addon allows to:
add information about a specific user to the user's profile page
add and save fields to the user configuration page (
/usersettings.php)specify a routine that is run upon user deletion
Example:
Last updated
Was this helpful?