Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (Mike L, Iann128, JimUK), 47 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/02/04
Posts: 195
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
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 Offline

Registered: 06/05/06
Posts: 14994
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 Offline

Registered: 06/05/06
Posts: 14994
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 Offline

Registered: 06/05/06
Posts: 14994
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 Offline

Registered: 06/05/06
Posts: 14994
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 Offline

Registered: 06/05/06
Posts: 14994
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
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181698 Posts

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