UBB.Dev
Posted By: Gizmo [7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3) - 03/15/2007 12:34 AM
Instead of continuing to completely hijack the other thread, and post additions everywhere but the initial post; here's the thread for my Embedding BBCode additions.

7.3 Update - Due to the "Custom Tags" option added in 7.3 these can be added much easier, without having to hack code. Please see the following links:
[7.3+] Gizmo's Embedding BBCode (Compatibility) (compatibility with the codes below in 7.3)
[7.3+] Gizmo's CustomTags (My new custom tags thread for all things 7.3+)

Installation:
Open: libs/ubbthreads.inc.php
Find:
Code
			// You don't see the next line
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 After (choose any you wish, this is my added block from my site):
Code

// Gizmo's Added UBBCode
array( "#\[google\]([a-zA-Z0-9 ]+)\[/google\]#i", '<a href="http://www.google.com/custom?domains=www.undergroundnews.com&q=\1&sa=Search&sitesearch=&client=pub-5168900358893374&forid=1&channel=4984299912&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%238CA3D6%3BGL%3A1%3BDIV%3A%23666666%3BVLC%3A8CA3D6%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AC0C0C0%3BLC%3AC0C0C0%3BT%3AFFFFFF%3BGFNT%3A8CA3D6%3BGIMP%3A8CA3D6%3BFORID%3A1&hl=en" target="_new">\1</a>' ),
array( "#\[googlevideo\]([a-zA-Z0-9-_]+)\[/googlevideo\]#i", '<center><embed style="width:425px; height:350px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\1&hl=en"></embed></center>' ),
array( "#\[googleimages\]([a-zA-Z0-9 ]+)\[/googleimages\]#i", '<a href="http://images.google.com/images?sourceid=navclient-ff&ie=UTF-8&rls=GGGL,GGGL:2006-17,GGGL:en&q=\1" target="_new">\1</a>' ),
array( "#\[froogle\]([a-zA-Z0-9 ]+)\[/froogle\]#i", '<a href="http://froogle.google.com/froogle?q=\1C&btnG=Search+Froogle" target="_new">\1</a>' ),
array( "#\[pricegrabber\]([a-zA-Z0-9 ]+)\[/pricegrabber\]#i", '<a href="http://www.pricegrabber.com/search_getoffers.php?keyword=\1" target="_new">\1</a>' ),
array( "#\[youtube\]([a-zA-Z0-9-_]+)\[/youtube\]#i", '<center><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></center>' ),
array( "#\[break\]([a-zA-Z0-9-_]+)\[/break\]#i", '<center><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></center>' ),
array( "#\[yahoovideo\]([a-zA-Z0-9-_]+).([a-zA-Z0-9 ]+)\[/yahoovideo\]#i", '<center><embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf" flashvars="id=\2&emailUrl=http%3A%2F%2Fvideo.yahoo.com%2Futil%2Fmail%3Fei%3DUTF-8%26vid%3D\1.\2%26cache%3D1&imUrl=http%253A%252F%252Fvideo.yahoo.com%252Fvideo%252Fplay%253F%2526ei%253DUTF-8%2526vid%253D\1.\2%2526cache%253D1&imTitle=TreehuggerTV%253A%2BFreshtopia%2BTakes%2Bthe%2BLong%2BTrain&searchUrl=http://video.yahoo.com/video/search?p=&profileUrl=http://video.yahoo.com/video/profile?yid=&creatorValue=YmlwZWRiaXBlZA%3D%3D&vid=\1.\2" type="application/x-shockwave-flash" width="425" height="350"></embed></center>' ),
array( "#\[myspace\]([a-zA-Z0-9 ]+)\[/myspace\]#i", '<a href="http://www.myspace.com/\1" target="_new">\1</a>' ),
array( "#\[myspacevideo\]([a-zA-Z0-9-_]+)\[/myspacevideo\]#i", '<center><embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\1&type=video" type="application/x-shockwave-flash" width="425" height="350"></embed></center>' ),
array( "#\[loowa\]([a-zA-Z0-9@.]+)\[/loowa\]#i", '<a href="http://www.loowa.com/profile.php?email=\1" target="_new">\1</a>' ),
array( "#\[loowavideo\]([a-zA-Z0-9-_]+)\[/loowavideo\]#i", '<center><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&bgColor=000000&autoPlay=false&showAd=false&adVars=&pageURL=http%3A//www.loowa.com/video/\1&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></center>' ),
array( "#\[revver\]([a-zA-Z0-9-_]+)\[/revver\]#i", '<center><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></center>' ),
array( "#\[wiki\]([a-zA-Z0-9 ]+)\[/wiki\]#i", '<a href="http://en.wikipedia.org/wiki/\1" target="_new">\1</a>' ),
array( "#\[description\](.+?)\[/description\]#i", '<b>Description</b>: \\1' ),
array( "#\[desc\](.+?)\[/desc\]#i", '<b>Description</b>: \\1' ),
array( "#\[photobucket\]([a-zA-Z0-9-_/:.]+)\[/photobucket\]#i", '<center><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></center>' ),
array( "#\[podcast\]([a-zA-Z0-9-_.&:/]+)\[/podcast\]#i", '<center><embed src="http://www.undergroundnews.com/forum/addons/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&autostart=false&backcolor=0x000000&frontcolor=0xFFFFFF&lightcolor=0xFFFFFF" /></center>' ),
array( "#\[webcam\]([a-zA-Z0-9-_]+)\[/webcam\]#i", '<center><embed src="http://player.stickam.com/stickamPlayer/\1" type="application/x-shockwave-flash" width="480" height="210" allowScriptAccess="always"></embed></center>' ),
array( "#\[pbucket\]([a-zA-Z0-9-_.:/]+)\[/pbucket\]#i", '<center><embed width="425" height="350" type="application/x-shockwave-flash" wmode="transparent" src="http://vid68.photobucket.com/player.swf?file=\1"></embed></center>' ),
array( "#\[skype\]([a-zA-Z0-9-_]+)\[/skype\]#i", '<a href="skype:\1?call"><img src="http://mystatus.skype.com/bigclassic/\1" style="border: none;" width="182" height="44" alt="My status" /></a>' ),
array( "#\[flash\]([0-9]+), ([0-9]+), ([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><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></center>' ),
array( "#\[flash\]([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><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></center>' ),
array( "#\[liveleak\]([a-zA-Z0-9_]+)\[/liveleak\]#i", '<center><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></center>' ),
array( "#\[sdeluxe\]([a-zA-Z0-9]+)\[/sdeluxe\]#i", '<center><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></center>' ),

Usage:
Code
[google]Search Criteria[/google]
[googlevideo]VideoID[/googlevideo]
[googleimages]Search Criteria[/googleimages]
[froogle]Search Criteria[/froogle]
[pricegrabber]Search Criteria[/pricegrabber]
[youtube]VideoID[/youtube]
[break]VideoID[/break]
[yahoovideo][/yahoovideo]
[myspace]UserID[/myspace]
[myspacevideo]VideoID[/mypacevideo]
[loowa]UserID[/loowa]
[loowavideo]VideoID[/loowavideo]
[revver]VideoID[/revver]
[wiki]Wiki Criteria[/wiki]
[description]Desctiption Data[/description]
[desc]Description Data[/desc]
[photobucket]EmbedURL[/photobucket]
[podcast]http://www.url.to/podcast.mp3[/podcast]
[webcam]StickamID[/webcam]
[pbucket]PhotoBucketVideoURL[/pbucket]
[skype]SkypeID[/skype]
[flash]height, width, URL[/flash]
[flash]URL[/flash]
[liveleak]VideoID[/liveleak]
[sdeluxe]VideoID[/sdeluxe]

Others:
Spoiler Tags
Daily Motion

NOTE:
  • The [podcast] tag requires the MP3 flash file inserted into your /libs directory; this file is available here. Please note that you'll also need to insert the URL to this file in the bbcode entry.
  • For support on the Spoiler Tags bbcode, please go here as it has its own page.
  • To see why there is the description/desc tags, please see here.
  • The PhotoBucket Video code requires the videoURL from the embed link on photobucket, you can't use the "link to this page" link as it does not give the video data to embed the video.


Markup Panel Note: The text attached shows you how to add an option to your markup panel (the graphic goes in images/markup_panel/ and should be named "vidembed.gif"); it took a while to get everything to mesh well, but I think it should work fine.

The only options in here (for now) is the Video Embedding options, and it prompts the user to enter a description for their video (so search engines or impaired users can actually tell what it is as they can have issues viewing videos)... On another note, do you like my video embed graphic?

Licensing Notice: I hereby grant exclusive access over the attached image(s) to UBB.Central and UBB.Dev and their userbase to be used only within the UBB (and any UBB addon's or scripts). No other usage is approved.

Attachment Information:
2475.gif - vidembed.gif
vidembedmarkuppanel.txt - The markup panel addon WITH the description tag added into the javascript prompts (recommended as Search Engines and Visually Impaired users cannot SEE the video, the reader can read a description of the video; higly recommended especially if you rely on search engine traffic).
vidembedmarkuppanel2.txt - The markup panel addon WITHOUT the description tag added into the javascript prompts (the above is recommended, this is provided for those who don't want the description tag for whatever reason).

Attached picture vidembed.gif
Attached File
vidembedmarkuppanel.txt  (68 downloads)
Attached picture vidembed.jpg
Attached File
vidembedmarkuppanel2.txt  (48 downloads)
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 03/15/2007 12:53 AM
It'd seem that Yahoo changed how they embed items, I'm not sure how at moment, but the embed string is nothing like it was several months ago...

It USED to be: 146a6f217779edcc766c1f02c7696206.1417545 where the long string is the userid, and the short is the videoid; but now they're crafting data different and it looks (offhand) that I just need to call the videoid... interesting...
Posted By: Cuervo Re: [7.x] Gizmo's Embedding BBCode - 03/15/2007 2:03 AM
zOMG no markup code /hint Gizmo
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 03/15/2007 2:14 AM
HUmmm i lost my last post.

1. Does your code above gizmo cover the _ in "YouTube" ?


Its an instant hit with the members Gizmo smile

Another site you may want to include and is very popular is

http://www.dailymotion.com/
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 03/15/2007 4:20 AM
Originally Posted by Mark_S
1. Does your code above gizmo cover the _ in "YouTube"?


In short, yes:
Originally Posted by Gizmo
[a-zA-Z0-9-_]

Originally Posted by Cuervo
zOMG no markup code /hint Gizmo
hmm? Do you mean the markup panel itself? If so, I guess I could throw something togethere, but after a couple additions it'll get quite crowded...


As for "dailymotion", this should work, however you have to take the id out of the embed code vs the url:
Code
			array( "#\[dailymotion\]([a-zA-Z0-9-_]+)\[/dailymotion\]#i", '<center><object width="425" height="350"><param name="movie" value="http://www.dailymotion.com/swf/\1"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/\1" type="application/x-shockwave-flash" width="425" height="350" allowfullscreen="true"></embed></object></center>' ),
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 03/15/2007 11:02 AM
Top Man Top Man

Cheers Gizmo will test it later smile
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 03/15/2007 11:47 AM
Works like a charm the dailymotion..
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 03/15/2007 11:01 PM
glad to hear it. I'm going to work on the yahoo code later on when I get more time; it's really odd that they changed things around; i'm wondering what all i can shave from the embed code...
Posted By: Ian_W Re: [7.x] Gizmo's Embedding BBCode - 03/16/2007 2:07 PM
Giz - you have

[description]Desctiption Data[/description]
[desc]Description Data[/description]

rather than

[description]Desctiption Data[/description]
[desc]Description Data[/desc]#

not 100% sure what this one does at the moment BTW
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 03/16/2007 11:42 PM
haha, good call! Consider it updated.

Description is just a small tag which allows you to post a description of a video, basically its no different than:
Code
Description: This is the description.

Basically, it's to encourage people to post a description with their videos; as search engines cannot crawl, let alone see, the content within the flash file lol.
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 03/17/2007 12:37 AM
Jesus we have code tags coming out of our hoola hoops lol

Didnt even know i had that one until you mentioned it Ian.

Keep up the good work Gizmo smile
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 03/17/2007 9:20 AM
Lol, yeh if you just copy down the block above you get a whole bunch of added goodies lol; though the podcast code requires the mp3 swf file (though theres a link to that in my notes). The spoiler one is heavily used by some communities; and it's a great one...
Posted By: Ian_W Re: [7.x] Gizmo's Embedding BBCode - 03/18/2007 1:40 PM
Whilst I think this is great - the only problem is that most users when they make a post are totally unaware of these functions unless they are on buttons or as a drop down etc.
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 03/18/2007 11:15 PM
You can craft entries for the full reply box's system, however there isn't much space to play, and adding too many items is going to make it quite full and messy looking...
Posted By: Ian_W Re: [7.x] Gizmo's Embedding BBCode - 03/19/2007 1:08 PM
I know - that is why there should be an alternative - maybe a dropdown?
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 03/19/2007 11:26 PM
Sure, if you know javascript go ahead... wink...
Posted By: chillin Re: [7.x] Gizmo's Embedding BBCode - 03/21/2007 12:19 AM
Ouch, no props to the original YouTube mod!? tipsy
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 03/21/2007 12:44 AM
Originally Posted by chillin
Ouch, no props to the original YouTube mod!? tipsy
I made this about the same time as the "original" was listed here for my personal use wink...

I'm actually contemplating remaking all of mine to be xhtml valid; but that'd take too long and i'd get bored hehe.
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 03/24/2007 10:56 AM
Hey ive just noticed that when members have been using this
mod YouTube its recording the hits from the embedded link.

So if your members embedd a YouTube Video
Google is picking up your site name. smile smile

e.g. - Google Result looks like this.

YouTube - Chassis with 27 litre tank engine for Rover SD1 project
4 clicks from http://www.mysite.co.uk/forums/ubbthreads.php?ub...
3 clicks from http://www.his-site.co.uk/forum/index.php?showto. ...


Extra Bonus there with the YouTube Hack smile smile
Again Nice one Gizmo
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 03/25/2007 12:15 AM
Lol how do you look those up mark? sounds fun :x
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 03/29/2007 10:04 AM
With me changing domain names recently,
i only have a search result from google of 200

so i was just going through the 5 pages or so,
to see what was being spidered and there they were,
at about 100 ish results in smile

I guess there were about 6 diffrent ones that were listed.
Its a very popular add-on on my site the members love it.
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 03/29/2007 11:12 AM
I'm glad to hear it's popular! Video blogging/posting is really something that I expect to see more of in the months and years to come, can't wait to see how things develop smile
Posted By: Ian_W Re: [7.x] Gizmo's Embedding BBCode - 03/29/2007 11:48 AM
My members like it - but they are a bit thick at times LOL and forget to use the features....

Maybe it is because they often use the quick reply box, so do not see these features, and indeed smilies within or near that box.

Not sure of the reason - but I used to see it used, but not any more frown
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 03/30/2007 1:06 AM
Updated initial page, added -_ for all video tags (since it's becoming more and more popular, figured why the hell not), also added break.com.
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 04/29/2007 5:06 AM
I removed the Spoiler Tags code as I work on it on the other thread; and I added a PhotoBucket Video embed code.

If I can find a flash embedder that I'm happy with, I'll add that as well, so stay tuned.
Posted By: blaaskaak Re: [7.x] Gizmo's Embedding BBCode - 04/29/2007 10:40 AM
Originally Posted by Gizmo
Add After (choose any you wish, this is my added block from my site):

I would put things at a different spot.

You need to modify the lines a bit, but imho it should be in the "if( $type != "sig" ) {" construction just below the place you put it in now.

Because all these flash thingy includes don't belong in a signature. Just add "$regexes[] = " and replace the , at the end with a ; and it should work, I think smile
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 04/29/2007 12:57 PM
'eh woudln't be too hard I guess :shrug: some people may want spoilers in their sig? :shrug: you could put them in either place, would take just a couple extra lines to drop them in the no sig area
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 05/09/2007 4:18 AM
For my new friend Outdoorking, a Skype BBCode:
Code
array( "#\[skype\]([a-zA-Z0-9-_]+)\[/skype\]#i", '<a href="skype:\1?call"><img src="http://mystatus.skype.com/bigclassic/\1" style="border: none;" width="182" height="44" alt="My status" /></a>' ),
Posted By: blaaskaak Re: [7.x] Gizmo's Embedding BBCode - 05/24/2007 10:19 PM
At our forum we use youtube and google video.

But especially with youtube, lots of people just type in the whole url instead of just the code.

But it shouldn't be too difficult to accept a whole URL also isn't it?

My lame attempt was:

Code
			array( "#\[youtube\]http://www.youtube.com/watch?v=([a-zA-Z0-9-_]+)\[/youtube\]#i", '<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>' ),			

But regexxes is pretty new for me, so I don't know what characters I can or can't use.
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 05/25/2007 7:44 AM
I donno why that wouldn't work offhand, it looks sane enough; don't really have the time atm to test it, but i'll give it a shot later on.
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 06/04/2007 12:04 PM
nice
Posted By: ehm Re: [7.x] Gizmo's Embedding BBCode - 06/11/2007 8:31 PM
Great product. Work's perfect on my forum smile
thank you Gizmo smile
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 07/10/2007 2:37 AM
7.2X

Works fine for me smile

Qwerk?
7.1x video's would appear in the centre in a post.
7.2x Video's now appear on the left?

Anyone else or have i broke it again lol
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 07/10/2007 2:50 AM
Gizmo

I have an extra bit of code that isnt mentioned in your first post?
In FF if i remove this code, and click preview it show it as
tags and tube code only?

PHP Code
array( "#\[youtube\](.+?)\[/youtube\]#i", '<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>' ),




Its then i would paste the rest of your code in post 1 of this thread.
Of course i dont understand any of it just feed back wink
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 07/10/2007 3:18 AM
Code
array( "#\[pbucket\]([a-zA-Z0-9-_.:/]+)\[/pbucket\]#i", '<center><embed width="425" height="350" type="application/x-shockwave-flash" wmode="transparent" src="http://vid68.photobucket.com/player.swf?file=\\1"></embed></center>' ),

remove second \ after file=\, then it works
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 07/10/2007 3:37 AM
Mark, the reason they're not centered is because the youtube tag you're using isn't from my posting, it's from the other youtube tag posting in another thread. This should effect both of your posts.


Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 07/10/2007 11:31 AM
Yep all working now wink
used ALL of the code from the first post wink

Part of my problem was a video i was testing?

OTl8ySlr4Qw&eurl

Ive no idea where the &eurl came from as in i dont know.
So that was causing me problems as it was the correct format.

With &eurl removed the extra and positioning now all works.
Centred and previewing fine wink


OTl8ySlr4Qw

I'm now using all the codes posted in the first post wink
Thanks for the reply's.
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 07/10/2007 11:55 AM
lol, not a problem wink... figured you'd have asked me on AIM about this vs having me stumble in half drunk
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 07/10/2007 5:11 PM
On me laptop with out msn settings frown
There's always next time lol
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 07/12/2007 9:42 AM
Code updated to remove the additional \ in the pbucket tag which wasn't working for some users.
Posted By: AllenAyres Re: [7.x] Gizmo's Embedding BBCode - 07/23/2007 8:06 PM
worked well on 7.2, thankie smile
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 07/24/2007 1:49 AM
yep, i added it all too.. btw, i have a firefox extension that i wrote to make it easy to just right click and have all the codes handy with it parsing the clipboard ..

makes it easier, while the editor hasn't all the options

i'll post it in another thread..

dunno what to call it yet laugh ubbfox ? threadsfox ? whatever wink
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 07/24/2007 1:53 AM
Gizmo's BBCode! lol...
Posted By: blaaskaak Re: [7.x] Gizmo's Embedding BBCode - 07/24/2007 10:34 PM
We use an alternative youtube line on themepark.nl that is w3c xhtml valid

Code
			$regexes[] = array( "#\[youtube\]([a-zA-Z0-9-_]+)\[/youtube\]#i", '<object type="application/x-shockwave-flash" style="width:425px; height:350px;" data="http://www.youtube.com/v/\1"><param name="movie" value="http://www.youtube.com/v/\1" /><param name="wmode" value="transparent"></object>');		

If you copy/paste this one, it needs to be in the if( $type != "sig" ) { section. I don't want youtube video's in signatures, that's why I put in the non signature section.

source: http://www.bernzilla.com/item.php?id=681
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 07/25/2007 1:49 AM
What's different in yours than mine? Mine's taken directly from the youtube site; it shouldn't be any harder to just copy the code to the nosig area.
Posted By: blaaskaak Re: [7.x] Gizmo's Embedding BBCode - 07/25/2007 2:24 AM
Originally Posted by Gizmo
What's different in yours than mine? Mine's taken directly from the youtube site;

The difference in mine is that is does not use the embad tag.

The embad tag is fine for html, but it is not part of the xhtml standard.
ubb.threads uses xhtml, so you should avoid imho if possible non xhtml code.

http://www.alistapart.com/articles/flashsatay

more reading about this.
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 07/25/2007 2:30 AM
Ahhh, yeh i use object tag on my corthell.net site due to embed not being in the xhtml spec; but I didn't want to rewrite all of the other tags especially since the paramaters can and will change and I didn't want to have to constantly update them for new params
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 08/07/2007 6:23 PM
If you use the youtube tags its ok
if you use the myspacevideo tags its not?

This is feedback and what i mean is that the Active
Topic List goes behind the myspace videos but the
youtube ones seem fine? Even the Rate topic and the
other drop menus get hidden behind the myspacevideo video.

Its a qwerk but i thought i would mention it if ricks
throwing this into 7.3 wink
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/08/2007 6:36 AM
Could you link me to this b0ged thread? it should display the item in line in the post area as that's where it's being embedded...
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/09/2007 2:17 AM
Got your PM, I believe this is a forum issue vs one with this addon (as we're only adding BBCode); I'm curious if you could add an image with the image tag and see if the same happens...

I believe SD had a similar issue on his hopto mod with a user so I'll talk to him about it later.
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 08/09/2007 3:36 AM
z-index baby ! in the tpl should do it smile
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/09/2007 7:29 AM
tried a zindex on the manage topic table (and div) and it pops behind; very odd indeed...
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 08/09/2007 3:02 PM
position: abosolute on the div too wink
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/10/2007 12:51 AM
still showing behind the video wink
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/10/2007 1:33 AM
Added [flash] tags to the initial post; covered both "url only" and "height/width/url" definitions.

The tags use the object tag vs the embed tag (like the others) to ensure proper validation.
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 08/10/2007 4:45 AM
Originally Posted by Gizmo
still showing behind the video wink


post it as a bug ! wink
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/10/2007 4:59 AM
Yeh, but then he'll say it's cas of the "mod" wink... But very odd none the less...
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 08/10/2007 5:22 AM
lol, well, assuming that video gets embedded into future versions, this will become a 'bug'

and i'm quite sure there's a fix in properly setting up the div in the right DOM order...

i guess we can table it for now until then...
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/10/2007 5:38 AM
By table it, I assume you mean tell mark he's sol? :x
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 08/10/2007 5:43 AM
dude. it's a css / html thingie.. you are the expert dude wink

so you get to tell him laugh
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/10/2007 6:47 AM
Mark, we tried everything, but unfortunately, she's dead, you're screwed... next?

lol... jk, not sure about how to fix it here atm...
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 08/11/2007 5:23 AM
well, it's not a bug. you guys are doing something wrong. i have my hop to menu doing the same thing over a youtube vid..

screenie:[Linked Image]

soooooo..... where's the beef ? laugh
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/11/2007 11:26 AM
Try with a MySpaceVideo link...
Code
[myspacevideo]6827997[/myspacevideo]
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 08/11/2007 2:07 PM
you tube is fine wink
its not a bug more a qwerk as it shows the video wink
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/11/2007 2:49 PM
i will agree that it's even more weird that the myspacevideo is the only tag affected :x...
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 08/11/2007 6:44 PM
well, it's not a bug. you guys are doing something wrong. i have my hop to menu doing the same thing over a youtube myspace vid..

screenie:[Linked Image]

soooooo..... where's the beef ? laugh
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/12/2007 1:42 AM
lol how about the "manage topic" box big boy wink
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 08/12/2007 2:06 AM
hehe, i was sayin you should do same div + css that i did with the hop to mod that is done with manage topic... sonny boy laugh

when i get back from b'day party, i will see what the diffs are.. it will be a small change, imo :neener:
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/12/2007 5:48 AM
:neener: :neener: :neener: tipsy
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 08/19/2007 12:12 PM
Originally Posted by Gizmo
Mark, we tried everything, but unfortunately, she's dead, you're screwed... next?

lol... jk, not sure about how to fix it here atm...
It doesnt bother me to be honest just wanted to highlight that it was going on. wink

LiveLeak - very popular with the armed forces
Any code for those video's Sir Gizmo wink
http://www.liveleak.com/view?i=04c_1186817959

smile smile smile smile smile
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/19/2007 1:20 PM
try:
Code
			array( "#\[liveleak\]([a-zA-Z0-9_]+)\[/liveleak\]#i", '<center><object type="application/x-shockwave-flash" width="450" height="370" 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></center>' ),
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/19/2007 1:27 PM
added liveleak to my initial block of code since i have it working in my demo zone.
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 08/20/2007 12:11 AM
Good lad Gizmo wink Thanks, i will pass on the love from my members wink
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/20/2007 2:22 AM
Originally Posted by Mark_S
Thanks, i will pass on the love from my members wink
tell them to open wide...
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/24/2007 6:05 AM
Added tags for Super Deluxe
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/24/2007 7:24 AM
added a markup panel how to to the initial posting... This will insert a graphic next to the image embed item which will drop down a list of video sites. Upon clicking the site you wish to embed from, it will prompt you for your video id and then it will ask for a description of the video as well. Will attach screens as well to the initial post.
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 08/24/2007 7:26 AM
gettin better!!

giz FlexTM wink
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/24/2007 7:35 AM
:flex:™ hehe... took a good portion of my evening to figure out how to do things in javascript, and a good part of last night lol... But overall I think it's dead sexy wink...
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/24/2007 7:37 AM
I'm wondering what I should do next... Do a seperate markup panel for the search options (search engines, wiki, and froogle and several others) or what... Not sure what i should do for an image on it either lol...

Like my image? I made it myself after a boatload of trial and error lol
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/24/2007 2:52 PM
Wow, ten downloads already of the markup panel addon... Let me know what you think!
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 08/24/2007 7:00 PM
working and looking good gizmo.

Feedback :

1. Its the mark up panel i know but when you finish with the
code + description in FF the drop list is in the way of the output.

2. If you dont enter a description in the box, the tags are left visible ]desc[ ]/desc[ ive reversed the braces to help.

Apart from that, i moved our prefered vids up and down in the tpl file and all is well wink

Awaiting user feedback.
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/25/2007 1:34 AM
In all honesty, your users really need to enter a description... Search engines and visually impaired users can't see the video, so the topic of the page will just be your responses... I guess I could seperate the description into its own area though at the bottom of the list... But again, I recommend that if you're going to post a video that you should post a description no matter what... Plus it's not like you can't remove the tags...

On #1 i'm not sure i get what youw ant... It loads fine for me in FireFox so I guess it's just a miss communication...

BTW, I stole the markup info from the text size box and used the doprompt script, so the behavior of the dropdown will directly reflect that of what the font type/size dropdowns work.
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 08/25/2007 2:58 AM
Were used to just adding the code,
the subject of the topic normally covers any description that's required. I don't think its needed mate.

Its feedback not criticism, its one of the best mods i have installed.

If it can be edited that the "[desc]" tags don't show if nothing is entered then i say you have a solid add-on wink

but i'm glad your happy to share smile
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/25/2007 6:38 AM
Well, you could go through the js file and take out the desc options for every tag type if you want to remove the option for the description... I still stand behind the current methodology, but I'll build a seperate js addon for you since you don't want it that way.
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/25/2007 6:40 AM
Just for mark:
Code
/* Start Gizmo's Video Embedding Options */
if (action == "break") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}

insertAtCaret(document.replier.Body, "\n[break]" + thisVideo + "[/break]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "googlevideo") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}

insertAtCaret(document.replier.Body, "\n[googlevideo]" + thisVideo + "[/googlevideo]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "liveleak") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}

insertAtCaret(document.replier.Body, "\n[liveleak]" + thisVideo + "[/liveleak]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "loowavideo") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}

insertAtCaret(document.replier.Body, "\n[loowavideo]" + thisVideo + "[/loowavideo]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "myspacevideo") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}

insertAtCaret(document.replier.Body, "\n[myspacevideo]" + thisVideo + "[/myspacevideo]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "revver") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}

insertAtCaret(document.replier.Body, "\n[revver]" + thisVideo + "[/revver]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "sdeluxe") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}

insertAtCaret(document.replier.Body, "\n[sdeluxe]" + thisVideo + "[/sdeluxe]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "yahoovideo") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}

insertAtCaret(document.replier.Body, "\n[yahoovideo]" + thisVideo + "[/yahoovideo]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "youtube") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}

insertAtCaret(document.replier.Body, "\n[youtube]" + thisVideo + "[/youtube]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
/* End Gizmo's Video Embedding Options */

Simply replace the section in the js file and you'll no longer be prompted for a description.
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/25/2007 6:57 AM
Updated my initial post with an alternate method for those who do not want the desc tag (though highly recommended that you use the one which does use it)
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 08/25/2007 11:34 AM
Cheers Gizmo,
i'm not saying there not important, but if they auto cancelled them self out if the box was empty at the prompt would keep all happy smile

Easy to say than done i know.

The description is a nice touch, but on my forums members just throw a topic title up and embed the video end.

Thanks for the "Just for mark code" wink
Posted By: blaaskaak Re: [7.x] Gizmo's Embedding BBCode - 08/25/2007 2:10 PM
Originally Posted by Mark_S
Thanks for the "Just for mark code" wink

I'm gonna give that version a go to when 7.2.2 is released! Allthough we only offer google video and youtube yet.
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 08/25/2007 2:31 PM
That's what i done stripped out some of the others in the .tpl file and shuffled them around and put you tube at the top wink
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/26/2007 1:12 AM
'eh I like alphabetical listing wink... So when I added SuperDeluxe (watch adult swim? it's the one they highly advertise, so it's rather large) I decided to sort them like that since there where so many video items now...

Posted By: ntdoc Re: [7.x] Gizmo's Embedding BBCode - 08/27/2007 5:40 AM
Does post 1 have the most complete update of this code all in one?

Where can I see and use this mod in operation?
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/27/2007 7:03 AM
Post #1 contains all current code and is updated on a regular basis.

As for where to see it in action My Video Studio
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 08/27/2007 9:11 AM
holy crap! that theme is uber-dark... /me gets flashlight..
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 08/27/2007 10:02 AM
Originally Posted by sirdude
holy crap! that theme is uber-dark... /me gets flashlight..
its where the vampires lurk
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 08/27/2007 10:02 AM
you need a lighter theme.. that one's kinda ghey.. shocked
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 10/19/2007 12:57 AM
Does anyone have a .FLV player For UBB ?

let me explain.
With the numerous sites out there that will convert your
own movies to *.flv files like what You Tube Does.

Many of my members are using these site to compress there
video's into .flv files and now are asking if our own
forums can show them, if there uploaded.

Summary
I'm after a .FLV player to work like you tube and such.
So we can show video's with the embedded screen.

Any Help or Advice Appreciated smile
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 10/19/2007 1:20 AM
google

1st hit

Linky Poo

Creative Commons License player Linky Dinky

how to do it in wordpress (what you'd have to do for ubbt): Ca Ching
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 10/19/2007 12:14 PM
Why Thank You SD smile
I got one out of 3 in may search lol..

I shall have a play with that smile
Its more for keeping Archives available and not deleted
from there source in moments of tantrums lol..

Thanks again smile
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 10/19/2007 1:35 PM
Seems the first one is a bit buggy.
Ca Ching flew over my head lol


Got this one to work with out too much difficulty
http://www.jeroenwijering.com/?item=JW_FLV_Player

Reading this
http://www.jeroenwijering.com/extras/readme.html


Wow just found a wizard to make it easy smile
http://www.jeroenwijering.com/extras/wizard.html

Full Reply HTML Selected
And pasting in the Embedded Code
Changing the path to the Files i uploaded
And the File on my server i want to play.

Its clunky but works,
not as simple a Gizmo's Embedded stuff but for keeping a
archive it should do me fine smile
But what do you want for free lol

Ive probably gone round the world to do something simple
if you find a easier way or not as clunky please share smile
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 10/19/2007 2:10 PM
you could make an embed code to utilize it wink...
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 10/19/2007 3:25 PM
If i was that clever my friend i would,
but i'm not lol...

But there is a man that's ever so clever with this stuff
not a million miles away lol
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 10/19/2007 5:13 PM
Originally Posted by Gizmo
you could make an embed code to utilize it wink...
hehe smile
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 10/20/2007 1:16 AM
Lol whats the code you use to embed the file on your posts?
Posted By: blaaskaak Re: [7.x] Gizmo's Embedding BBCode - 10/20/2007 6:19 AM
We have a gizmo to make up those smile
Posted By: sirdude Re: [7.x] Gizmo's Embedding BBCode - 10/20/2007 7:07 AM
yah giz, quite post whoring and get to some regexes!!

speaking of which Linky Poo <-- geeks get it laugh
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 10/20/2007 3:26 PM
Well, i love mark, so i'll help him out if he gets back to me wink
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 10/24/2007 11:13 AM
Phew just check my e-mails and seen the "Loves mark"
well who could resist such an offer lol

Code



<embed src="http://www.mydomain.co.uk/pathtoplayer/flvplayer.swf" width="425" height="300"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="file=http://www.mydomain.co.uk/pathtomyvideo/myvideo.flv&displayheight=300" />

That's all i use Giz wink
I guess if you can come up with something then i will have a
dedicated directory for all video's smile

p.s Giz your kinda special to me too lol
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 10/24/2007 12:14 PM
Hi Mark
Code
			array( "#\[embed\]([a-zA-Z0-9-_]+)\[/embed\]#i", '<center><embed src="http://www.mydomain.co.uk/pathtoplayer/flvplayer.swf" width="425" height="350" 
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="file=http://www.mydomain.co.uk/pathtomyvideo/\1.flv&displayheight=350" /></center>' ),

[embed]videoid[/embed]
Bye Mark wink
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 10/26/2007 7:01 PM
Cheers Gizzy
Will give that a blast on the weekend if i have time.
Thanks for taking the time out smile

Will report back when up and running.
Posted By: Billy Mead Re: [7.x] Gizmo's Embedding BBCode - 11/30/2007 8:25 AM
Nothing makes you feel more dumb than not being able to follow simple directions.. twice.

Both times a clean attempt with virgin files and still, only the code displays. Ver 7.2.2 is what we run.

Any help at all would be great, even it’s a just a pointer.

B
Posted By: Billy Mead Re: [7.x] Gizmo's Embedding BBCode - 11/30/2007 8:25 AM
www.bostondancemusic.com/forum/
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 11/30/2007 8:46 AM
Could you link me to a specific post which isn't parsing data?
Posted By: Billy Mead Re: [7.x] Gizmo's Embedding BBCode - 12/03/2007 4:42 AM
http://www.bostondancemusic.com/forum/ubbthreads.php/ubb/showflat/Number/36993#Post36993

Thanks Mr. Gizmo.
Posted By: Ian_W Re: [7.x] Gizmo's Embedding BBCode - 12/03/2007 10:41 AM
access denied frown
Posted By: Billy Mead Re: [7.x] Gizmo's Embedding BBCode - 12/04/2007 6:47 AM
Thanks Ian. I really appreciate your help. Forgot you had to register to see that forum frown

http://www.bostondancemusic.com/forum/ubbthreads.php?ubb=showflat&Number=37056#Post37056
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 12/04/2007 7:09 AM
Your posting the embed code, all you need is the id:
[youtube]cebkHslx5oY[/youtube]

7.3 video tags will allow you to insert the URL to the video.
Posted By: Gizmo Re: [7.x] Gizmo's Embedding BBCode - 02/15/2008 3:18 PM
Initial post updated to show 7.3 links of the compatibility (these codes ala 7.3's customtag editor) and the 7.3 CustomTags thread (two separate threads).
Posted By: Mark_S Re: [7.x] Gizmo's Embedding BBCode - 02/19/2008 10:34 PM
This is a revelation in 7.3 i love it smile
Good work fellow Gizzz
Hi,

Is there any way to add autostart=false to the Flash embed for version 7.2.2?

Thanks
Yeh, simply take the current:
Code
			array( "#\[flash\]([0-9]+), ([0-9]+), ([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><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></center>' ),
array( "#\[flash\]([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><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></center>' ),

And change it to be:
Code
			array( "#\[flash\]([0-9]+), ([0-9]+), ([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><object width="\2" height="\1"><param name="movie" value="\3"></param><param name="autostart" value="false"></param><embed src="\3" type="application/x-shockwave-flash" width="\2" height="\1"></embed></object></center>' ),
array( "#\[flash\]([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><object width="425" height="350"><param name="movie" value="\1"></param><param name="autostart" value="false"></param><embed src="\1" type="application/x-shockwave-flash" width="425" height="350"></embed></object></center>' ),

The param addition should do the job for you smile.
Thanks!
© UBB.Developers