[2.0.19] Youtube Video BBCode

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
125
64%
Very Good
23
12%
Good
21
11%
Fair
5
3%
Poor
21
11%
 
Total votes: 195

Biffster1
Registered User
Posts: 5
Joined: Tue Jul 31, 2007 1:50 pm

Re: [2.0.19] Youtube Video BBCode

Post by Biffster1 »

bastard666 wrote:I don't know if this has been yet posted, so sorry in advance if it's so!
Anyone here can suggest me a way to have it.youtube embedding on my phpbb board?
I'm from Italy and now it.youtube.com is the default redirect for youtube, but embedding don't works for this kind of videos.

For example, using the same video, embedding doesn't work for this (default url for my country):

[youtube]http://it.youtube.com/watch?v=VvNP007sU6M[/youtube] DOESN'T WORKS

but if you rename http://it. in http://www. embedding is working:

[youtube]http://www.youtube.com/watch?v=VvNP007sU6M[/youtube] WORKS

Can you post me a code to update this mod and allow both code for youtube embedding?
Thank you.
I'm having exactly the same problem. Does anybody know what to edit so it works with subdomains? I'm from the UK so YouTube vids for me start with http://uk.youtube.com/

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [2.0.19] Youtube Video BBCode

Post by Raimon »

Try this Biffster1 ;)
Pacaya wrote:
bastard666 wrote:For example, using the same video, embedding doesn't work for this (default url for my country):

[youtube]http://it.youtube.com/watch?v=VvNP007sU6M[/youtube] DOESN'T WORKS
Hi,

Try this in the bbcode.php

Code: Select all

$patterns[] = "#\[youtube\]http://[a-z]+?.youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

Biffster1
Registered User
Posts: 5
Joined: Tue Jul 31, 2007 1:50 pm

Re: [2.0.19] Youtube Video BBCode

Post by Biffster1 »

Thanks again Raimon! It worked a treat!

crag364
Registered User
Posts: 84
Joined: Thu Jul 26, 2007 1:24 pm

Re: [2.0.19] Youtube Video BBCode

Post by crag364 »

crag364 wrote:Thanks for the reply,

I have checked this and it seems ok to me. Maybe you can see something I can't:

Code: Select all

// Define the bbCode tags
bbcode = new Array();
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','Image','',''),'[youtube]','[/youtube]','[GVideo]','[/GVideo]';
imageTag = false;[/code]

It does this with both the youtube button and the google button. It just comes up with the word undefined.

Image

Any ideas?

Thanks
Anyone got any ideas?

Samael1976
Registered User
Posts: 30
Joined: Wed Jun 07, 2006 6:15 pm
Contact:

Re: [2.0.19] Youtube Video BBCode

Post by Samael1976 »

I'm trying to do a mod of this mod, for the video in MyspaceTV
for example
http://vids.myspace.com/index.cfm?fusea ... ID=9363660

I'm going really creazy, there are 3 days i'm trying code by code, but I really don't understand why it don't work... anyone can help me?

Ghost Rider
Registered User
Posts: 8
Joined: Sun Aug 05, 2007 2:47 pm

Re: [2.0.19] Youtube Video BBCode

Post by Ghost Rider »

This is odd... I just wanted to install this mod on my PHPBB 2.0.22 and when I tried to install it with EasyMod, I got a critical error.

Now being not the most technically adept guy on earth, I figure I did something wrong. But I can't figure out what it was, so I'd be thankful for any help you could give me.

Thanks!

crag364
Registered User
Posts: 84
Joined: Thu Jul 26, 2007 1:24 pm

Re: [2.0.19] Youtube Video BBCode

Post by crag364 »

Does anyone know or attempted to get this to work with http://www.megavideo.com?

The links seem to be like youtubes, just less characters. I have tried installing it myself but to no avail.

Any ideas?

Cheerrs

elissaios
Registered User
Posts: 1
Joined: Mon Aug 06, 2007 7:12 am

Re: [2.0.19] Youtube Video BBCode

Post by elissaios »

Nice mod, if I could get it working.

