UBB.Dev
Posted By: Gizmo [7.3+] Gizmo's CustomTags - 02/15/2008 3:04 PM
Well, I promised new tags did I not? Well, this thread will cover ALL of my new tags... The first post will be a killer as I won't be using attachments.

If you are looking for the Pre7.3 Embedding BBCode compatibility posting, you can find it here.

For boatloads of information of all of these tags and more, please see the 7.x posting of the Embedding BBCode

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)).

For other tags I've made for the Custom Tags system, please see these links:
Indent Text, Vimeo Video

What are the new options you ask? Well, I have a ton of them for you all... Some of them just didn't make the cut for 7.3 (such as embedding Videos from the ID or popularity concerns) and some of them I made mainly for myself and clients; but none the less, they're all here for you to use!

The New Tags ARE:
Video Tags
Code
[video:break]VideoID[/video] - Embeds a video from Break.com based on the VideoID
[video:google]VideoID[/video] - Embeds a video from Google Videos based on the VideoID
[video:liveleak]VideoID[/video] - Embeds a video from LiveLeak based on the Video ID
[video:myspace]VideoID[/video] - Embeds a video from MySpace based on the videoID
[video:revver]VideoID[/video] - Embeds a video from Revver based on the VideoID
[video:sdeluxe]VideoID[/video] - Embeds a video from SuperDeluxe (Cartoon Network) based on the VideoID
[video:yahoo]VideoID[/video] - Embeds a video from Yahoo Videos based on the VideoID
[video:youtube]VideoID[/video] - Embeds a video from YouTube based on the VideoID
[video:loowa]VideoID[/video] - Embeds a video from Loowa based on the VideoID

Lookup Tags
Code
[lookup:dictionary]Criteria[/lookup] - Allows a user to lookup a word in the dictionary (dictionary.com)
[lookup:encyclopedia]Criteria[/lookup] - Allows a user to lookup a word in the Encyclopedia (dictionary.com)
[lookup:thesaurus]Criteria[/lookup] - Allows a user to lookup a word in the Thesaurus (dictionary.com)
[lookup:urban]Criteria[/lookup] - Allows a user to lookup a word or phraise from the Urban Dictionary database
[lookup:wiki]Criteria[/lookup] - Allows a user to lookup a word or phraise from Wikipedia
[lookup:myspace]Criteria[/lookup] - Allows a user to link to a user on MySpace
[lookup:loowa]Criteria[/lookup] - Allows a user to link to a user on Loowa
[lookup:xbl]Criteria[/lookup] - Allows a user to link to a user on XBox Live
[lookup:halo]Criteria[/lookup] - Allows a user to link to a user on Bungie.net

Search Tags
Code
[search:google]Search Criteria[/search] - Allows a user to search Google
[search:googleimages]Search Criteria[/search] - Allows a user to search Google Images
[search:froogle]Search Criteria[/search] - Allows a user to search Froogle
[search:yahoo]Search Criteria[/search] - Allows a user to search Yahoo
[search:ask]Search Criteria[/search] - Allows a user to search Ask.com
[search:pricegrabber]Search Criteria[/search] - Allows a user to search PriceGrabber

Embed Tags
Code
[embed:fyrebug]ID[/embed] - Allows a user to embed a Fyrebug game
[embed:fyrebug]URL[/embed] - Allows a user to embed a Fyrebug game
[embed:flash]Height, Width, URL[/embed] - Allows a user to embed a flash applet, including dimentions
[embed:flash]URL[/embed] - Allows a user to embed a flash applet
[embed:photobucket]ID[/embed] - Allows a user to embed a PhotoBucket Widget
[embed:pbucket]ID[/embed] - Allows a user to embed a PhotoBucket Widget
[embed:podcast]URL[/embed] - Allows a user to embed a Podcast (see below for additional information)
[embed:webcam]ID[/embed] - Allows a user to embed a Stickam webcam feed
[embed:skype]ID[/embed] - Allows a user to display the Skype Status Widget

Misc Tags
Code
[description]Description Text[/description] - Allows a user to define a description (such as on videos)
[description]Description Text[/description] - Allows a user to define a description (such as on videos)
[anchor]name[/anchor] - Allows a user to define a bookmark on the page to link to that section in the URL


