Feature_Box - e107inc/e107v1 GitHub Wiki
title: Feature Box permalink: /Feature_Box/
What is that feature box thing ?
http://plugins.e107.org/e107_plugins/featurebox/images/featurebox_32.png
The Feature Box plugin is a wonderful add-in to those who want to create an interactive front page. You can use it to show virtually anything you wish, randomly or consistently.
It is a table that will show in the top of the main section (under the welcome message). It is fairly simple to use; you only have 2 important settings to choose from :
- Do you want to have all your messages shown randomly or only one special message?
- Do you want to use a simple message -> like a permanent news (random or not!)
What can it show ?
The feature box uses templates to code its messages. You can create a template using javascript and even php. You can fetch images within the template or fetch them with the message.
You have two settings to use in every template; they are the title (caption) and the message text for the messages you want to show (randomly or not) :
- $fb_title
- $fb_text
These strings in your template fetch the text you entered for the message (within the plugin administration).
How to create template
This is the simplest template you could use :
From this point, you can add ANY html coding you would like to!! Center the title, put the message in bold.... Use Javascript!! ^_^
You just need to save your template into the directory e107_plugins/featurebox/templates and et voilà! Choose the Render-type flat (Plain) and specify your template as you create each message.
NB. Be careful when writing in javascript as you need to put the " signs you'll find in the source on the web within a ' (or escape them using '\') or else your template won't work using javascript.
Note: Feature Box does not display when you set your Front Page > Welcome Message (index.php)
Feature Box in a Menu or Custom Page
Create a custom menu/page, enter the following shortcode:-
{PLUGIN=featurebox}
Next place your menu or link to your new page.
Examples of template
Check out these template using javascript:
- Feature Box Template : Color Blinking Text
- Feature Box Template : Typing text
- Feature Box Template : Next Event Typing Text < - this one uses a sql query into the e107 calendar.
Related pages
Category:Admin Category:Using e107 Category:Core Plugins Category:Plugins