Previous Thread
Next Thread
Print Thread
Rate Thread
Fyrebug BB Code #316485 12/20/2007 2:45 AM
Joined: Nov 2000
Posts: 1,271
drkknght Offline OP
Kahuna
OP Offline
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
Re: Fyrebug BB Code [Re: drkknght] #316495 12/21/2007 2:40 PM
Joined: Mar 2000
Posts: 21,079
AllenAyres Offline
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
And Rob releases another mod! Sweet! laugh


- Allen wavey
- What Drives You?
Re: Fyrebug BB Code [Re: AllenAyres] #316497 12/21/2007 3:53 PM
Joined: Nov 2000
Posts: 1,271
drkknght Offline OP
Kahuna
OP Offline
Kahuna
Joined: Nov 2000
Posts: 1,271
2 in 7 years. thats about right smile

(and i've made a ton of fyrebug games! rockon )

Re: Fyrebug BB Code [Re: drkknght] #316499 12/21/2007 5:01 PM
Joined: Feb 2002
Posts: 2,286
Ian_W Offline
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286
Thanks Rob smile


Only another 3 1/2 years to wait for the next one wink



Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: Fyrebug BB Code [Re: Ian_W] #316519 12/23/2007 11:11 PM
Joined: Nov 2003
Posts: 482
sirdude Offline
Enthusiast
Offline
Enthusiast
Joined: Nov 2003
Posts: 482
with the custom tags feature in 7.3, this will be easy to add to any 7.3 board with no code modifications.

good stuff smile

Sponsored Links
Re: Fyrebug BB Code [Re: sirdude] #316525 12/24/2007 7:22 AM
Joined: Jan 2000
Posts: 5,786
Gizmo Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,786
Someone's bbcode addins for the 7.3 writeup may have already gotten this in as an example a ways back lol

Last edited by Gizmo; 12/24/2007 7:22 AM.

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: Fyrebug BB Code [Re: Gizmo] #316613 01/14/2008 12:19 PM
Joined: Nov 2000
Posts: 1,271
drkknght Offline OP
Kahuna
OP Offline
Kahuna
Joined: Nov 2000
Posts: 1,271
quick update: its just a quick change to the very last part of the code -- use the following text in in ubbthreads.inc.php, instead of what is indicated in the first post (hope thats not confusing -- i can't edit the first post, cuz my time limit has expired frown )

change this:
Code
// fyrebug addition
array( "#\[fyrebug\](.+?)\[/fyrebug\]#i", '<object width=425 height=400><param name=movie value=http://www.fyrebug.com/fyrebugshell24.swf?&gameid=\1></param><param name=allowFullScreen value=true></param><param name=wmode value=window></param><embed src=http://www.fyrebug.com/fyrebugshell24.swf?&gameid=\1 type=application/x-shockwave-flash wmode=window allowFullScreen=true width=425 height=400></embed></object>' ),



to this:

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>


(the old one uses the wrong value tags)

Re: Fyrebug BB Code [Re: Gizmo] #316614 01/14/2008 12:19 PM
Joined: Nov 2000
Posts: 1,271
drkknght Offline OP
Kahuna
OP Offline
Kahuna
Joined: Nov 2000
Posts: 1,271
Originally Posted by sirdude
with the custom tags feature in 7.3, this will be easy to add to any 7.3 board with no code modifications.

good stuff smile


hooray!

Originally Posted by Gizmo
Someone's bbcode addins for the 7.3 writeup may have already gotten this in as an example a ways back lol


more hooray!

Re: Fyrebug BB Code [Re: drkknght] #316615 01/14/2008 2:37 PM
Joined: Feb 2002
Posts: 2,286
Ian_W Offline
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286
I have updated your original post with the revised code smile


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: Fyrebug BB Code [Re: Ian_W] #316616 01/14/2008 7:48 PM
Joined: Jan 2000
Posts: 5,786
Gizmo Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,786
i have a bbcode genned for 7.3; but it didn't make the cut for extended BBCode, so i'll have it in a thread somewhere for you all wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Sponsored Links
Re: Fyrebug BB Code [Re: Gizmo] #316716 02/15/2008 8:24 AM
Joined: Jan 2000
Posts: 5,786
Gizmo Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,786
I posted a Custom BBCode for this for 7.3 in my CustomTags Thread. To be honest, I made it as one of the first ones for 7.3's when I was fiddling around with adding new codes months ago wink...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps

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
jgeoff
jgeoff
NJ
Posts: 96
Joined: April 2001
Forum Statistics
Forums63
Topics37,490
Posts293,665
Members13,828
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,786
Greg Hard 4,625
Top Posters(30 Days)
isaac 12
Gizmo 1
Today's Statistics
Currently Online 960
Topics Created 0
Posts Made 1
Users Online 1
Birthdays 15
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191013.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.040s Queries: 15 (0.014s) Memory: 3.2859 MB (Peak: 3.4863 MB) Data Comp: Zlib Server Time: 2019-10-17 20:17:55 UTC
Valid HTML 5 and Valid CSS