And the coding for them (for your CustomTags.txt):
Code
<?php
$export_tags = array (
0 =>
array (
'tag' => 'video: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' => 'video:google',
'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' => 'video: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' => 'video:myspace',
'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' => 'video: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' => 'video: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' => 'video:yahoo',
'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' => 'video: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' => 'video:loowa',
'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&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>',
),
9 =>
array (
'tag' => 'description',
'descrip' => 'Description',
'prompt' => 'Please enter the text to be defined as a description.',
'regex' => '(.+?)',
'markup' => '<strong>Description</strong>: \\\\1',
),
10 =>
array (
'tag' => 'desc',
'descrip' => 'Description',
'prompt' => 'Please enter the text to be defined as a description.',
'regex' => '(.+?)',
'markup' => '<strong>Description</strong>: \\\\1',
),
11 =>
array (
'tag' => 'lookup:dictionary',
'descrip' => 'Dictionary',
'prompt' => 'Please enter the term to have listed through Reference.com.',
'regex' => '([a-zA-Z0-9-_ ]+)',
'markup' => '<a href=\\"http://dictionary.reference.com/browse/\\\\1\\">\\\\1</a>',
),
12 =>
array (
'tag' => 'lookup:encyclopedia',
'descrip' => 'Encyclopedia',
'prompt' => 'Please enter the term to have listed through Reference.com.',
'regex' => '([a-zA-Z0-9-_ ]+)',
'markup' => '<a href=\\"http://www.reference.com/search?q=\\\\1\\">\\\\1</a>',
),
13 =>
array (
'tag' => 'lookup:thesaurus',
'descrip' => 'Thesaurus',
'prompt' => 'Please enter the term to have listed through Reference.com.',
'regex' => '([a-zA-Z0-9-_ ]+)',
'markup' => '<a href=\\"http://thesaurus.reference.com/browse/\\\\1\\">\\\\1</a>',
),
14 =>
array (
'tag' => 'lookup:urban',
'descrip' => 'Urban Dictionary',
'prompt' => 'Please enter the term to have listed through the Urban Dictionary.',
'regex' => '([a-zA-Z0-9-_ ]+)',
'markup' => '<a href=\\"http://www.urbandictionary.com/define.php?term=\\\\1\\">\\\\1</a>',
),
15 =>
array (
'tag' => 'lookup: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>',
),
16 =>
array (
'tag' => 'lookup: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>',
),
17 =>
array (
'tag' => 'lookup: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>',
),
18 =>
array (
'tag' => 'lookup:xbl',
'descrip' => 'XBL Gamer Tag',
'prompt' => 'Please enter the XBL Gamer Tag.',
'regex' => '([a-zA-Z0-9-_ ]+)',
'markup' => '<a href=\\"http://live.xbox.com/en-US/profile/profile.aspx?pp=0&GamerTag=\\\\1\\">\\\\1</a>',
),
19 =>
array (
'tag' => 'lookup:halo',
'descrip' => 'Bungie.net Profile',
'prompt' => 'Please enter the XBL Gamer Tag.',
'regex' => '([a-zA-Z0-9-_ ]+)',
'markup' => '<a href=\\"http://www.bungie.net/Stats/Halo3/RankHistory.aspx?player=\\\\1\\">\\\\1</a>',
),
20 =>
array (
'tag' => 'search: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>',
),
21 =>
array (
'tag' => 'search: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>',
),
22 =>
array (
'tag' => 'search: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>',
),
23 =>
array (
'tag' => 'search:yahoo',
'descrip' => 'Yahoo Search',
'prompt' => 'Please enter the term to have searched through Yahoo.',
'regex' => '([a-zA-Z0-9-_ ]+)',
'markup' => '<a href=\\"http://search.yahoo.com/search?p=\\\\1\\">\\\\1</a>',
),
24 =>
array (
'tag' => 'search:ask',
'descrip' => 'Ask.com Search',
'prompt' => 'Please enter the term to have searched through Ask.com.',
'regex' => '([a-zA-Z0-9-_ ]+)',
'markup' => '<a href=\\"http://www.ask.com/web?q=\\\\1\\">\\\\1</a>',
),
25 =>
array (
'tag' => 'search: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>',
),
26 =>
array (
'tag' => 'embed:fyrebug',
'descrip' => 'Fyrebug Game',
'prompt' => 'Please enter the ID of the game you wish to embed.',
'regex' => '([a-zA-Z0-9-_ ]+)',
'markup' => '<object width=\\"425\\" height=\\"350\\"><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=\\"350\\"></embed></object>',
),
27 =>
array (
'tag' => 'embed:fyrebug',
'descrip' => 'Fyrebug Game (via URL)',
'prompt' => 'Please enter the URL of the game you wish to embed.',
'regex' => 'http://www\\\\.fyrebug\\\\.com/displaygame\\\\.php\\\\?gameid=(.+?)',
'markup' => '<object width=\\"425\\" height=\\"350\\"><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=\\"350\\"></embed></object>',
),
28 =>
array (
'tag' => 'embed: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>',
),
29 =>
array (
'tag' => 'embed: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>',
),
30 =>
array (
'tag' => 'embed: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>',
),
31 =>
array (
'tag' => 'embed: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>',
),
32 =>
array (
'tag' => 'embed: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&autostart=false&backcolor=0x000000&frontcolor=0xFFFFFF&lightcolor=0xFFFFFF" /></center>',
),
33 =>
array (
'tag' => 'embed: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>',
),
34 =>
array (
'tag' => 'embed: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>',
),
35 =>
array (
'tag' => 'anchor',
'descrip' => 'Anchor',
'prompt' => 'Please enter the name for your anchor.',
'regex' => '([a-zA-Z0-9-_]+)',
'markup' => '<a name="\\\\1"></a>',
),
);
?>
Posted By: Mark_S Re: [7.3+] Gizmo's CustomTags - 02/19/2008 10:45 PM
What's with the look up and search tags
do they work?

