Elxis CMS Forum

Support => Elxis 2008 developers guide => Topic started by: datahell on May 04, 2007, 23:39:16

Title: Add tooltips in button mambots
Post by: datahell on May 04, 2007, 23:39:16
With Elxis 2008 you can add tooltips to button type mambots.

How to use
Create your mymambot.btn.php file and make your register funvtion return a three elements array (the third element -tooltip- is optional) like this:

return array( 'button_image_file, 'example_code', 'tooltip' );

Example:

Code: (php) [Select]
$tip = 'Inserts a page break. You may also set the page title and/or the heading<br>';
$tip .= '<b>Examples:</b><br>';
$tip .= '{mospagebreak}<br>';
$tip .= '{mospagebreak title=The first page}<br>';
$tip .= '{mospagebreak heading=The first page&amp;title=The page title}';

return array( 'mospage.png', '{mospagebreak}', $tip );

A screen shot has been attached as a preview/live example.

[old attachment deleted by admin]