About:This mod, based on the
YouTube one, adds a fancy little button to your Rich Text Panel button bar that when clicked prompts a user for a Fyrebug game code. The bbcode then embeds the requisite html to display the
Fyrebug game inline of the users post.
Fyrebug.comFyrebug is a portal similar to Youtube, only Fyrebug features user-generated games, rather than videos.
Credits:chillin
maybe a little drkknght
Files Altered:* /templates/default/standard_text_editor.tpl
* /libs/ubbthreads.inc.php
Files Added:fyrebug.gif
Directions:Backup your files first.
Upload the fyrebug gif to your images/markup_panel/default/ directory
Here we go:in standard_text_editor.pl
FIND:
src="{$config.BASE_URL}/images/{$style_array.markup_panel}/smiley.gif" /></a>
ADD BELOW:
<!-- fyrebug button -->
<a href="javascript: void(0)" onclick="formatText('[fyrebug]','[/fyrebug]');" title="{$lang.FYREBUG_ALT}" alt="{$lang.FYREBUG_ALT}"><img id="fyrebug" onmouseover="raiseButton(this.id);" onmouseout="normalButton(this.id);" onmousedown="lowerButton(this.id);" class="markup_panel_normal_button" src="{$config.BASE_URL}/images/{$style_array.markup_panel}/fyrebug.gif" /></a>
<!-- /// fyrebug button -->
in ubbthreads.inc.php
FIND:
array( "#\[email:([+_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4}))\](.+?)\[/email]#i", '<a href="mailto:\1">\5</a>' ),
ADD BELOW:
// fyrebug addition
array( "#\[fyrebug\](.+?)\[/fyrebug\]#i", '<object width=425 height=400><param name=movie value=http://www.fyrebug.com/embed.php?&gameid=\1></param><param name=wmode value=window></param><param name=allowFullScreen value=true></param><embed src=http://www.fyrebug.com/embed.php?&gameid=\1 type=application/x-shockwave-flash wmode=window allowFullScreen=true width=425 height=400></embed></object><br><a href=http://www.fyrebug.com/welcome.php?gameid=\1>Click here to make your own Fyrebug game</a><br>
done!!!
all users will have to do is grab the numeric game ID code from any
fyrebug.com game, and its time to play!!!