Just never seen them before ?
Posted By: Gizmo Re: [7.3+] Gizmo's CustomTags - 02/20/2008 2:02 AM
Basically they turn:
Code
[lookup:dictionary]gizmo[/lookup]

Into a link to said repository on that subject, which would look like:
gizmo
Posted By: Mark_S Re: [7.3+] Gizmo's CustomTags - 01/21/2009 1:56 AM
I'm just getting around to sorting these again in 7.4.2
and for the first time i'm adding liveleak.

Its showing the box, and saying click to watch video
but nothing shows? I see in the status bar connecting to liveleak
and that's it.

Any idea's or updated Tag?

Thanks in advance wink
Posted By: Gizmo Re: [7.3+] Gizmo's CustomTags - 01/21/2009 2:32 AM
I'll see about getting it updated when i get some time within the next two nights...
Posted By: Gizmo Re: [7.3+] Gizmo's CustomTags - 05/12/2009 12:46 AM
Added the link to the Vimeo Video CustomTag to the main post.
Posted By: badfrog Re: [7.3+] Gizmo's CustomTags - 11/28/2014 3:32 PM
do these still work in 7.5.8 ?

Posted By: Gizmo Re: [7.3+] Gizmo's CustomTags - 11/28/2014 3:38 PM
Unless an author drastically changed their source embed code; in which case it wouldn't be real difficult to adjust.
Posted By: badfrog Re: [7.3+] Gizmo's CustomTags - 11/28/2014 3:45 PM
is there some other way to embed video from the "full reply" menu that I am missing?

using your custom tags gives me the menu, but the end result is as follows...


Posted By: Gizmo Re: [7.3+] Gizmo's CustomTags - 11/28/2014 6:10 PM
#7 only accepts the video ID:
Code
  7 => 
array (
'tag' => 'video: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>',

If you want to grab the URL you'd:
Code
  7 => 
array (
'tag' => 'video:youtube',
'descrip' => 'YouTube Video',
'prompt' => 'Enter the YouTube Video id only (and not the entire URL)',
'regex' => '(|.*youtu\.be/|.*v=)([a-zA-Z0-9_-]{8,12})(|&.*)',
'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>',
Posted By: badfrog Re: [7.3+] Gizmo's CustomTags - 11/28/2014 6:13 PM
oh, duh... I fail at reading. lol.

thanks!
Posted By: Gizmo Re: [7.3+] Gizmo's CustomTags - 11/28/2014 7:04 PM
I believe you'll also need to adjust the \\1 to \\2 in the markup.
Posted By: isaac Re: [7.3+] Gizmo's CustomTags - 11/28/2014 7:17 PM
If you want your YouTube entry code to be a bit more flexible and allow EITHER the VideoID or the entire URL use the following code

User prompt hint from text editor:
Code
YouTube ID; eg: xxxxxxxxxx (or http://www.youtube.com/watch?v=xxxxxxxxxx)

Matching regex:
Code
(|.*youtu\.be/|.*v=)([a-zA-Z0-9_-]{8,12})(|&.*)

Resulting markup:
Code
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/\\2"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/\\2"
type="application/x-shockwave-flash" wmode="transparent"
width="425" height="350">
</embed>
</object>

---

Using the above code, this video,
https://www.youtube.com/watch?v=mVmBL8B-In0

can be embedded with either the full url -
Code
[youtube]
[/youtube]

or using just the video id -
Code
[youtube]mVmBL8B-In0[/youtube]


Attached screenshot:
[Linked Image]

Attached picture YOUTUBE.PNG
Posted By: Gizmo Re: [7.3+] Gizmo's CustomTags - 11/28/2014 8:29 PM
Isaacs with the video:youtube tag:

Posted By: Mark_S Re: [7.3+] Gizmo's CustomTags - 04/29/2015 12:04 PM
updated youtube tags lol

how slow am i lol
© UBB.Developers