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
drkknght #316495 12/21/2007 2:40 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
And Rob releases another mod! Sweet! laugh


- Allen wavey
- What Drives You?
Joined: Nov 2000
Posts: 1,271
Kahuna
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 )

drkknght #316499 12/21/2007 5:01 PM
Joined: Feb 2002
Posts: 2,286
Veteran
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....)
Ian_W #316519 12/23/2007 11:11 PM
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
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
sirdude #316525 12/24/2007 7:22 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, My UBB Scripts
Gizmo #316613 01/14/2008 12:19 PM
Joined: Nov 2000
Posts: 1,271
Kahuna
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)

Gizmo #316614 01/14/2008 12:19 PM
Joined: Nov 2000
Posts: 1,271
Kahuna
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!

drkknght #316615 01/14/2008 2:37 PM
Joined: Feb 2002
Posts: 2,286
Veteran
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....)
Ian_W #316616 01/14/2008 7:48 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, My UBB Scripts
Sponsored Links
Gizmo #316716 02/15/2008 8:24 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, My UBB Scripts

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
Posts: 70
Joined: January 2007
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
Morgan 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)