php forum
php mysql forum
php mysql smarty
 
Topic Options
#316485 - 12/20/07 01:45 AM Fyrebug BB Code
drkknght Offline
Kahuna

Registered: 11/09/00
Posts: 1251
Loc: rob's pad -- where it takes sk...
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:

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


Edited by Ian_W (01/14/08 01:36 PM)
Edit Reason: updated post to latest version for user
_________________________
professional discussion killer
due to intelligence limitations, i do not offer support.
my site ~ my boards

Top
#316495 - 12/21/07 01:40 PM Re: Fyrebug BB Code [Re: drkknght]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
And Rob releases another mod! Sweet! laugh
_________________________
- Allen wavey
- What Drives You?

Top
#316497 - 12/21/07 02:53 PM Re: Fyrebug BB Code [Re: AllenAyres]
drkknght Offline
Kahuna

Registered: 11/09/00
Posts: 1251
Loc: rob's pad -- where it takes sk...
2 in 7 years. thats about right smile

(and i've made a ton of fyrebug games! rockon )
_________________________
professional discussion killer
due to intelligence limitations, i do not offer support.
my site ~ my boards

Top
#316499 - 12/21/07 04:01 PM Re: Fyrebug BB Code [Re: drkknght]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
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....)

Top
#316519 - 12/23/07 10:11 PM Re: Fyrebug BB Code [Re: Ian_W]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
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
_________________________

Top
#316525 - 12/24/07 06:22 AM Re: Fyrebug BB Code [Re: sirdude]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Someone's bbcode addins for the 7.3 writeup may have already gotten this in as an example a ways back lol


Edited by Gizmo (12/24/07 06:22 AM)
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#316613 - 01/14/08 11:19 AM Re: Fyrebug BB Code [Re: Gizmo]
drkknght Offline
Kahuna

Registered: 11/09/00
Posts: 1251
Loc: rob's pad -- where it takes sk...
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)
_________________________
professional discussion killer
due to intelligence limitations, i do not offer support.
my site ~ my boards

Top
#316614 - 01/14/08 11:19 AM Re: Fyrebug BB Code [Re: Gizmo]
drkknght Offline
Kahuna

Registered: 11/09/00
Posts: 1251
Loc: rob's pad -- where it takes sk...
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!
_________________________
professional discussion killer
due to intelligence limitations, i do not offer support.
my site ~ my boards

Top
#316615 - 01/14/08 01:37 PM Re: Fyrebug BB Code [Re: drkknght]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
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....)

Top
#316616 - 01/14/08 06:48 PM Re: Fyrebug BB Code [Re: Ian_W]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#316716 - 02/15/08 07:24 AM Re: Fyrebug BB Code [Re: Gizmo]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks