YouTube BBCode?

Get help developing custom BBCodes or request one.
User avatar
eddywatson
Registered User
Posts: 220
Joined: Wed Aug 30, 2006 8:35 pm
Location: England

Re: YouTube BBCode?

Post by eddywatson »

eddywatson wrote:ive a problem. i used that new BBcode

and sometimes it works fine, sometimes i need to add an " - " before the code i need to enter for the video
and sometimes i get an active X control option that makes the youtube video box go white with nothing in it.

any suggestions?

cheers

please anybody?
Image
OTHockey Forums
NextGate
Registered User
Posts: 10
Joined: Mon May 21, 2007 12:12 pm
Location: Caracas - Venezuela

Re: YouTube BBCode?

Post by NextGate »

Thanks... works perfect!

Greets!
polle
Registered User
Posts: 104
Joined: Fri Mar 31, 2006 10:18 am

Re: YouTube BBCode?

Post by polle »

Any Idea in how to do the same, but using

Code: Select all

[youtube]http://www.youtube.com/watch?v=Asm7WOi8ux8[/youtube]
Instead of

Code: Select all

[youtube]Asm7WOi8ux8[/youtube]
Because all the youtube videos already posted in my site are with the complete address.

Thanks.
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK

Re: YouTube BBCode?

Post by karlsemple »

The first example in this topic
Image
polle
Registered User
Posts: 104
Joined: Fri Mar 31, 2006 10:18 am

Re: YouTube BBCode?

Post by polle »

karlsemple wrote:The first example in this topic
Thanks karl.
CIMBI
Registered User
Posts: 1
Joined: Sun Jan 04, 2009 3:10 pm

Re: YouTube BBCode?

Post by CIMBI »

I know that this is an old thread but I developed better youtube BBcode allowing fullscreen, and working with any youtube LINK. for example http://uk.youtube.. , http://youtube.com......&related-..... or without http etc.
into BBcode use write

Code: Select all

[youtube]{TEXT1}youtube.com/watch?v={SIMPLETEXT}{TEXT2}[/youtube]
HTML code:

Code: Select all

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}&hl=en&fs=1" type="application/x-shockwave-flash" allowFullScreen="true" width="425" height="344"></embed></object>
;) ;) ;) Good luck with using
If there are any problems, I'll try to solve them ;) But u must send me Utube BBcode not working link
jaiak
Registered User
Posts: 43
Joined: Wed Oct 25, 2006 10:46 pm

Re: YouTube BBCode?

Post by jaiak »

Hello

Might it do this of automatic??

Can I replace a Youtube url, for example: http://www.youtube.com/watch?v=EznPrjbFoWk

For

Code: Select all

[youtube]EznPrjbFoWk[/youtube]
Before that the visitor's message be introduced in the database?

I want make this because are some people who cannot copy and paste the chunk of the code relating to the video of youtube tags. Then, when somebody paste a complete Youtube url in the post, the system change their code for the youtube BBcode and the video will show correctly. Do you understand me? Sorry for my english

Regards from Spain
codenamejames
Registered User
Posts: 16
Joined: Mon Apr 28, 2008 1:29 am

Re: YouTube BBCode?

Post by codenamejames »

Hi, I have had the youtube BBcode working in the past, but have recently bridged the forum into Joomla.
Now the existing youtube vids are squashed vertically.

This is what I've been using so far:

BBCode:

Code: Select all

[youtube]{URL}[/youtube]
HTML:

Code: Select all

<script language="Javascript">
var a = '{URL}';
var temp = new Array();
temp = a.split('?v=');
document.write('<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/' + temp[1] + '&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' + temp[1] + '&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object>');
</script>
Helpline:

Code: Select all

Usage: [youtube]URL TO VIDEO[/youtube]
Any ideas why I'm getting these squashed youtube videos?
Here's an example:
http://www.aero.org.nz/forum/16/91

Thanks in advance
Raven2099
Registered User
Posts: 5
Joined: Thu Sep 02, 2010 4:34 am

Re: YouTube BBCode?

Post by Raven2099 »

tried.. still not working

Code: Select all

http://legion.atwebpages.com/forum/viewtopic.php?f=3&t=15&p=16#p16
firefox compatable?
stevefoxnina
Registered User
Posts: 21
Joined: Mon Apr 18, 2011 6:06 am

Re: YouTube BBCode?

Post by stevefoxnina »

thanks guys mine is working
http://d2lord.com/phpbb/viewtopic.php?f ... dd60676779


*removed*
Last edited by Erik Frèrejean on Mon Apr 18, 2011 12:36 pm, edited 1 time in total.
Reason: Removed vulnerable BBCode
User avatar
Dragosvr92
Registered User
Posts: 1470
Joined: Sat Sep 12, 2009 7:27 am
Location: Romania
Name: Dragos Valentin Rădulescu

Re: YouTube BBCode?

Post by Dragosvr92 »

Dos anyone know a BBCode that uses both the URL And the video id ?
I doubt its possible but worths a ask :roll:
Formerly known as TheKiller
3.0| Avatar on Memberlist 1.0.3
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean

Re: YouTube BBCode?

Post by Erik Frèrejean »

@stevefoxnina,

I've deleted the posted BBCode from your post as it causes security issues. You should never use the {TEXT} token inside an HTML tag as it opens up various security problems.
Example:

Code: Select all

<a href="{TEXT}">
is wrong, rather use the {INTTEXT} or {SIMPLETEXT} tokens.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)
User avatar
MADMARY1
Registered User
Posts: 80
Joined: Fri Jun 18, 2004 12:52 am

Re: YouTube BBCode?

Post by MADMARY1 »

codenamejames wrote:Hi, I have had the youtube BBcode working in the past, but have recently bridged the forum into Joomla.
Now the existing youtube vids are squashed vertically.

This is what I've been using so far:

BBCode:

Code: Select all

[youtube]{URL}[/youtube]
HTML:

Code: Select all

<script language="Javascript">
var a = '{URL}';
var temp = new Array();
temp = a.split('?v=');
document.write('<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/' + temp[1] + '&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' + temp[1] + '&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object>');
</script>
Helpline:

Code: Select all

Usage: [youtube]URL TO VIDEO[/youtube]
Any ideas why I'm getting these squashed youtube videos?
Here's an example:
http://www.aero.org.nz/forum/16/91

Thanks in advance
Thanks, this is one that worked on all of my boards!!! EXCELLENT!
srbmaddie
Registered User
Posts: 5
Joined: Thu Mar 03, 2011 2:45 pm

Re: YouTube BBCode?

Post by srbmaddie »

what versions of phpbb is this compatible on?
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean

Re: YouTube BBCode?

Post by Erik Frèrejean »

Every
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

Return to “Custom BBCode Development and Requests”