YouTube Mod

Get help developing custom BBCodes or request one.
User avatar
twfansite
Registered User
Posts: 6
Joined: Tue May 22, 2007 6:59 pm

YouTube Mod

Post by twfansite »

I had seen where there is a mod like this for older versions , but was wondering if anybody planned on making one for 3.0. Thanks :D

User avatar
DualFusion
Registered User
Posts: 476
Joined: Tue Oct 24, 2006 9:53 pm
Location: A forum
Contact:

Re: YouTube Mod

Post by DualFusion »

I hope you know how to add bbcodes :P

Youtube:

BBCODE:

Code: Select all

[youtube]{TEXT}[/youtube]
HTML REPLACEMENT:

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

Xabi
Registered User
Posts: 460
Joined: Wed May 23, 2007 9:04 am

Re: YouTube Mod

Post by Xabi »

We need a code for the full youtube URL, not only the video ID. phpBB3 RC1 parses the URL before BBCode and it shows a clickable Youtube URL instead if the video. We need another solution.

User avatar
twfansite
Registered User
Posts: 6
Joined: Tue May 22, 2007 6:59 pm

Re: YouTube Mod

Post by twfansite »

DualFusion wrote:I hope you know how to add bbcodes :P

Youtube:

BBCODE:

Code: Select all

[youtube]{TEXT}[/youtube]
HTML REPLACEMENT:

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

Hi DualFusion ,

I actually thought I did know how to add bbcodes..haha.I run like three different board scripts and they are all different in how you set them up .lol

Anyway , I wanted to thank you for that.It works perfect. :D

azzurri
Registered User
Posts: 909
Joined: Fri Jul 21, 2006 7:48 pm

Re: YouTube Mod

Post by azzurri »

doesnt work for me. Is the code correct?

User avatar
DualFusion
Registered User
Posts: 476
Joined: Tue Oct 24, 2006 9:53 pm
Location: A forum
Contact:

Re: YouTube Mod

Post by DualFusion »

azzurri wrote:doesnt work for me. Is the code correct?
If it worked for me, twfansite, and others, it must be working. Do you know how to add bbcodes?

Xabi
Registered User
Posts: 460
Joined: Wed May 23, 2007 9:04 am

Re: YouTube Mod

Post by Xabi »

That code is useless from a user-friendly point of view because it's based on the video ID and not on the video URL.We would need a BBCode based on the video URL.

azzurri
Registered User
Posts: 909
Joined: Fri Jul 21, 2006 7:48 pm

Re: YouTube Mod

Post by azzurri »

Xabi wrote:That code is useless from a user-friendly point of view because it's based on the video ID and not on the video URL.We would need a BBCode based on the video URL.
Exactly! Must be with video URL otherwise there is no point.

WillSWC
Registered User
Posts: 28
Joined: Tue Apr 03, 2007 8:15 pm
Location: Ohio, USA
Contact:

Re: YouTube Mod

Post by WillSWC »

Ya know guys you could really stop complaining and spend 5 minutes doing it yourself. Here's the BBcode for the Full YouTube URL.

Code: Select all

[youtube]{TEXT}[/youtube]

Code: Select all

<object width="425" height="350"><param name="movie" value="{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
House burnt down, wife left, dog's dead, truck broke down and the shotgun's outta ammo.
- A summery of County Music by WillSWC

azzurri
Registered User
Posts: 909
Joined: Fri Jul 21, 2006 7:48 pm

Re: YouTube Mod

Post by azzurri »

I didnt mean to sound negative and I am not a programmer at all.

Regarding your code, its for the "embeded" YouTube URL, what most of us need is a code for the regular URL because that is what people are posting in the forum. Else you have to instruct them to do this and that you know. Also I already have tons of links to the regular youtube url.

Xabi
Registered User
Posts: 460
Joined: Wed May 23, 2007 9:04 am

Re: YouTube Mod

Post by Xabi »

WillSWC wrote:Ya know guys you could really stop complaining and spend 5 minutes doing it yourself. Here's the BBcode for the Full YouTube URL.
Excuse me for "complaining", but your code does not work in phpBB3 RC1. The embed youtube code uses a different URL (watch?v=XXX - /v/XXXX). Also, phpBB parses the youtube URL before parsing the BBCode, so at this point we CAN'T use the Youtube URL and we have to put the video ID, wich is a useless solution from the user point of view.

We are not complaining, we are asking for help to solve this.

User avatar
DualFusion
Registered User
Posts: 476
Joined: Tue Oct 24, 2006 9:53 pm
Location: A forum
Contact:

Re: YouTube Mod

Post by DualFusion »

Ok, so you want to have a link to the page of the video? Ok...

BBCODE:

Code: Select all

[youtube]{TEXT}[/youtube]
HTML REPLACEMENT:

Code: Select all

<a href="http://youtube.com/watch?v={TEXT}">Click here to view this video on Youtube.com</a>
OR:

Code: Select all

<a href="{TEXT}">Click here to view this video on Youtube.com</a>
For the first html replacement, you will need to just supply the id, for the second, the whole url is needed. I hope one of these helped. And by the way, this is just like the [url] tag, just a bit different.

azzurri
Registered User
Posts: 909
Joined: Fri Jul 21, 2006 7:48 pm

Re: YouTube Mod

Post by azzurri »

This doesnt work. It doesnt embed the youtube clip.

Xabi
Registered User
Posts: 460
Joined: Wed May 23, 2007 9:04 am

Re: YouTube Mod

Post by Xabi »

The [youtube]{TEXT}[/youtube] solution, being "text" the full youtube URL, does NOT work in phpBB3 RC1. As stated many times before, phpBB3 RC1 parses the URL before BBCodes.

jorge89
Registered User
Posts: 7
Joined: Thu Mar 01, 2007 10:49 pm
Contact:

Re: YouTube Mod

Post by jorge89 »

I have obtained that it leaves mod youtube:

BBCode:

Code: Select all

[youtube]{TEXT}[/youtube]
Html:

Code: Select all

<object width="425" height="350">
   <param name="movie" value="http://www.youtube.com/v/{TEXT}"></param>
   <embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>
</object><br />
<a href="http://youtube.com/watch?v={TEXT}" target="_blank">Youtube</a><br />
Post:

Code: Select all

[youtube]FWOsbGP5Ox4[/youtube]
:D

Post Reply

Return to “Custom BBCode Development and Requests”