Previous Thread
Next Thread
Print Thread
Rate Thread
[7.3+] Gizmo's CustomTags
#316713 02/15/2008 8:04 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
Gizmo Online Tapedshut OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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' => '([[email protected]]+)',
'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, UBB.Sitemaps
1 member likes this: isaac
Sponsored Links
Re: [7.3+] Gizmo's CustomTags
Gizmo #316735 02/19/2008 3:45 PM
Joined: Nov 2003
Posts: 329
Beta Tester
Offline
Beta Tester
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....
Re: [7.3+] Gizmo's CustomTags
Mark_S #316739 02/19/2008 7:02 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
Gizmo Online Tapedshut OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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, UBB.Sitemaps
Re: [7.3+] Gizmo's CustomTags
Gizmo #317751 01/20/2009 6:56 PM
Joined: Nov 2003
Posts: 329
Beta Tester
Offline
Beta Tester
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....
Re: [7.3+] Gizmo's CustomTags
Mark_S #317752 01/20/2009 7:32 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
Gizmo Online Tapedshut OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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, UBB.Sitemaps
Sponsored Links
Re: [7.3+] Gizmo's CustomTags
Gizmo #317979 05/11/2009 5:46 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
Gizmo Online Tapedshut OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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, UBB.Sitemaps
Re: [7.3+] Gizmo's CustomTags
Gizmo #320643 11/28/2014 8:32 AM
Joined: Mar 2007
Posts: 94
Power User
Offline
Power User
Joined: Mar 2007
Posts: 94
do these still work in 7.5.8 ?


Re: [7.3+] Gizmo's CustomTags
Gizmo #320644 11/28/2014 8:38 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
Gizmo Online Tapedshut OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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, UBB.Sitemaps
Re: [7.3+] Gizmo's CustomTags
Gizmo #320645 11/28/2014 8:45 AM
Joined: Mar 2007
Posts: 94
Power User
Offline
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...



Re: [7.3+] Gizmo's CustomTags
Gizmo #320646 11/28/2014 11:10 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
Gizmo Online Tapedshut OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
#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, UBB.Sitemaps
Sponsored Links
Re: [7.3+] Gizmo's CustomTags
Gizmo #320647 11/28/2014 11:13 AM
Joined: Mar 2007
Posts: 94
Power User
Offline
Power User
Joined: Mar 2007
Posts: 94
oh, duh... I fail at reading. lol.

thanks!

Re: [7.3+] Gizmo's CustomTags
Gizmo #320648 11/28/2014 12:04 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
Gizmo Online Tapedshut OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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, UBB.Sitemaps
Re: [7.3+] Gizmo's CustomTags
Gizmo #320649 11/28/2014 12:17 PM
Joined: Jul 2001
Posts: 1,068
Likes: 38
coffee and code
Online Happy
coffee and code
Joined: Jul 2001
Posts: 1,068
Likes: 38
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 -

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


Attached screenshot:
[Linked Image]


Current developer of UBB.threads PHP Forum Software // 7.7.4 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: [7.3+] Gizmo's CustomTags
Gizmo #320650 11/28/2014 1:29 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
Gizmo Online Tapedshut OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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, UBB.Sitemaps
Re: [7.3+] Gizmo's CustomTags
Gizmo #320942 04/29/2015 5:04 AM
Joined: Nov 2003
Posts: 329
Beta Tester
Offline
Beta Tester
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
Gardener
Gardener
Sweden, Stockholm
Posts: 1,715
Joined: May 1999
Forum Statistics
Forums63
Topics37,543
Posts293,773
Members13,837
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 331
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 3
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,805
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 9
isaac 8
driv 2
temp 2
Morgan 1
Top Likes Received
isaac 38
Gizmo 10
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 4
Gizmo 2
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Snapshot build 20200602.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.056s Queries: 47 (0.017s) Memory: 3.4050 MB (Peak: 3.6785 MB) Data Comp: Zlib Server Time: 2020-06-04 05:48:46 UTC
Valid HTML 5 and Valid CSS