Page 11 of 11

Re: [2.0.21] Google Video

Posted: Fri May 11, 2007 8:47 am
All of the demo links earlier in this thread did not load for me or did not guide me to the page with the illustration.

I thought you could enable html on the board and put the video code that Google already gave in phpbb message and the video will be embedded. That was what I did and Google video shows. That is why I wondered how different this "Google Video" mod helps me embed Google videos any more convenient. Can you please help explain? Thanks.

Re: [2.0.21] Google Video

Posted: Tue May 29, 2007 3:01 am
by Robonot
I've downloaded the file but it's an MPEG file. How do you install it?

Re: [2.0.21] Google Video

Posted: Tue May 29, 2007 10:20 am
by freddie
it is a *.mod file, not *.mpg

open it with a texteditor (notepad, wordpad, conText, ...), it is just plain text

(or change extension in *.txt)

Re: [2.0.21] Google Video

Posted: Wed May 30, 2007 1:19 am
by Robonot
It's definitely an MPEG file. But following your suggestion I opened it with Notepad++ ( great text editor BTW ). Now I'm here, ... 16&t=61611 it's my first MOD. :D


Posted: Wed Jul 04, 2007 4:54 am
by emtohio
Kommercial wrote:
coruscant wrote: can this be installed with easymod?

It's not "EMC", but it'll still run, with no error, just fine.


In the download it is only one file. I uploaded this to easymod but easymod did not see it. Do I need to put it in a folder to make it work?

Re: [2.0.21] Google Video

Posted: Wed Jul 04, 2007 12:28 pm
by freddie

Re: [2.0.21] Google Video

Posted: Wed Jul 04, 2007 3:17 pm
by emtohio
I don't think you understood what I was saying. There was no folder to download, only a MPEG file which I can open with word pad to do manually but how do I use easy mod to install it since it is only 1 file and easy mod cant see the file because I guess its not in a folder or something.

Re: Google Internationalization

Posted: Sun Sep 09, 2007 1:20 pm
by ronpbb
G'day from Australia,
perldude69 wrote: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 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\][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 is replaced with [A-Za-z0-9.]{2,5}

That was my problem, too, but {2,5} still doesn't do for Australia (as in ""). {2,6} fixes that but just allowing for arbitrary longer top-level domains also gets us into dangerous territory because a (short) private second-level domain in countries which allow those could potentially be used to cause trouble. E.g. Thankfully my own forum is small and the participants registered and known to me so all is well for me, but thought I point this out, just in case.
(BTW, it would also be nice if these changes were included in the file linked to from the first post.)

Thanks for this great MOD anyway!


Upgradeing to PHPBB3

Posted: Sun Nov 18, 2007 2:47 am
by perldude69
With PHPBB3 RC7 out, I think it is time to update this mod.
tags: after upgrade to phpbb3 gvideo bbcode tags do not work, bbcode does not display properly, youtube not longer functions, phpbb3 upgrade

When you upgrade to phpbb3, none of your previous mod bbcode will work. There is a solution. I couldn't find it anywhere, so I will share.

Open two Firefox tabs. Leave one empty, and use the other for phpbb3 installation.
1. Install phpbb3 on your server. at the last step: DO NOT DO THE IMPORT / CONVERSION
2. Move the install directory to a temporary location /tmp or something like that.
3. Use your second tab to open your new clean phpbb3 forum.
4. Go to the admin panel and configure your bbcode. This is super easy in phpbb3. (examples below)
5. AFTER you have configured your bbcode, copy the install directory back to the phpbb3 folder.
6. *Run the import/conversion ( Finish from step 1)

phpbb3 does not parse each message for bbcode. If you import / convert your old database before you have set up the mod bbcodes, your forum will not display properly. If you do set up the bbcodes first, on import each post with mod bbcode will be marked for the right bbcode.

YOUTUBE code example:
BBCode usage

Code: Select all

HTML replacement

Code: Select all

<br /><hr /><center><table border="10"><tbody><tr><td><object height="350" width="425">	<param name="movie" value="{TEXT}">	<embed src="{TEXT}" type="application/x-shockwave-flash" height="350" width="425"></object><br></td></tr></tbody></table></center><a href="{TEXT}" target="_blank"> Direct YouTube Link</a><br /><hr />
Google Video code example:
BBCode usage

Code: Select all

HTML replacement

Code: Select all

<center><table border="15"><tbody><tr><td><object height="350" width="425">     <param name="movie" value="{TEXT2}"><embed style="width: 400px; height: 326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="{TEXT2}" allowscriptaccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL" flashvars="playerMode=embedded" align="middle"> </object></td></tr></tbody></table><br></center><a href="{TEXT1}docid={TEXT2}" target="_blank">Link</a><br>
<a href='{TEXT1}docid={TEXT2}'> Download </a>
Hosted on</center>
LiveLeak code example:
BBCode usage

Code: Select all

HTML replacement

Code: Select all

<br /><hr /><center><embed src="" width="450" height="370" type="application/x-shockwave-flash" pluginspage="" flashvars="autostart=false&token={TEXT2}" scale="showall" name="index"></embed><br /><hr /></center>
Rock on!
--Perldude69 (GVideo Mod author)

Re: [2.0.21] Google Video

Posted: Sun Dec 02, 2007 9:24 am
by NotExistant
i have a question... this mod works and all but i installed the youtube mod and the google video mod with the video mod and when you click the google video mod it would put the [video] bbcode and when you clicked the youtube button it would put the [gvideo] bbcode can someone tell me how to fix this ^^ as of now i just restored the old files and it fixed it

Re: [2.0.21] Google Video

Posted: Fri Sep 05, 2008 11:56 am
by vitwagen
Hi guys...
Someone has a goog ragex to match the new google video URL like these ... t=lf&hl=it
Kindest regards!

Re: [2.0.21] Google Video

Posted: Fri Oct 24, 2008 1:15 am
by plasmatic
perldude69, I've already had new posts since the upgrade to 3.x, so I can't reconvert the database to fix broken bb youtube code. Any ideas?