Previous Thread
Next Thread
Print Thread
Hop To
#179319 02/24/2007 2:52 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Can you embed Youtube videos in threads 7?

(Actually can it be done in classic 6.7.2 as well?)

Thanks

willing #179322 02/24/2007 5:28 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
You can with Threads 7.0 and 7.1 though the ubbcode addon 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!
Gizmo #179323 02/24/2007 5:31 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Thanks. That wouldn't post a "security" problem or anything else possibly nasty would it? What would the user enter to embed something like that in a post?

Can you should me a page anywhere where this is in action?

Thanks

willing #179325 02/24/2007 7:14 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
The embed bbcodes actually just read a string of text, so the user would simply enter:
[youtube]youtubeid[/youtube]

This is a GREAT security measure, as they can embed content to your site without being allowed to enter html. The bbcodes at ubbdev cannot allow a user to do anything mallicous, as it only allows text and numbers (well, mine does as it uses a regex to filter what is entered for increased security).

I have the bbcodes on my forum, a specific posting:
Video: North American Union Huge step in world government and your enslavement


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!
Gizmo #179326 02/24/2007 7:18 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I just posted my latest set of bbcodes here which have been severely tested and beaten for months lol


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!
Gizmo #179327 02/24/2007 7:26 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Thank you.
Last question for now wink

Are these codes really easy to implement (for someone not particularly technical?)

Thanks

willing #179368 02/24/2007 5:51 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
edit libs/ubbthreads.inc.php
Find:
Code
			// You don't see the next line

Then add them after that line; any you wish to use.


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!
Gizmo #181736 03/29/2007 12:50 PM
Joined: Mar 2007
Posts: 26
A
journeyman
journeyman
A Offline
Joined: Mar 2007
Posts: 26
YouTube IDs can contain underscores. The regex validation for youtube is ([a-zA-Z0-9-]+) and should be changed to ([_a-zA-Z0-9-]+).

ajwharton #181737 03/29/2007 1:29 PM
Joined: Mar 2007
Posts: 26
A
journeyman
journeyman
A Offline
Joined: Mar 2007
Posts: 26
This'll do break.com

Code
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>' ),

ajwharton #181747 03/29/2007 6:19 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
The latest version of my Embedding Code accounts for underlines and underscores in YouTube videos.


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!
Gizmo #181771 03/30/2007 12:12 PM
Joined: Mar 2007
Posts: 26
A
journeyman
journeyman
A Offline
Joined: Mar 2007
Posts: 26
Thanks. I used your stuff as a template and added break.com and jibjab.com embedded video. We have a lot of jokesters...

ajwharton #181776 03/30/2007 6:18 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
i tend to add to it a couple times a month, when I find new services or have a request to add something new wink


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!
Gizmo #182853 04/19/2007 3:05 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Originally Posted by Gizmo
edit libs/ubbthreads.inc.php
Find:
Code
			// You don't see the next line

Then add them after that line; any you wish to use.

Hi there I'm trying to find this but without success? Any pointers (line number?)

Thank you

willing #182855 04/19/2007 3:15 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Just search for "// You don't see the next line" vs the tabs in front of it. It's there, just looked at it in the 7.1.1 release.


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!
Gizmo #182858 04/19/2007 3:24 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Got it. smile

willing #182935 04/21/2007 1:02 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Got it and installed - and YouTube works fine. But for some reason the Google vid doesn't work.... the black space appears with the bottom menu, but nothing moving even if I click play.....

I posted the following into 7.1.1 (as found elsewhere, sorry it doesn't seem to be pasting very cleanly here!)
Anyone any ideas

// 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( "#\[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( "#\[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( "#\[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>' ),

Last edited by willing; 04/21/2007 1:03 AM.
willing #182939 04/21/2007 4:12 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Please seek help for modificatiosn on the modifications page at ubbdev; this site is NOT for support of 3rd party addons; in fact, installing 3rd party addons is against your support agreement with groupee.


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!
Gizmo #182941 04/21/2007 4:34 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Oh ok! smile Thanks for reminding me!


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
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 919 guests, and 149 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)