Sitemap   About   Print view   Deutsch

CMSimple_XH Plugins

Last update:
March 23, 2017, 01:56

 

Legendbox

Example of a Legendbox

Legendbox is a plugin (for CMSimple_XH 1.6), which calls another plugin and puts it into a box with a "legend". The first versions (0.1 and 0.2) were add-ons, which had to be inserted into the userfuncs.php. If you are using the add-on version to your satisfaction, there is no need to upgrade to the plugin version. The plugin version however is much easier to use.

The plugin call is:

{{{legendbox 'plugin-call', 'legend-text'}}}

As example the mailform is called in a legendbox.
The call for this example is:

{{{legendbox 'XH_mailform', 'Example of a Legendbox'}}}

In case the plugin call needs quotation marks, use double quotation marks. The plugin comes with 4 different stylings for the box. If you need different legend boxes on your site, you can call legendbox together with the styling (grey, blue, red, green). The plugin call is:

{{{legendbox 'plugin-call', 'legend-text', 'style-name'}}}

grey
Legendbox Plugin

Putting a plugin call into a box with a legend on top.

blue
Legendbox Plugin

Putting a plugin call into a box with a legend on top.

red
Legendbox Plugin

Putting a plugin call into a box with a legend on top.

green
Legendbox Plugin

Putting a plugin call into a box with a legend on top.

 
Compatibility with former Add-on Version

You can also call legendbox just as the add-on version with complete css settings for the box and the legend:

{{{legendbox 'plugin-call','legend-text', 'box-css','legend-css');}}}

Plugin Download
 
Update from Versions 0.1 and 0.2

Important: Open your userfuncs.php with an editor and delete the old version of the legendbox add-on, before installing the new plugin. Plugin installation is as usual, i.e.: copy the unzipped download into the plugins folder of your installation.

Requirements

Legendbox as described here requires at least CMSimple_XH 1.6.5. You can however use it in older versions like CMSimple_XH 1.5.3 with the old plugincall. In this case the call is:

{{{PLUGIN:legendbox('plugin-name("possible call values")', 'legend-text', 'style-name');}}}

Legendbox works with this plugincall also in CMSimple 4.x, provided you exchange in legendbox/admin.php in line 9 "CMSIMPLE_XH_VERSION" with "CMSIMPLE_VERSION".

top