Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

InfoBox

Summary: How to create Bubblehelp infoboxes, as seen in knoppix.org
Version:
Prerequisites: Requires at least PmWiki version: 2 beta 23; last tested on PmWiki version: 2 beta 23
Status:
Maintainer: V.Krishn
Categories: Administration, Layout

Question

How can we create Bubblehelp infoboxes, as seen in knoppix.org?

Answer

Download the file:

Please read the README file which has install instructions in detail.

Minor Update:

  
I missed the following in README file: 
You need to add the following lines in your .tmpl file.

Just below the <body> tag place these lines:

<!-- IBHeaderFmt -->
  $IBHeaderFmt
  

V Krishn March 24, 2005, at 05:16 PM

Test View Site:

Sample/Demo

Security Issues

  
/* ********************************************************************
** CAUTION / WARNING
**  Use of InfoBox posses a security problem.
**  Use of this code lets you insert arbitary JavaScript Code.
**  
** REMEMBER TO INSERT the CODE below in your config.php file. 
** Just copy and paste.
** Make appropriate settings with the default password = infoboxpass
**  Read the main documentation on Passwords.

** ========== Security Code for InfoBox receipe ===========
    if (substr($pagename, -8) == "InfoTips") {
      $DefaultPasswords['edit'] = crypt('infoboxpass');
      $DefaultPasswords['attr'] = crypt('infoboxpass');
    }
** ========================================================

* ********************************************************************/ 

For more details Read the README file carefully.

  • This package should be tested first in local or intranet before you get confident on how it works.

Notes and Comments

  • More refinement could be done, i.e security wise.

Bugs

  • If InfoBox sometimes do not work try leaving the last line on InfoBox Pages as Blank/Empty (Would be fixed in next update). ~V.Krishn

See Also

Contributors

  • V.Krishn
    • I used the .js file used on the site. It is covered under GPL. I wrote a wrapper .php file to make it work under PmWiki.
    • Further refinement from others are welcomed.
Edit - History - Print - Recent Changes - Search
Page last modified on October 14, 2007, at 05:47 PM