Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EDC: Download extensions for Elxis 4.x
 
Pages: [1]
  Print  
Author Topic: Add tooltips in button mambots  (Read 3236 times)
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7595



WWW
« on: May 04, 2007, 22: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)
$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]
« Last Edit: July 25, 2007, 10:17:39 by datahell » Logged

Pages: [1]
  Print  
 
Jump to: