Once I am done making the gif image, I'll have a hack to include video from FileFront =)
I'll also include a strikethru text button thanks to the guys over at Myndworx.com
b_help = "'. $bbcode_common['bold'][0].' '.$bbcode_common['bold'][1].'";
filefront_help="'. $bbcode_common['filefront'][0].' '.$bbcode_common['filefront'][1].'";
strike_help="'. $bbcode_common['strike'][0].' '.$bbcode_common['strike'][1].'";
<img alt="'.$bbcode_common['video'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'video\')" onclick="BBCmm(\''.$form.'\',\''.$field.'\',\'video\')" name="video" src="'.$bbbttns_path.'video.gif" border="0" />
<img alt="'.$bbcode_common['filefront'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'filefront\')" onclick="BBCwmi(\''.$form.'\',\''.$field.'\',\'ffvideo\')" name="filefront" src="'.$bbbttns_path.'filefront.gif" border="0" />
<img alt="'.$bbcode_common['strike'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'strike\')" onclick="BBCcode(\''.$form.'\',\''.$field.'\',this)" name="strike" src="'.$bbbttns_path.'strike.gif" />
// [flash width= height= bgcolor= ] and [/flash] code..
$patterns[] = "#\[flash width=([0-9]?[0-9]?[0-9]) height=([0-4]?[0-9]?[0-9]) bgcolor=([^ \"\n\r\t<]*?)\]((ht|f)tp://)([^ \?&=\"\n\r\t<]*?(\.(swf|fla)))\[/flash\]#si";
$replacements[] = '<center><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="\\1" height="\\2">
<param name="movie" value="\\4\\6">
<param name="quality" value="high">
<param name="scale" value="noborder">
<param name="bgcolor" value="#\\3">
<embed src="\\4\\6" quality="high" scale="noborder" bgcolor="#\\3" width="\\1" height="\\2" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed></object></center>';
// [ffvideo] value [/ffvideo]
$patterns[] = "#\[ffvideo\]([^ \"\n\r\t<]*?)\[/ffvideo\]#si";
$replacements[] = '<center><object width="450" height="338"><param name="movieID" value="http://static.filefront.com/ffv6/player/vp_embed.swf?v=\\1&autorun=false"></param><param name="wmode" value="transparent"></param><embed src="http://static.filefront.com/ffv6/player/vp_embed.swf?v=\\1&autorun=false" type="application/x-shockwave-flash" wmode="transparent" width="450" height="338"></embed></object></center>';
# [strike] and [/strike] for striking through text.
$patterns[] = '#\[strike\](.*?)\[/strike\]#si';
$replacements[] = '<span style="text-decoration: line-through">\\1</span>';
if (type == 'img') { var URL = prompt("Please enter image URL","http://"); }
else if (type == 'ffvideo') { var URL = prompt("Please enter the FileFront video ID",""); }
'flash' => array('Insert flash file:','[flash width=# height=#]flash URL[/flash]'),
'filefront' => array('Insert video from FileFront:','[ffvideo]FileFront Video ID[/ffvideo]'),
'strike' => array('Strike:','[strike]text[/strike]'),
Users browsing this forum: No registered users and 1 guest