I will call this version 1. Im open to suggestion. i will not bother with stuff like skins and uch although I if anyone else wishes to expand it I will be glad to post the source as well.
Overview:
User a replacement tag to insert the button. The replacement tag follows the syntax:
{BUTTON:Label,URL,WIDTHxHEIGHT}
Label is the Text that will appear on the button.
URL is the address to the content that will appear in the window.
Width is the width of the window
Height is the height of the window.
Online Sample:
http://www.flashfilmmaker.com/index.php ... 03,0,0,1,0
Installation:
1. Download the file
2. Upload the swf file to /include/magicButton.swf
3. Add the replacement tag entry in /include/inc_front/front.func.inc.php
The replacement tag entry is as follows:
// Adds the magicButtom Version 1.0 Replacement Tag
$search[XX] = '/\{BUTTON:(.*),(.*?),(.*?)x(.*?)\}/';
$replace[XX] = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shoc ... n=6,0,29,0" width="100" height="22"><param name="movie" value="/include/magicButton.swf?label=$1&url=$2&winWidth=$3&winHeight=$4"><param name="quality" value="high"><embed src="/include/magicButton.swf?label=$1&url=$2&winWidth=$3&winHeight=$4" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="22"></embed></object>';
CHANGE the red XX to what ever number is next in your sequence.
Thats pretty much it, enjoy
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Be sure to check out my PHPFlash Player Module, work great with this button
![Very Happy :D](./images/smilies/icon_biggrin.gif)