Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
[7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3) #313540 03/14/2007 4:34 PM
Joined: Jan 2000
Posts: 5,788
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,788
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\]([[email protected]]+)\[/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 Files
vidembed.gif (168 Bytes, 186 downloads)
vidembedmarkuppanel.txt (9.74 KB, 68 downloads)
SHA1: 658a87aafcfb7a761a6c443a7c0c7500b531822d
vidembed.jpg (22.06 KB, 184 downloads)
vidembedmarkuppanel2.txt (8.97 KB, 48 downloads)
SHA1: 42ba18bf9687833dd15123538535f395b323a255

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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313541 03/14/2007 4:53 PM
Joined: Jan 2000
Posts: 5,788
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,788
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...


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313543 03/14/2007 6:03 PM
Joined: Nov 2001
Posts: 29
Cuervo Offline
User
Offline
User
Joined: Nov 2001
Posts: 29
zOMG no markup code /hint Gizmo


-Cuervo
zOMG and oNOES
Re: [7.x] Gizmo's Embedding BBCode [Re: Cuervo] #313544 03/14/2007 6:14 PM
Joined: Nov 2003
Posts: 329
Mark_S Offline
Beta Tester
Offline
Beta Tester
Joined: Nov 2003
Posts: 329
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/


BOOM 7.6.+ rocks....
Re: [7.x] Gizmo's Embedding BBCode [Re: Cuervo] #313546 03/14/2007 8:20 PM
Joined: Jan 2000
Posts: 5,788
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,788
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>' ),



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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313547 03/15/2007 3:02 AM
Joined: Nov 2003
Posts: 329
Mark_S Offline
Beta Tester
Offline
Beta Tester
Joined: Nov 2003
Posts: 329
Top Man Top Man

Cheers Gizmo will test it later smile


BOOM 7.6.+ rocks....
Re: [7.x] Gizmo's Embedding BBCode [Re: Gizmo] #313548 03/15/2007 3:47 AM
Joined: Nov 2003
Posts: 329
Mark_S Offline
Beta Tester
Offline
Beta Tester
Joined: Nov 2003
Posts: 329
Works like a charm the dailymotion..


BOOM 7.6.+ rocks....
Re: [7.x] Gizmo's Embedding BBCode [Re: Mark_S] #313552 03/15/2007 3:01 PM
Joined: Jan 2000
Posts: 5,788
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,788
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...


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313562 03/16/2007 6:07 AM
Joined: Feb 2002
Posts: 2,286
Ian_W Offline
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286
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


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: [7.x] Gizmo's Embedding BBCode [Re: Ian_W] #313571 03/16/2007 3:42 PM
Joined: Jan 2000
Posts: 5,788
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,788
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.


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313574 03/16/2007 4:37 PM
Joined: Nov 2003
Posts: 329
Mark_S Offline
Beta Tester
Offline
Beta Tester
Joined: Nov 2003
Posts: 329
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


BOOM 7.6.+ rocks....
Re: [7.x] Gizmo's Embedding BBCode [Re: Mark_S] #313580 03/17/2007 1:20 AM
Joined: Jan 2000
Posts: 5,788
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,788
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...


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313602 03/18/2007 5:40 AM
Joined: Feb 2002
Posts: 2,286
Ian_W Offline
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286
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.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: [7.x] Gizmo's Embedding BBCode [Re: Ian_W] #313608 03/18/2007 3:15 PM
Joined: Jan 2000
Posts: 5,788
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,788
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...


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313617 03/19/2007 5:08 AM
Joined: Feb 2002
Posts: 2,286
Ian_W Offline
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286
I know - that is why there should be an alternative - maybe a dropdown?


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: [7.x] Gizmo's Embedding BBCode [Re: Ian_W] #313630 03/19/2007 3:26 PM
Joined: Jan 2000
Posts: 5,788
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,788
Sure, if you know javascript go ahead... wink...


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313656 03/20/2007 4:19 PM
Joined: Jan 2003
Posts: 125
chillin Offline
Journeyman
Offline
Journeyman
Joined: Jan 2003
Posts: 125
Ouch, no props to the original YouTube mod!? tipsy

Re: [7.x] Gizmo's Embedding BBCode [Re: chillin] #313657 03/20/2007 4:44 PM
Joined: Jan 2000
Posts: 5,788
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,788
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.


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313701 03/24/2007 2:56 AM
Joined: Nov 2003
Posts: 329
Mark_S Offline
Beta Tester
Offline
Beta Tester
Joined: Nov 2003
Posts: 329
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


BOOM 7.6.+ rocks....
Re: [7.x] Gizmo's Embedding BBCode [Re: Mark_S] #313707 03/24/2007 4:15 PM
Joined: Jan 2000
Posts: 5,788
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,788
Lol how do you look those up mark? sounds fun :x


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313736 03/29/2007 2:04 AM
Joined: Nov 2003
Posts: 329
Mark_S Offline
Beta Tester
Offline
Beta Tester
Joined: Nov 2003
Posts: 329
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.


BOOM 7.6.+ rocks....
Re: [7.x] Gizmo's Embedding BBCode [Re: Mark_S] #313737 03/29/2007 3:12 AM
Joined: Jan 2000
Posts: 5,788
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,788
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


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313738 03/29/2007 3:48 AM
Joined: Feb 2002
Posts: 2,286
Ian_W Offline
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286
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


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: [7.x] Gizmo's Embedding BBCode [Re: Gizmo] #313743 03/29/2007 5:06 PM
Joined: Jan 2000
Posts: 5,788
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,788
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.


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313995 04/28/2007 9:06 PM
Joined: Jan 2000
Posts: 5,788
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,788
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.


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #313996 04/29/2007 2:40 AM
Joined: Feb 2007
Posts: 329
blaaskaak Offline
Yarp™
Offline
Yarp™
Joined: Feb 2007
Posts: 329
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

Re: [7.x] Gizmo's Embedding BBCode [Re: blaaskaak] #313997 04/29/2007 4:57 AM
Joined: Jan 2000
Posts: 5,788
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,788
'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


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #314050 05/08/2007 8:18 PM
Joined: Jan 2000
Posts: 5,788
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,788
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>' ),


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #314194 05/24/2007 2:19 PM
Joined: Feb 2007
Posts: 329
blaaskaak Offline
Yarp™
Offline
Yarp™
Joined: Feb 2007
Posts: 329
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.

Re: [7.x] Gizmo's Embedding BBCode [Re: blaaskaak] #314201 05/24/2007 11:44 PM
Joined: Jan 2000
Posts: 5,788
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,788
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.


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #314312 06/04/2007 4:04 AM
Joined: Nov 2003
Posts: 482
sirdude Offline
Enthusiast
Offline
Enthusiast
Joined: Nov 2003
Posts: 482
nice

Re: [7.x] Gizmo's Embedding BBCode [Re: Gizmo] #314378 06/11/2007 12:31 PM
Joined: Oct 2002
Posts: 105
ehm Offline
Journeyman
Offline
Journeyman
Joined: Oct 2002
Posts: 105
Great product. Work's perfect on my forum smile
thank you Gizmo smile

Re: [7.x] Gizmo's Embedding BBCode [Re: ehm] #314657 07/09/2007 6:37 PM
Joined: Nov 2003
Posts: 329
Mark_S Offline
Beta Tester
Offline
Beta Tester
Joined: Nov 2003
Posts: 329
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


BOOM 7.6.+ rocks....
Re: [7.x] Gizmo's Embedding BBCode [Re: Mark_S] #314658 07/09/2007 6:50 PM
Joined: Nov 2003
Posts: 329
Mark_S Offline
Beta Tester
Offline
Beta Tester
Joined: Nov 2003
Posts: 329
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


BOOM 7.6.+ rocks....
Re: [7.x] Gizmo's Embedding BBCode [Re: Mark_S] #314659 07/09/2007 7:18 PM
Joined: Nov 2003
Posts: 482
sirdude Offline
Enthusiast
Offline
Enthusiast
Joined: Nov 2003
Posts: 482
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

Re: [7.x] Gizmo's Embedding BBCode [Re: sirdude] #314660 07/09/2007 7:37 PM
Joined: Jan 2000
Posts: 5,788
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,788
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.




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.x] Gizmo's Embedding BBCode [Re: Gizmo] #314661 07/10/2007 3:31 AM
Joined: Nov 2003
Posts: 329
Mark_S Offline
Beta Tester
Offline
Beta Tester
Joined: Nov 2003
Posts: 329
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.


