[2.0.21] Google Video

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!
21
70%
Very Good
3
10%
Good
3
10%
Fair
0
No votes
Poor
3
10%
 
Total votes: 30

User avatar
perldude69
Registered User
Posts: 41
Joined: Sat Apr 08, 2006 12:05 am

Array value

Post by perldude69 »

Sure, I was just getting to this post. I had to review my code.

The '60' is the width of the BBCode box. You can use any number you want, but 60(pixels) is a good width for the words. Try 10, and then test the code. You will get a box around the GVIDEO that only shows GVI, or just the GV.

Here is my code with Gvideo and YouTube.

Code: Select all

        $EMBB_widths = array('','60','60') ;
        $EMBB_values = array('','YouTube','GVideo') ;
Hope this helps!


--Jedimaster
indepndent
Registered User
Posts: 129
Joined: Mon Feb 13, 2006 4:47 am

Re: Array value

Post by indepndent »

perldude69 wrote: Sure, I was just getting to this post. I had to review my code.

The '60' is the width of the BBCode box. You can use any number you want, but 60(pixels) is a good width for the words. Try 10, and then test the code. You will get a box around the GVIDEO that only shows GVI, or just the GV.

Here is my code with Gvideo and YouTube.

Code: Select all

        $EMBB_widths = array('','60','60') ;
        $EMBB_values = array('','YouTube','GVideo') ;
Hope this helps!


--Jedimaster


Ok thanks so mnuch I didn't know what it did but you repeat it so it makes sense. :D

Thanks!
User avatar
perldude69
Registered User
Posts: 41
Joined: Sat Apr 08, 2006 12:05 am

Google Internationalization

Post by perldude69 »

Looks like Google Video has pulled a fast one on us. For those that are using Google Video outside of the US, it is possible that you will have a url that looks different than the standard video.google.com. For instance people in Germany are now being redirected to video.google.de.

This will affect the embedding. The current quick fix is to change the .de to .com. I will be making a change to the code to accomidate for this change to google.

--Perldude69
User avatar
perldude69
Registered User
Posts: 41
Joined: Sat Apr 08, 2006 12:05 am

Google Internationalization

Post by perldude69 »

I have changed the regular expression in bbcode.php

Please make the following changes for international compliance:

change the .com to .+ in

video.google.com becomes video.google.+

Code: Select all

#-----[ OPEN ]---------------------------------
#
includes/bbcode.php

// [GVideo]GVideo URL[/GVideo] code..
$patterns[] = "#\[GVideo\]http://video.google.+/videoplay\?docid=([0-9A-Za-z-_]*)[^[]*\[/GVideo\]#is";
$replacements[] = $bbcode_tpl['GVideo'];



I will submit a change to the official mod.

Thanks for the feedback!

--Perldude69
User avatar
perldude69
Registered User
Posts: 41
Joined: Sat Apr 08, 2006 12:05 am

Google Internationalization

Post by perldude69 »

Ok folks,

The last fix worked well. It had one glitch though. If more than one google video was embedded in the same post, it only displayed the first one.
The following change seems to fix this problem. It also takes into account google.video.co.uk videos for those in the UK. People using other international versions of google video, please test and let me know how things go. :-)

Here is the new regular expression. (filter) for the file: includes/bbcode.php

Code: Select all

   

// [GVideo]GVideo URL[/GVideo] code..
$patterns[] = "#\[GVideo\]http://video.google.[A-Za-z0-9.]{2,5}/videoplay\?docid=([0-9A-Za-z-_]*)[^[]*\[/GVideo\]#is";
$replacements[] = $bbcode_tpl['GVideo'];

note, the only change is that com from video.google.com is replaced with [A-Za-z0-9.]{2,5}




--Perldude69
bassbox
Registered User
Posts: 59
Joined: Tue Jul 04, 2006 11:35 am
Contact:

Post by bassbox »

Hey,

there were no problem with installing multiple bbcode and afterwards this nice mod ..
but it wont woro for me :-? in topic theres not the videoplayer.. theres just the same like uve written ... [GVideo]url[/Gvideo]
why/how could this happen?

http://leaver.de/gvideo-t71.html there ..

umm ? after installing youtube .. google works now ? ?? ^^ nice
great mod !! ;D

lol , but youtube wont work intead .... *grml .. :-?
User avatar
perldude69
Registered User
Posts: 41
Joined: Sat Apr 08, 2006 12:05 am

Video problem

Post by perldude69 »

Do you still have a problem? I like the test video you posted! funny stuff.

Du kanst auch auf Deutsch Ihre Fragen stellen. Ich bin Amerikaner, aber ich wohne in Deutschland. Mein Deutsch ist nicht perfekt, aber ich kann es verstehen! Auch, wo hast du die leiste oben auf Ihre Seite bekommen? ´Dieses Registrieren errinerung? Finde ich gut!

-Perldude69
bassbox
Registered User
Posts: 59
Joined: Tue Jul 04, 2006 11:35 am
Contact:

Post by bassbox »

after installing youtube bbcode , the gvideo one works ... but youtube not ...

nachdem ich den youtube bbcode installiert habe, klappt jetzt zwar der gvideo code, aber youtube nicht :-?

This Addon is called "Cback InfoBar Mod"
User avatar
perldude69
Registered User
Posts: 41
Joined: Sat Apr 08, 2006 12:05 am

YouTube Error

Post by perldude69 »

Can you post these files? :
includes/bbcode.php
language/lang_english/lang_main.php
templates/subSilver/posting_body.tpl


If not, just email them to me at perldude69 aatt³ gmail .dot com

I'll take at look at them.

--Perldude69
User avatar
perldude69
Registered User
Posts: 41
Joined: Sat Apr 08, 2006 12:05 am

Error Description

Post by perldude69 »

Can you tell me what error you recieve?
Does the YouTube button show up in the posting menu?
Do you get a video box in post, but no video?
Does it just show the URL to the video when you post or preview a message?

Thanks,

--Perldude69
bassbox
Registered User
Posts: 59
Joined: Tue Jul 04, 2006 11:35 am
Contact:

Re: Error Description

Post by bassbox »

perldude69 wrote: Does it just show the URL to the video when you post or preview a message?
--Perldude69


Exactly this ..
User avatar
perldude69
Registered User
Posts: 41
Joined: Sat Apr 08, 2006 12:05 am

Regular Expression match

Post by perldude69 »

The only change from the original YouTube mod I can find is in the includes/bbcode.php file.

Try changing the following line.

My fields:

Code: Select all

        $EMBB_widths = array('','60','60') ;
        $EMBB_values = array('','YouTube','GVideo') ;
Your fields:

Code: Select all

	$EMBB_widths = array('','60','60') ;
	$EMBB_values = array('','youtube','GVideo') ;
Change the youtube to YouTube

This may work against the regular expression matching in the code.

--Perldude69
bassbox
Registered User
Posts: 59
Joined: Tue Jul 04, 2006 11:35 am
Contact:

Post by bassbox »

i changed this during my own tries to fix the problem ... :(
so it wont help :P
User avatar
perldude69
Registered User
Posts: 41
Joined: Sat Apr 08, 2006 12:05 am

Code Debug

Post by perldude69 »

Ive looked over your code untill my eyes have crossed. I can't find anything wrong with it. As you have seen, Ive registered with your forum and tested it myself. It simply doesn't work.

I will keep looking, but maybe some others out there in the phpBB community can lend a hand too. Have you posted your situation over at the YouTube mod page?

Lets get some help here. :!:

--Perldude69
Post Reply

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