Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (id242), 31 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 01/12/12
Posts: 3
Top Posters (30 Days)
Ruben 122
SD 89
Gizmo 65
gliderdad 33
Dunny 31
Mark S 27
Iann128 19
driv 18
dbremer 16
Steve C 15
Latest Photos
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Gizzo Marx
Page 1 of 2 1 2 >
Topic Options
#179319 - 02/24/07 01:52 AM Youtube
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Can you embed Youtube videos in threads 7?

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

Thanks
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#179322 - 02/24/07 04:28 AM Re: Youtube [Re: willing]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14896
Loc: Portland, OR; USA
You can with Threads 7.0 and 7.1 though the ubbcode addon at UBBDev.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#179323 - 02/24/07 04:31 AM Re: Youtube [Re: Gizmo]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
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
Top
#179325 - 02/24/07 06:14 AM Re: Youtube [Re: willing]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14896
Loc: Portland, OR; USA
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
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#179326 - 02/24/07 06:18 AM Re: Youtube [Re: Gizmo]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14896
Loc: Portland, OR; USA
I just posted my latest set of bbcodes here which have been severely tested and beaten for months lol
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#179327 - 02/24/07 06:26 AM Re: Youtube [Re: Gizmo]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Thank you.
Last question for now ;\)

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

Thanks
Top
#179368 - 02/24/07 04:51 PM Re: Youtube [Re: willing]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14896
Loc: Portland, OR; USA
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.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#181736 - 03/29/07 12:50 PM Re: Youtube [Re: Gizmo]
ajwharton Offline
journeyman
Registered: 03/01/07
Posts: 50
YouTube IDs can contain underscores. The regex validation for youtube is ([a-zA-Z0-9-]+) and should be changed to ([_a-zA-Z0-9-]+).
Top
#181737 - 03/29/07 01:29 PM Re: Youtube [Re: ajwharton]
ajwharton Offline
journeyman
Registered: 03/01/07
Posts: 50
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>' ),
Top
#181747 - 03/29/07 06:19 PM Re: Youtube [Re: ajwharton]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14896
Loc: Portland, OR; USA
The latest version of my Embedding Code accounts for underlines and underscores in YouTube videos.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Tools for comparing two db schemas?
by cascadeclimbers
06:31 PM
Moderator notification issue
by Flanuva
02/02/12 11:22 AM
how do I regain control of my HACKED site?
by VaGunTrader
01/28/12 11:00 PM
PayPal Error Message
by Outdoorking
01/28/12 07:16 AM
Top posters format
by dbremer
01/25/12 05:00 PM
Forum Stats
10190 Members
36 Forums
33654 Topics
180824 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image