PDA

View Full Version : [BB Code] Google video


Stifmeister2
07-03-2006, 10:00 PM
This is a simple BB code which allows you to display Google videos. :cool:

Installation:

Go to 'Custom BB Codes' -> 'Add New BB Code'

Title: Google Video
Tag: gv
Replacement: <embed style="width:400px; height:326px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId={param}" allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL" FlashVars="playerMode=embedded"> </embed>
Example: 8719729790252878017
Description: Allows you to display Google videos. Simply add the video ID inside the tag.
Use {option}: No

OPTIONAL STEP
Button Image (Optional): [enter the url to the attached pic you uploaded]

And "Save".


This was not my idea, I just noticed a recently posted hack which didn't work so I thought I'd make one that actually works. :cool: (At least worked for me, tested with three different videos.)

Rickie3
07-03-2006, 11:26 PM
bah i just updated my original release

xtremeteam
07-04-2006, 07:21 AM
how do you get the video ID?

EDIT n/m got it lol
view page source at the bottom>
var TAG_DISPLAY_URI = "/tags";
var did = "-2992183880068262304";

works great thanks!

Stifmeister2
07-04-2006, 12:06 PM
Admins can delete this if they want... Seems like Rickie3 updated his hack couple of hours later than I posted this one. :)

AndyA
07-04-2006, 08:07 PM
This doesn't seem to work for me, all I get is a black screen.

http://www.throttlejockey.co.uk/forum/showthread.php?p=29733#post29733

AndyA
07-04-2006, 08:14 PM
My mistake, I'd omitted the - before the digits.

AndyA
07-04-2006, 08:20 PM
Just a thought, does this method use more of your bandwidth ?

Stifmeister2
07-04-2006, 11:24 PM
Just a thought, does this method use more of your bandwidth ?
Server bandwidth? No I don't think so as the videos are loaded from Google site...

xtremeteam
07-09-2006, 11:24 AM
i dont know much coding but is there a way to edit it so it plays auto with no sound?

ktp101
07-12-2006, 03:43 PM
cheers, added still to test it lol

Benedict
07-16-2006, 12:17 PM
This rocks thanks :)

chkdgate
07-26-2006, 05:43 AM
Thank you, very simple.

**clicks install**

how do you get the video ID?
EDIT n/m got it lol
view page source at the bottom>
var TAG_DISPLAY_URI = "/tags";
var did = "-2992183880068262304";
Where do you look for this?

BiReL41r
07-26-2006, 08:23 AM
How would you make it so that the gv shows up in the default BB Code line on the thread editor?

chkdgate
07-26-2006, 04:11 PM
I'm just getting black screens.

Stifmeister2
08-07-2006, 03:07 PM
How would you make it so that the gv shows up in the default BB Code line on the thread editor?
First of all, sorry for my absence as I was on a vacation and forgot about this thread. :rolleyes:


Anyway, you have to upload the attached image to your server first.
Then go to AdminCP and Custom BB Codes --> BB Code Manager.

Then edit the "Google Video" BBcode and add the right path to the image you just uploaded for the "Button Image (Optional)" field.

Stifmeister2
08-07-2006, 03:20 PM
I'm just getting black screens.
Then I guess you've added the wrong "code".


Here's a little example how you should add the "code":

Example #1
Link to Google video: http://video.google.com/videoplay?docid=566073580166301634

Just copy that big number code and add it between the tag like this:
[gv]566073580166301634


Example #2
Link to Google video: http://video.google.com/videoplay?docid=-1457005241957167536

You have to notice the little "-" mark before the numbers in this video. There are sometimes that little "-" in some videos. You have to include that too. I made same mistakes before too with that and got black screens.

Copy that big number code (and remember to include that little "-" in front of the numbers) and add it between the tag like this:
[gv]-1457005241957167536

chkdgate
08-08-2006, 04:48 PM
It worked Stifmeister2! Awesome!

Renmiri
08-08-2006, 05:04 PM
Oooo this one is more secure than my BB code for flash!!!

Loved it, thanks!

Stifmeister2
08-09-2006, 02:18 PM
It worked Stifmeister2! Awesome!
Yeah you just have to be careful with those "-". :cool:

vitrag24
06-03-2007, 06:40 PM
i have installed for youtube
can i add for google in same?
how?
guide step by step plz

Stifmeister2
06-03-2007, 10:55 PM
i have installed for youtube
can i add for google in same?
how?
guide step by step plz
The instructions are above. ;) Should be pretty easy, just add a simple BB Code. :)

vitrag24
06-04-2007, 07:30 PM
i know that
but if possible with single bcode for both googlevideo and youtube ?
if it is possible then better to keep single radher then double bbcodes and buttons also

Stifmeister2
06-06-2007, 10:11 PM
Damn I don't think it's possible. :( I don't see how this could be done. ..

vitrag24
06-08-2007, 05:35 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=147906" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=147906</a>
have u checked this?

Stifmeister2
06-08-2007, 10:23 PM
https://vborg.vbsupport.ru/showthread.php?t=147906
have u checked this?
No.. but now that I did, it also has 5 different BB codes. They're all just installed when you import the product.