Previous Thread
Next Thread
Print Thread
Hop To
#251813 12/29/2012 10:41 AM
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
Youtube no longer gives the long link as an option, can that code please be redone to included the code youtube gives us?

AS well as one for godtube and Vimeo.

please...


http://clubadventist.com/forums

No longer following the carrot
Stan #251858 12/30/2012 5:27 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Well, this will work so long as the URL is:
https://www.youtube.com/watch?v=xxxxxxxxxx

It's when you add extra trash in the URL that it'll die; you could have two and have the second filter out the trash, or you could have a better regex drawn up to filter the trash...

Custom Tag
Code
video:youtube

Description
Code
YouTube Video

User Prompt
Code
YouTube URL; eg: https://www.youtube.com/watch?v=xxxxxxxxxx

Matching Regex
Code
(.*)://(.*).youtube.com/watch\?v=(.*)

Markup
Code
<iframe width="425" height="350" src="http://www.youtube.com/embed/amKJZpxXhkI?list=UUa6vGFO9ty8v5KZJXQxdhaw" frameborder="0" allowfullscreen></iframe>


A matching regex to filter out trash for a second code would be:
Code
(.*)://(.*).youtube.com/watch\?v=(.*)&(.*)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Stan #251859 12/30/2012 5:28 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I have an old one for Vimeo here at UBBDev.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Stan #251860 12/30/2012 5:32 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I didn't test it since it seems to clone an old Youtube, but the GodTube should work as:

Custom Tag
Code
video:godtube

Description
Code
GODTube Video

User Prompt
Code
GODTube URL; eg: http://www.godtube.com/watch/?v=xxxxxxxxxx

Matching Regex
Code
(.*)://(.*).godtube.com/watch/\?v=(.*)

Markup
Code
<script type="text/javascript" src="http://www.godtube.com/embed/source/\\1.js?w=425&h=350&ap=true&sl=true&title=true"></script>


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Stan #251862 12/30/2012 5:49 PM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1

Stan #251873 12/31/2012 2:33 AM
Joined: Jun 2006
Posts: 106
member
member
Joined: Jun 2006
Posts: 106
Anyone have one for Ustream?

Code
<iframe width="480" height="302" src="http://www.ustream.tv/embed/6505757?v=3&amp;wmode=direct" scrolling="no" frameborder="0" style="border: 0px none transparent;">    </iframe>
<br /><a href="http://www.ustream.tv/" style="padding: 2px 0px 4px; width: 400px; background: #ffffff; display: block; color: #000000; font-weight: normal; font-size: 10px; text-decoration: underline; text-align: center;" target="_blank">Live stream videos at Ustream</a>


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Geoff), 1,018 guests, and 215 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)