BOOM 7.6.+ rocks....
Re: [7.x] Gizmo's Embedding BBCode [Re: Mark_S] #314664 07/10/2007 3:55 AM
Joined: Jan 2000
Posts: 5,788
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,788
lol, not a problem wink... figured you'd have asked me on AIM about this vs having me stumble in half drunk


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.x] Gizmo's Embedding BBCode [Re: Gizmo] #314665 07/10/2007 9:11 AM
Joined: Nov 2003
Posts: 329
Mark_S Offline
Beta Tester
Offline
Beta Tester
Joined: Nov 2003
Posts: 329
On me laptop with out msn settings frown
There's always next time lol


BOOM 7.6.+ rocks....
Re: [7.x] Gizmo's Embedding BBCode [Re: Gizmo] #314690 07/12/2007 1:42 AM
Joined: Jan 2000
Posts: 5,788
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,788
Code updated to remove the additional \ in the pbucket tag which wasn't working for some users.


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
Page 1 of 4 1 2 3 4

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
Basil Fawlty
Basil Fawlty
New Mexico
Posts: 139
Joined: October 2001
Forum Statistics
Forums63
Topics37,523
Posts293,714
Members13,831
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,788
Greg Hard 4,625
Top Posters(30 Days)
isaac 13
Gizmo 1
Today's Statistics
Currently Online 193
Topics Created 0
Posts Made 1
Users Online 2
Birthdays 6
Top Likes Received (All Time)
isaac 27
Brett 7
Morgan 2
DCPhil 1
Slaz 1
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

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

PHP: 5.4.45 Page Time: 0.121s Queries: 97 (0.050s) Memory: 3.6636 MB (Peak: 4.1614 MB) Data Comp: Zlib Server Time: 2019-12-06 20:21:43 UTC
Valid HTML 5 and Valid CSS