php forum
php mysql forum
php mysql smarty
 
Topic Options
#316714 - 02/15/08 07:12 AM [7.3+] Gizmo's Embedding BBCode (Compatibility)
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5352
Loc: Portland, OR, USA
Well, as I promised all of my past users of my Pre-7.3 BBCode, one day after Beta4 is released... Here is your compatibility custom's! That's right, you can use the same BBCode your users have gotten used to in 7.3 with the custom code import provided below.

I have a NEW posting on 7.3 BBCodes, this one is simply for compatibility with the old ones (pre7.3) so please bring any addition requests to the other thread.

To add these tags to your forum, simply take what is provided, take out those which you don't want, insert into a new text document "CustomTags.txt" and then import them to your forum (CP -> Tools & Info (Category) -> Content Rebuilder (Option) -> Custom Tag Editor (Top Tab) -> Import New Tags (Bottom Tab)).

The Code (CustomTags.txt) is as follows (please see the old thread for compatibility information):
Code:
<?php
$export_tags = array (
  0 => 
  array (
    'tag' => 'break',
    'descrip' => 'Break.com Video',
    'prompt' => 'Enter the Break.com Video id only (and not the entire URL)',
    'regex' => '([a-zA-Z0-9-_]+)',
    'markup' => '<object width=\\"425\\" height=\\"350\\"><param name=\\"movie\\" value=\\"http://embed.break.com/\\\\1\\"></param><embed src=\\"http://embed.break.com/\\\\1\\" type=\\"application/x-shockwave-flash\\" width=\\"425\\" height=\\"350\\"></embed></object>',
  ),
  1 => 
  array (
    'tag' => 'googlevideo',
    'descrip' => 'Google Video',
    'prompt' => 'Enter the Google Video id only (and not the entire URL), including the - (if it has one)',
    'regex' => '([a-zA-Z0-9-_]+)',
    'markup' => '<embed 
 style=\\"width:425px; 
 height:350px;\\" 
 id=\\"VideoPlayback\\" 
 type=\\"application/x-shockwave-flash\\" 
 src=\\"http://video.google.com/googleplayer.swf?docId=\\\\1&hl=en\\" 
 flashvars=\\"\\"> 
</embed>',
  ),
  2 => 
  array (
    'tag' => 'liveleak',
    'descrip' => 'LiveLeak Video',
    'prompt' => 'Enter the LiveLeak Video id only (and not the entire URL)',
    'regex' => '([a-zA-Z0-9-_]+)',
    'markup' => '<object type=\\"application/x-shockwave-flash\\" width=\\"425\\" height=\\"350\\" wmode=\\"transparent\\" data=\\"http://www.liveleak.com/player.swf?autostart=false&token=\\\\1\\"><param name=\\"movie\\" value=\\"http://www.liveleak.com/player.swf?autostart=false&token=\\\\1\\"><param name=\\"wmode\\" value=\\"transparent\\"><param name=\\"quality\\" value=\\"high\\"></object>',
  ),
  3 => 
  array (
    'tag' => 'myspacevideo',
    'descrip' => 'MySpace Video',
    'prompt' => 'Enter the MySpace Video id only (and not the entire URL)',
    'regex' => '([a-zA-Z0-9-_]+)',
    'markup' => '<embed src=\\"http://lads.myspace.com/videos/vplayer.swf\\" flashvars=\\"m=\\\\1&v=2&type=video\\" type=\\"application/x-shockwave-flash\\" width=\\"425\\" height=\\"350\\"></embed>',
  ),
  4 => 
  array (
    'tag' => 'revver',
    'descrip' => 'Revver Video',
    'prompt' => 'Enter the Revver Video id only (and not the entire URL)',
    'regex' => '([a-zA-Z0-9-_]+)',
    'markup' => '<embed type=\\"application/x-shockwave-flash\\" src=\\"http://flash.revver.com/player/1.0/player.swf\\" pluginspage=\\"http://www.macromedia.com/go/getflashplayer\\" scale=\\"noScale\\" salign=\\"TL\\" bgcolor=\\"#ffffff\\" flashvars=\\"mediaId=\\\\1&affiliateId=64082\\" wmode=\\"transparent\\" height=\\"350\\" width=\\"425\\"></embed>',
  ),
  5 => 
  array (
    'tag' => 'sdeluxe',
    'descrip' => 'SuperDeluxe Video',
    'prompt' => 'Enter the SuperDeluxe Video id only (and not the entire URL)',
    'regex' => '([a-zA-Z0-9-_]+)',
    'markup' => '<object width=\\"425\\" height=\\"350\\"><param name=\\"allowFullScreen\\" value=\\"true\\" /><param name=\\"movie\\" value=\\"http://www.superdeluxe.com/static/swf/share_vidplayer.swf\\" /><param name=\\"FlashVars\\" value=\\"id=\\\\1\\" /><embed src=\\"http://www.superdeluxe.com/static/swf/share_vidplayer.swf\\" FlashVars=\\"id=\\\\1\\" type=\\"application/x-shockwave-flash\\" width=\\"425\\" height=\\"350\\" allowFullScreen=\\"true\\" ></embed></object>',
  ),
  6 => 
  array (
    'tag' => 'yahoovideo',
    'descrip' => 'Yahoo Video',
    'prompt' => 'Enter the Yahoo Video id only (and not the entire URL)',
    'regex' => '([a-zA-Z0-9-_]+)',
    'markup' => '<embed
 src=\\\'http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf\\\'
 flashvars=\\\'id=\\\\1\\\'
 type=\\\'application/x-shockwave-flash\\\'
 width=\\\'425\\\'
 height=\\\'350\\\'>
</embed>',
  ),
  7 => 
  array (
    'tag' => 'youtube',
    'descrip' => 'YouTube Video',
    'prompt' => 'Enter the YouTube Video id only (and not the entire URL)',
    'regex' => '([a-zA-Z0-9-_]+)',
    'markup' => '<object width=\\\'425\\\' height=\\"350\\">
 <param name=\\"movie\\" value=\\"http://www.youtube.com/v/\\\\1\\"></param>
 <param name=\\"wmode\\" value=\\"transparent\\"></param>
 <embed src=\\"http://www.youtube.com/v/\\\\1\\"
  type=\\"application/x-shockwave-flash\\" wmode=\\"transparent\\"
  width=\\"425\\" height=\\"350\\">
 </embed>
</object>',
  ),
  8 => 
  array (
    'tag' => 'wiki',
    'descrip' => 'Wikipedia',
    'prompt' => 'Please enter the term to have listed through Wikipedia.',
    'regex' => '([a-zA-Z0-9-_ ]+)',
    'markup' => '<a href=\\"http://en.wikipedia.org/wiki/\\\\1\\">\\\\1</a>',
  ),
  9 => 
  array (
    'tag' => 'google',
    'descrip' => 'Google Search',
    'prompt' => 'Please enter the term to have searched through Google.',
    'regex' => '([a-zA-Z0-9-_ ]+)',
    'markup' => '<a href=\\"http://www.google.com/search?q=\\\\1\\">\\\\1</a>',
  ),
  10 => 
  array (
    'tag' => 'googleimages',
    'descrip' => 'Google Image Search',
    'prompt' => 'Please enter the term to have searched through Google.',
    'regex' => '([a-zA-Z0-9-_ ]+)',
    'markup' => '<a href=\\"http://www.google.com/images?q=\\\\1\\">\\\\1</a>',
  ),
  11 => 
  array (
    'tag' => 'froogle',
    'descrip' => 'Froogle Search',
    'prompt' => 'Please enter the term to have searched through Google.',
    'regex' => '([a-zA-Z0-9-_ ]+)',
    'markup' => '<a href=\\"http://www.google.com/products?q=\\\\1\\">\\\\1</a>',
  ),
  12 => 
  array (
    'tag' => 'description',
    'descrip' => 'Description',
    'prompt' => 'Please enter the text to be defined as a description.',
    'regex' => '(.+?)',
    'markup' => '<strong>Description</strong>: \\\\1',
  ),
  13 => 
  array (
    'tag' => 'desc',
    'descrip' => 'Description',
    'prompt' => 'Please enter the text to be defined as a description.',
    'regex' => '(.+?)',
    'markup' => '<strong>Description</strong>: \\\\1',
  ),
  14 => 
  array (
    'tag' => 'flash',
    'descrip' => 'Flash Embed',
    'prompt' => 'Please enter the Height, Width, and URL for the flash video.',
    'regex' => '([0-9]+), ([0-9]+), ([a-zA-Z0-9-_.&:/]+)',
    'markup' => '<object width="\\\\2" height="\\\\1"><param name="movie" value="\\\\3"></param><embed src="\\\\3" type="application/x-shockwave-flash" width="\\\\2" height="\\\\1"></embed></object>',
  ),
  15 => 
  array (
    'tag' => 'flash',
    'descrip' => 'Flash Embed',
    'prompt' => 'Please enter the URL for the flash video.',
    'regex' => '([a-zA-Z0-9-_.&:/]+)',
    'markup' => '<object width="425" height="350"><param name="movie" value="\\\\1"></param><embed src="\\\\1" type="application/x-shockwave-flash" width="425" height="350"></embed></object>',
  ),
  16 => 
  array (
    'tag' => 'pricegrabber',
    'descrip' => 'PriceGrabber',
    'prompt' => 'Please enter the string to search at PriceGrabber.',
    'regex' => '([a-zA-Z0-9-_ ]+)',
    'markup' => '<a href="http://www.pricegrabber.com/search_getoffers.php?keyword=\\\\1" target="_new">\\\\1</a>',
  ),
  17 => 
  array (
    'tag' => 'myspace',
    'descrip' => 'View MySpace Profile',
    'prompt' => 'Please enter the name of the user to lookup on MySpace.',
    'regex' => '([a-zA-Z0-9-_ ]+)',
    'markup' => '<a href="http://www.myspace.com/\\\\1" target="_new">\\\\1</a>',
  ),
  18 => 
  array (
    'tag' => 'loowa',
    'descrip' => 'View Loowa Profile',
    'prompt' => 'Please enter the name of the user to lookup on Loowa.',
    'regex' => '([a-zA-Z0-9@.]+)',
    'markup' => '<a href="http://www.loowa.com/profile.php?email=\\\\1" target="_new">\\\\1</a>',
  ),
  19 => 
  array (
    'tag' => 'loowavideo',
    'descrip' => 'Loowa Video',
    'prompt' => 'Please enter the ID of the video to embed from Loowa.',
    'regex' => '([a-zA-Z0-9-_]+)',
    'markup' => '<embed src="http://update.videoegg.com/flash/player8.swf?jsver=1.3" FlashVars="file=http%3A//selfserve1.download.videoegg.com/gid353/cid1208/CZ/PW/1169094106KzyWvMT0WVB7S74rN6a2&amp;bgColor=000000&amp;autoPlay=false&amp;showAd=false&amp;adVars=&amp;pageURL=http%3A//www.loowa.com/video/\\\\1&amp;allowFlash9Fullscreen=true" quality="high" allowFullScreen="true" allowScriptAccess="always" bgcolor="#000000" scale="noscale" wmode="window" width="425" height="350" name="VE_Player" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>',
  ),
  20 => 
  array (
    'tag' => 'photobucket',
    'descrip' => 'Photobucket Widget',
    'prompt' => 'Please enter the ID of your photobucket widget.',
    'regex' => '([a-zA-Z0-9-_/:.]+)',
    'markup' => '<object width="425" height="350"><embed type="application/x-shockwave-flash" wmode="transparent" src="http://w33.photobucket.com/pbwidget.swf?pbwurl=\\\\1" height="350" width="425"></embed></object>',
  ),
  21 => 
  array (
    'tag' => 'pbucket',
    'descrip' => 'Photobucket Widget',
    'prompt' => 'Please enter the ID of your photobucket widget.',
    'regex' => '([a-zA-Z0-9-_/:.]+)',
    'markup' => '<object width="425" height="350"><embed type="application/x-shockwave-flash" wmode="transparent" src="http://w33.photobucket.com/pbwidget.swf?pbwurl=\\\\1" height="350" width="425"></embed></object>',
  ),
  22 => 
  array (
    'tag' => 'podcast',
    'descrip' => 'Podcast',
    'prompt' => 'Please enter the URL of the podcast stream (audio file).',
    'regex' => '([a-zA-Z0-9-_.&:/]+)',
    'markup' => '<embed src="http://www.yoursite.tld/your/mp3player.swf" width="425" height="42" bgcolor="#000000" quality="low" menu="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=\\\\1&amp;autostart=false&amp;backcolor=0x000000&amp;frontcolor=0xFFFFFF&amp;lightcolor=0xFFFFFF" /></center>',
  ),
  23 => 
  array (
    'tag' => 'webcam',
    'descrip' => 'Stickam WebCam Stream',
    'prompt' => 'Please enter your Stickam ID.',
    'regex' => '([a-zA-Z0-9-_]+)',
    'markup' => '<embed src="http://player.stickam.com/stickamPlayer/\\\\1" type="application/x-shockwave-flash" width="480" height="210" allowScriptAccess="always"></embed>',
  ),
  24 => 
  array (
    'tag' => 'skype',
    'descrip' => 'Skype Status Indicator',
    'prompt' => 'Please enter your Skype ID.',
    'regex' => '([a-zA-Z0-9-_]+)',
    'markup' => '<a href="skype:\\\\1?call"><img src="http://mystatus.skype.com/bigclassic/\\\\1" style="border: none;" width="182" height="44" alt="My status" /></a>',
  ),
);
?>
_________________________
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
#316730 - 02/19/08 02:30 PM Re: [7.3+] Gizmo's Embedding BBCode (Compatibility) [Re: Gizmo]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 86
Loc: UK
wow this is sweeeeeeeeet.

