Previous Thread
Next Thread
Print Thread
Rate Thread
#316485 12/20/2007 2:45 AM
Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
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.com
Fyrebug 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:
[Linked Image]
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:
Code
src="{$config.BASE_URL}/images/{$style_array.markup_panel}/smiley.gif" /></a>

ADD BELOW:
Code
<!-- 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:
Code
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:
Code
// 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!!! smile

Last edited by Ian_W; 01/14/2008 2:36 PM. Reason: updated post to latest version for user
Sponsored Links
Entire Thread
Subject Posted By Posted
Fyrebug BB Code drkknght 12/20/2007 9:45 AM
Re: Fyrebug BB Code AllenAyres 12/21/2007 9:40 PM
Re: Fyrebug BB Code drkknght 12/21/2007 10:53 PM
Re: Fyrebug BB Code Ian_W 12/22/2007 12:01 AM
Re: Fyrebug BB Code sirdude 12/24/2007 6:11 AM
Re: Fyrebug BB Code Gizmo 12/24/2007 2:22 PM
Re: Fyrebug BB Code drkknght 01/14/2008 7:19 PM
Re: Fyrebug BB Code drkknght 01/14/2008 7:19 PM
Re: Fyrebug BB Code Ian_W 01/14/2008 9:37 PM
Re: Fyrebug BB Code Gizmo 01/15/2008 2:48 AM
Re: Fyrebug BB Code Gizmo 02/15/2008 3:24 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)