Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBSkins.com
Who's Online
1 registered (Ruben), 11 Guests and 32 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/20/08
Posts: 8
Top Posters (30 Days)
Ruben 114
Gizmo 39
Rick 39
JAISP 22
24hourcampfire 18
pinkmelon 16
Daryl Fawcett 14
Ian 14
FordDoctor 13
bakerzdosen 12
Latest Photos
Gizmo goes Locks of Love...
Sleepy eyes
Hang Time
Our get away hobby
This is a test
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#179319 - 02/23/07 10:52 PM Youtube
willing Offline
addict

Registered: 02/12/07
Posts: 617
Can you embed Youtube videos in threads 7?

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

Thanks

Top
#179322 - 02/24/07 01:28 AM Re: Youtube [Re: willing]
Gizmo Offline


***

Registered: 06/04/06
Posts: 12826
Loc: Portland, OR; USA
You can with Threads 7.0 and 7.1 though the ubbcode addon at UBBDev.
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic

Top
#179323 - 02/24/07 01:31 AM Re: Youtube [Re: Gizmo]
willing Offline
addict

Registered: 02/12/07
Posts: 617
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 03:14 AM Re: Youtube [Re: willing]
Gizmo Offline


***

Registered: 06/04/06
Posts: 12826
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
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic

Top
#179326 - 02/24/07 03:18 AM Re: Youtube [Re: Gizmo]
Gizmo Offline


***

Registered: 06/04/06
Posts: 12826
Loc: Portland, OR; USA
I just posted my latest set of bbcodes here which have been severely tested and beaten for months lol
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic

Top
#179327 - 02/24/07 03:26 AM Re: Youtube [Re: Gizmo]
willing Offline
addict

Registered: 02/12/07
Posts: 617
Thank you.
Last question for now ;\)

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

Thanks

Top
#179368 - 02/24/07 01:51 PM Re: Youtube [Re: willing]
Gizmo Offline


***

Registered: 06/04/06
Posts: 12826
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.
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic

Top
#181736 - 03/29/07 09:50 AM 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 10:29 AM 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 03:19 PM Re: Youtube [Re: ajwharton]
Gizmo Offline


***

Registered: 06/04/06
Posts: 12826
Loc: Portland, OR; USA
The latest version of my Embedding Code accounts for underlines and underscores in YouTube videos.
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic

Top
Page 1 of 2 1 2 >


Moderator:  AllenAyres, Gizmo, Harold, Ian, Ron M, usrbingeek 
Shout Box

Today's Birthdays
wmearn
Recent Topics
Suffestion: Donation Feature and Amount Raised Graph
by sb
Today at 01:25 PM
Backups via Control Panel
by JAISP
Today at 10:55 AM
Gallery Permissions
by Willzter
07/01/09 08:50 PM
SERIOUS EMERGENCY. NEED A QUICK ANSWER STAT
by 24hourcampfire
07/01/09 02:18 PM
What do I have to do to have a forum where only users with 200 plus post can post?
by pinkmelon
07/01/09 02:06 PM
Forum Stats
4444 Members
33 Forums
31488 Topics
162449 Posts

Max Online: 978 @ 06/24/07 08:19 PM