I love the way these tags are now added wink

As above.
Just make the text file and import it.
Then click on which one you want and enable it.
And even use the option to make it visible or not.

Strangely for me 7.3.b4 youtube one does not work.
But that's been reported.

I ran the Post Rebuild - and there was no need to.
It takes about 30mins to run on 100,000 posts.

I now have to run it again as ive now enabled the old 7.2 you tube. < doh >

This is a great new addon as in the import.
Still playing but looks great.

Good Work Gizmo smile

Top
#316738 - 02/19/08 05:56 PM Re: [7.3+] Gizmo's Embedding BBCode (Compatibility) [Re: Mark_S]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5352
Loc: Portland, OR, USA
'eh, all above codes use the "global" urls for services, and not region specific... i don't know who all uses region specific urls, and weather they're just a tld change, or the www replaced with a country code so it'd be difficult to port them all... however, they should work just as they did in 7.x with the other mod 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
Shout Box

(Views)Popular Topics
Known public proxy servers 1636135
Integrated Index Page (IIP) 5.3.1 528187
Finished-[6.5.2] Games Arcade Deluxe v1.9 486016
Integrated Index Page (IIP) 5.1.1 401388
TLD Bv2.1 Released - Threads Links Directory 382774
[6.0x] Who's Online 4.0.0 [Finished] 374847
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 318709
Q & A 264276
[6.3.x] [beta] Hit Hack 2.0 225221
[7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3) 202973
Forum Stats
13620 Members
59 Forums
37189 Topics
295701 Posts

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

 

 

 
fusionbb message board php hacks