vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   [BB Code] Google video (https://vborg.vbsupport.ru/showthread.php?t=120275)

Stifmeister2 07-03-2006 10:00 PM

[BB Code] Google video
 
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:
Code:

<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: [gv]8719729790252878017[/gv]
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/foru...9733#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

Quote:

Originally Posted by AndyA
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**

Quote:

Originally Posted by xtremeteam
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

Quote:

Originally Posted by BiReL41r
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

Quote:

Originally Posted by chkdgate
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?do...73580166301634

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


Example #2
Link to Google video: http://video.google.com/videoplay?do...05241957167536

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 [gv] tag like this:
[gv]-1457005241957167536[/gv]

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

Quote:

Originally Posted by chkdgate
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

Quote:

Originally Posted by vitrag24 (Post 1260501)
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

Quote:

Originally Posted by vitrag24 (Post 1264277)

No.. but now that I did, it also has 5 different BB codes. They're all just installed when you import the product.


All times are GMT. The time now is 04:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01207 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete