[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

achievehigh.org
Registered User
Posts: 300
Joined: Sat Apr 01, 2006 3:08 am
Contact:

Re: [2.0.21] Google Video

Post by achievehigh.org »

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.
Robonot
Registered User
Posts: 2
Joined: Tue May 29, 2007 2:58 am

Re: [2.0.21] Google Video

Post by Robonot »

I've downloaded the file but it's an MPEG file. How do you install it?
User avatar
freddie
Registered User
Posts: 404
Joined: Sun Mar 31, 2002 1:40 pm
Location: Estes Park, USA
Contact:

Re: [2.0.21] Google Video

Post 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)
Robonot
Registered User
Posts: 2
Joined: Tue May 29, 2007 2:58 am

Re: [2.0.21] Google Video

Post 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, http://www.phpbb.com/community/viewtopi ... 16&t=61611 it's my first MOD. :D
emtohio
Registered User
Posts: 204
Joined: Fri Jul 21, 2006 11:44 pm
Location: Portsmouth, Ohio
Name: Dave Stevens
Contact:

Re:

Post 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.

Demo


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?
User avatar
freddie
Registered User
Posts: 404
Joined: Sun Mar 31, 2002 1:40 pm
Location: Estes Park, USA
Contact:

Re: [2.0.21] Google Video

Post by freddie »

admin/mods/name_mod/install_file(s)
emtohio
Registered User
Posts: 204
Joined: Fri Jul 21, 2006 11:44 pm
Location: Portsmouth, Ohio
Name: Dave Stevens
Contact:

Re: [2.0.21] Google Video

Post 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.
ronpbb
Registered User
Posts: 1
Joined: Sun Sep 09, 2007 1:09 pm

Re: Google Internationalization

Post 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 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
That was my problem, too, but {2,5} still doesn't do for Australia (as in ".com.au"). {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. video.google.abc.de. 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!
Cheers,

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

Upgradeing to PHPBB3

Post 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.
Steps:
1. Install phpbb3 on your server. at the last step: DO NOT DO THE IMPORT / CONVERSION
*KEEP THIS WINDOWS OPEN!
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)

Explanation:
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.

EXAMPLES
YOUTUBE code example:
BBCode usage

Code: Select all

[youtube]{URL}={TEXT}[/youtube]
HTML replacement

Code: Select all

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

Code: Select all

[gvideo]{TEXT1}docid={TEXT2}[/gvideo]
HTML replacement

Code: Select all

<center><table border="15"><tbody><tr><td><object height="350" width="425">     <param name="movie" value="http://video.google.com/googleplayer.swf?docId={TEXT2}"><embed style="width: 400px; height: 326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId={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='http://videodownloader.net/get/?url={TEXT1}docid={TEXT2}'> Download </a>
Hosted on http://www.wachadoo.com/forum/</center>
LiveLeak code example:
BBCode usage

Code: Select all

[liveleak]{TEXT1}={TEXT2}[/liveleak]
HTML replacement

Code: Select all

<br /><hr /><center><embed src="http://www.liveleak.com/player.swf" width="450" height="370" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="autostart=false&token={TEXT2}" scale="showall" name="index"></embed><br />http://www.wachadoo.com/forum/<hr /></center>
Rock on!
--Perldude69 (GVideo Mod author)
User avatar
NotExistant
Registered User
Posts: 98
Joined: Sun Aug 19, 2007 11:17 am

Re: [2.0.21] Google Video

Post 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
vitwagen
Registered User
Posts: 11
Joined: Thu Jun 15, 2006 10:37 am
Contact:

Re: [2.0.21] Google Video

Post by vitwagen »

Hi guys...
Someone has a goog ragex to match the new google video URL like these
http://video.google.it/videoplay?docid= ... t=lf&hl=it
Kindest regards!
plasmatic
Registered User
Posts: 14
Joined: Tue Dec 12, 2006 3:34 am

Re: [2.0.21] Google Video

Post 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?
Post Reply

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