I still dont understand why we are forced to use Multiple BBCode in order to get this thing working. It could have been so much easier to install it with the traditional copy 'n' paste way. I would advice to release an alternative version.

Other than that, good job :)

P.S. I'm working on an alternative version atm, i'll post it as soon as its ready.

sambritt
Registered User
Posts: 7
Joined: Tue Jun 07, 2005 6:13 am
Contact:

Re: [2.0.19] Youtube Video BBCode

Post by sambritt »

This is an awesome plugin! :geek:

coldbloodedtv
Registered User
Posts: 13
Joined: Mon Jul 09, 2007 6:54 am

Re: [2.0.19] Youtube Video BBCode

Post by coldbloodedtv »

Great mod, I love it!

numnutz
Registered User
Posts: 16
Joined: Thu Aug 09, 2007 12:47 am

Re: [2.0.19] Youtube Video BBCode

Post by numnutz »

I opened it up, and found:

Code: Select all

## Author Notes: 

##   You must have Multiple BBCode MOD installed for this to work.

##      Get it here: http://www.phpbb.com/phpBB/viewtopic.php?t=74705

So, I went there and was told I had to log in. Okay, I registered, got the email and logged in. then it tells me I am not authorized to view it. Ha ha! I don't own a tube amp! This sounds like a great mod...

numnutz
Registered User
Posts: 16
Joined: Thu Aug 09, 2007 12:47 am

Re: [2.0.19] Youtube Video BBCode

Post by numnutz »

Should I be using the Multi BB Cod emod from this url: http://www.phpbb.com/community/viewtopic.php?t=145513 ?

thanks,
Num

numnutz
Registered User
Posts: 16
Joined: Thu Aug 09, 2007 12:47 am

Re: [2.0.19] Youtube Video BBCode

Post by numnutz »

Should I be using the Multi BB Cod emod from this url: viewtopic.php?t=145513 ?
So I downloaded this mod and starting installing, and when I came to this:
<edit> The file is templates/subSilver/posting_body.tpl

Code: Select all

# 
#-----[ FIND ]---------------------------------
#
#  NOTE - the full line to look for is:

#					<select name="addbbcodefontcolor" onChange="bbfontstyle('[color=' + this.form.addbbcodefontcolor.options[this.form.addbbcodefontcolor.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')">
#
	name="addbbcode18"


# 
#-----[ IN-LINE FIND ]---------------------------------
#
name="addbbcode18"


# 
#-----[ IN-LINE REPLACE WITH ]---------------------------------
#
name="addbbcodefontcolor"


#  
That line is not found. In fact, "this.form.addbbcodefontcolor.selectedIndex" not found. I don't think this is the right one...I am using an up to date version (per my admin panel).

Thanks,
Num

numnutz
Registered User
Posts: 16
Joined: Thu Aug 09, 2007 12:47 am

Re: [2.0.19] Youtube Video BBCode

Post by numnutz »

Well, the answer is "No, that is not the correct Multi BB Code Mod.", because it is rated for 2.0.2 to 2.0.10:

Code: Select all

## Author Notes:

##     + if Multi BBCode MOD v1.0.1 is already installed, use the update to 1.2.0 MOD

##          and do NOT install this MOD script

##     + Works with phpBB 2.0.2 thru 2.0.10

##     + installable with EasyMOD
Which brings me back to the original problem. In the authors notes for the youtube mod, he says to use the Multi BB Code mod that is unavailable (to me, at least):

Code: Select all

############################################################## 

## Author Notes: 

##   You must have Multiple BBCode MOD installed for this to work.

##      Get it here: http://www.phpbb.com/phpBB/viewtopic.php?t=74705
Going to that link brings up "You are not authorised to read this forum."

So how does one get around this dependency issue? :twisted:

thanks,
Num

numnutz
Registered User
Posts: 16
Joined: Thu Aug 09, 2007 12:47 am

Re: [2.0.19] Youtube Video BBCode

Post by numnutz »

Solved. the Multi BB Code has ambiguous wording, and works above in versions of PHPBB2 above those listed by that authour.

Back on topic, this mod is great.

Post Reply

Return to “[2.0.x] MOD Database Releases”