Previous Thread
Next Thread
Print Thread
Rate Thread
#316713 02/15/2008 8:04 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
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>',
),
);
?>

Last edited by Gizmo; 05/11/2009 5:46 PM.

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
1 member likes this: isaac
Sponsored Links
Joined: Nov 2003
Posts: 329
Beta Tester
Beta Tester
Offline
Joined: Nov 2003
Posts: 329
What's with the look up and search tags
do they work?

Just never seen them before ?


BOOM 7.6.+ rocks....
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
Basically they turn:
Code
[lookup:dictionary]gizmo[/lookup]

Into a link to said repository on that subject, which would look like:
gizmo


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
Joined: Nov 2003
Posts: 329
Beta Tester
Beta Tester
Offline
Joined: Nov 2003
Posts: 329
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


BOOM 7.6.+ rocks....
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'll see about getting it updated when i get some time within the next two nights...


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
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
Added the link to the Vimeo Video CustomTag to the main post.


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
Joined: Mar 2007
Posts: 94
Power User
Power User
Joined: Mar 2007
Posts: 94
do these still work in 7.5.8 ?


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
Unless an author drastically changed their source embed code; in which case it wouldn't be real difficult to adjust.


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
Joined: Mar 2007
Posts: 94
Power User
Power User
Joined: Mar 2007
Posts: 94
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...



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
#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>',


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
Joined: Mar 2007
Posts: 94
Power User
Power User
Joined: Mar 2007
Posts: 94
oh, duh... I fail at reading. lol.

thanks!

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 believe you'll also need to adjust the \\1 to \\2 in the markup.


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
Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
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]


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
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
Isaacs with the video:youtube tag:



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
Joined: Nov 2003
Posts: 329
Beta Tester
Beta Tester
Offline
Joined: Nov 2003
Posts: 329
updated youtube tags lol

how slow am i lol


BOOM 7.6.+ rocks....

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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
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
WebGuy 2
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)