Extension:DynBox

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
DynBox

Release status: stable

Implementation Tag, MyWiki
Description Display customisable Dynamic HTML CSS boxes
Author(s) Romain GEORGES (Lecidtalk)
Last version 0.3 (2008-12-25)
MediaWiki 1.5.6+
Database changes No
License BSD
Download DynBox.php
Changelog
Example diablotins.org
Tags
<dynbox>
Hooks used
ParserFirstCallInit
Check usage and version matrix

The DynBox extension allows to display customisable Dynamic HTML CSS boxes for messages and news. It is a parser hook for MediaWiki who helps to edit Mouse:Hover "Pop-up" boxes for news or flash displays.

Contents

Installation [edit]

  1. Copy the code from the page with the code
  2. Place the code in a file called DynBox.php
  3. Create a directory DynBox in your $IP/extensions directory
  4. Move the file to this $IP/extensions/DynBox directory
  5. Add to the end of LocalSettings.php:
    require_once("$IP/extensions/DynBox/DynBox.php");
  6. Installation can now be verified through Special:Version on your wiki

Usage [edit]

DynBox put Div in absolute CSS mode, so in your Wiki code add anywhere :

<dynbox title="My Title" posx=XXpx posy=XXpx iconcolor="color" iconbgcolor="color" boxcolor="color" 
 boxbgcolor="color" color="color" bgcolor="color"> some text </dynbox>

Configuration [edit]

title 
title of the icon
'some text 
content of the news box
posx 
CSS compatible right-from position
posy 
CSS compatible top-from position
iconcolor 
text icon color
iconbgcolor 
background icon color
boxcolor 
title of the popped box color
boxbgcolor 
border of the popped box color
color 
text in the popped box color
bgcolor 
background of the popped box color

Changelog [edit]

  • V 0.2 → 0.3: 10:23, 25 December 2008 (UTC) code cleanup by Sayuri
  • V 0.1 → 0.2: 16:34, 31 March 2006 (UTC) correction : CSS overwriting, rand salt value adding in CSS Class name by Lecid