[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

John Foxer
Registered User
Posts: 12
Joined: Thu Aug 10, 2006 4:07 pm
Contact:

Post by John Foxer » Tue Jan 02, 2007 9:02 am

Does anyone have this section of code

Code: Select all

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

but modified for Yahoo video? (hope im asking in the right place :oops: )

User avatar
tanrek
Registered User
Posts: 219
Joined: Mon Sep 27, 2004 1:46 pm
Location: Germany, Offenbach
Contact:

Post by tanrek » Thu Jan 04, 2007 10:08 am

Please, could someone help me to find a permission of Google to implement the player on own websites or forums? E.g. YouTube clears this important question here:
Can I embed or share a private video?
Yes. You can embed a private video on your website by copying the embed code on the 'Edit Video' page for that video and pasting it into your website.

http://youtube.com/t/help_cat11


But I could not find any similar declaration for Google.Video.

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

permission

Post by perldude69 » Fri Jan 12, 2007 2:50 am

Well, google video has an option to embed the video in myspace or other blogs.
MySpace - Blogger
LiveJournal - TypePad

I take this as permission from Google to embed their video in my site.

--Perldude69

Camaron
Registered User
Posts: 1
Joined: Tue Jan 16, 2007 9:42 am
Contact:

Post by Camaron » Tue Jan 16, 2007 9:47 am

Sorry, this mod doesn't work for me.
I installed the following mods in this order:
Easymod, bbcode mod, gvideo mod, youtube mod.
The youtube mod works, but the gvideo mod doesn't: The buttons are there, but instead of the video inside the post i get a line saying: [GVideo]..link...[/GVideo].

I prefer gvideo over youtube, that's why I'm worried :wink:

User avatar
tanrek
Registered User
Posts: 219
Joined: Mon Sep 27, 2004 1:46 pm
Location: Germany, Offenbach
Contact:

Post by tanrek » Wed Jan 17, 2007 9:13 am

Camaron wrote: but instead of the video inside the post i get a line saying: [GVideo]..link...[/GVideo]

Try the GVideo link with .com top level domain, e.g. video.google.com instead of video.google.de.

go99live
Registered User
Posts: 206
Joined: Mon May 01, 2006 7:18 pm
Contact:

Post by go99live » Thu Jan 18, 2007 12:18 pm

edit
Last edited by go99live on Thu Jan 18, 2007 12:26 pm, edited 1 time in total.

go99live
Registered User
Posts: 206
Joined: Mon May 01, 2006 7:18 pm
Contact:

Post by go99live » Thu Jan 18, 2007 12:21 pm

can some one please tell me that how can i set the height and the width of the video

go99live
Registered User
Posts: 206
Joined: Mon May 01, 2006 7:18 pm
Contact:

Post by go99live » Thu Jan 18, 2007 12:24 pm

can some one please tell me that how can i set the height and the width of the video

User avatar
srm99
Registered User
Posts: 97
Joined: Thu Nov 02, 2006 4:02 am

Post by srm99 » Mon Jan 22, 2007 11:49 am

can anyone help me find the bug i got i see youtube fine googal seem to have a prob the [GVideo] works fine but when posted its a blank screen i am sure is a simple prob and would appreciate any help

Code: Select all

$hotkeys = array('', 'd', 'e', 'g', 'h', 'j', 'k', 'm', 'n', 'r', 't', 'v', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');

	//NOTE: the first element of each array must be ''   Add new elements AFTER the ''
	$EMBB_widths = array('','60','60') ;
	$EMBB_values = array('','YouTube','Gvideo') ;
	for ($i=1; $i<count($EMBB_values); $i++)
	{
		// load BBcode MODs info
		$val = ($i*2)+16 ;
		$help_lang = ( !empty($lang['bbcode_help'][(strtolower($EMBB_values[$i]))]) ) ? $lang['bbcode_help'][(strtolower($EMBB_values[$i]))] : $lang['bbcode_help'][$EMBB_values[$i]];
		$template->assign_block_vars('MultiBB', array(
			'KEY' => $hotkeys[$i],
			'NAME' => "addbbcode$val",

Code: Select all

	$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
        $bbcode_tpl['youtube'] = str_replace('{YOUTUBEID}', '\\1', $bbcode_tpl['youtube']);
        $bbcode_tpl['youtube'] = str_replace('{YOUTUBELINK}', $lang['youtube_link'], $bbcode_tpl['youtube']);
        $bbcode_tpl['GVideo'] = str_replace('{GVIDEOID}', '\\1', $bbcode_tpl['GVideo']);
        $bbcode_tpl['GVideo'] = str_replace('{GVIDEOLINK}', $lang['GVideo_link'], $bbcode_tpl['GVideo']);
	define("BBCODE_TPL_READY", true);

	return $bbcode_tpl;
}

Code: Select all

// [email]user@domain.tld[/email] code..
	$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
	$replacements[] = $bbcode_tpl['email'];

        // [youtube]YouTube URL[/youtube] code..
        $patterns[] = "#\[youtube\]http://(?:www\.)?youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
        $replacements[] = $bbcode_tpl['youtube'];
   
        // [GVideo]GVideo URL[/GVideo] code..
        $patterns[] = "#\[GVideo\]http://video.google.com/videoplay\?docid=([0-9A-Za-z-_]*)[^[]*\[/GVideo\]#is";
        $replacements[] = $bbcode_tpl['GVideo'];


	$text = preg_replace($patterns, $replacements, $text);

	// Remove our padding from the string..
	$text = substr($text, 1);

	return $text;

} // bbencode_second_pass()

User avatar
srm99
Registered User
Posts: 97
Joined: Thu Nov 02, 2006 4:02 am

Post by srm99 » Mon Jan 22, 2007 11:50 am

can anyone help me find the bug i got i see youtube fine googal seem to have a prob the [GVideo] works fine but when posted its a blank screen i am sure is a simple prob and would appreciate any help

Code: Select all

$hotkeys = array('', 'd', 'e', 'g', 'h', 'j', 'k', 'm', 'n', 'r', 't', 'v', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');

	//NOTE: the first element of each array must be ''   Add new elements AFTER the ''
	$EMBB_widths = array('','60','60') ;
	$EMBB_values = array('','YouTube','Gvideo') ;
	for ($i=1; $i<count($EMBB_values); $i++)
	{
		// load BBcode MODs info
		$val = ($i*2)+16 ;
		$help_lang = ( !empty($lang['bbcode_help'][(strtolower($EMBB_values[$i]))]) ) ? $lang['bbcode_help'][(strtolower($EMBB_values[$i]))] : $lang['bbcode_help'][$EMBB_values[$i]];
		$template->assign_block_vars('MultiBB', array(
			'KEY' => $hotkeys[$i],
			'NAME' => "addbbcode$val",

Code: Select all

	$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
        $bbcode_tpl['youtube'] = str_replace('{YOUTUBEID}', '\\1', $bbcode_tpl['youtube']);
        $bbcode_tpl['youtube'] = str_replace('{YOUTUBELINK}', $lang['youtube_link'], $bbcode_tpl['youtube']);
        $bbcode_tpl['GVideo'] = str_replace('{GVIDEOID}', '\\1', $bbcode_tpl['GVideo']);
        $bbcode_tpl['GVideo'] = str_replace('{GVIDEOLINK}', $lang['GVideo_link'], $bbcode_tpl['GVideo']);
	define("BBCODE_TPL_READY", true);

	return $bbcode_tpl;
}

Code: Select all

// [email]user@domain.tld[/email] code..
	$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
	$replacements[] = $bbcode_tpl['email'];

        // [youtube]YouTube URL[/youtube] code..
        $patterns[] = "#\[youtube\]http://(?:www\.)?youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
        $replacements[] = $bbcode_tpl['youtube'];
   
        // [GVideo]GVideo URL[/GVideo] code..
        $patterns[] = "#\[GVideo\]http://video.google.com/videoplay\?docid=([0-9A-Za-z-_]*)[^[]*\[/GVideo\]#is";
        $replacements[] = $bbcode_tpl['GVideo'];


	$text = preg_replace($patterns, $replacements, $text);

	// Remove our padding from the string..
	$text = substr($text, 1);

	return $text;

} // bbencode_second_pass()

User avatar
srm99
Registered User
Posts: 97
Joined: Thu Nov 02, 2006 4:02 am

Post by srm99 » Mon Jan 22, 2007 9:36 pm

dont worry i found a mistake it works great

User avatar
srm99
Registered User
Posts: 97
Joined: Thu Nov 02, 2006 4:02 am

Post by srm99 » Tue Jan 23, 2007 11:16 pm

ok found a small prob wont play au google videos

User avatar
srm99
Registered User
Posts: 97
Joined: Thu Nov 02, 2006 4:02 am

Post by srm99 » Wed Jan 24, 2007 12:44 am

fixed it

i had this code

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']; 
and i repasted it and spaced bared it to look like the rest

warning donot as will crash your page where u post a video
its ok if loks like this

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'];
[/code]

kreptil
Registered User
Posts: 50
Joined: Thu Dec 02, 2004 7:19 am

Post by kreptil » Tue Jan 30, 2007 12:28 am

I can see the video when I hit Preview, but I can't after I send the message. Any ideas?

kreptil
Registered User
Posts: 50
Joined: Thu Dec 02, 2004 7:19 am

Post by kreptil » Tue Jan 30, 2007 12:32 am

I can see the video when I hit Preview, but I can't after I send the message. Any ideas?

Post Reply

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

Who is online

Users browsing this forum: No registered users and 10 guests