Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
BBCode - Embed Google Documents Collection (BB Code) Details »
BBCode - Embed Google Documents Collection (BB Code)
Mod Version: 1.00, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Nov 2018 I like it Show Printable Version Email this Page

vB Version: 4.0.x Rating: (4 votes - 5.00 average) Installs: 66
Released: 19 Sep 2010 Last Update: 19 Sep 2010 Downloads: 210
Not Supported Re-usable Code Translations External Content  

Embed Various Google Docs

Live Demo: Here

Google Docs is a free service by Google. Google Docs are a professional collection of "Office" applications like a Word Processor, Spreadsheet, Presentation Designer, and Drawing tool. Google Docs is a serious alternative to the very expensive Microsoft Office. Documents are stored online, can be shared among users, and in the case of this BB Code they can be embedded in other web pages.

There are several BB Codes in this collection, Google Doc (Document), Google Spreadsheet and Google Presentation. Google Drawings can be embedded using the standard [img] tags but I will give an example here anyway.

You may get a warning message saying the {param}s aren't enclosed in quotes. You can hit "continue" to ignore this error. As you can see in the code there are eventually double-quotes.

When working on any Google Document in the top right of the window will be a "Share" button with drop-down arrow. Click on this arrow and choose "Publish to Web" or "Publish / Embed" and you will be given code to link to and/or embed the document. You will be given a URL such as:
https://docs.google.com/document/pub?id=1bhtK-AhiXqfWK5bGJcULvEO3zMahcFgnJEsT1YvYsuc

What you need is the document ID which is the long string of characters after "id=" or "key=" and before the ampersand (&) if present, in this case your id is:
1bhtK-AhiXqfWK5bGJcULvEO3zMahcFgnJEsT1YvYsuc

In all cases you put the ID between the appropriate tag for the type of document.

Google Document (Word Processor Document)
[gd]1bhtK-AhiXqfWK5bGJcULvEO3zMahcFgnJEsT1YvYsuc[/gd]

Google Spreadsheet
[gs]0AmOHO6Cm8vvAdFR2b0dMMnVwMUE0MlpXYnowWnowWWc[/gs]

Google Presentation
[gp]dcjktv94_1fcpptwqc[/gp]

Google Drawing
No special BB Code is needed to embed a drawing because it's rendered as any other image. Just put the URL given between IMG tags...
[IMG]https://docs.google.com/drawings/pub?id=1C1arwoUzUyzxnzk9yD7ysx6vyMfcDuDXXzQTqnngh2c&w=640&h=480[/IMG]

To add one or more of these BB Codes follow any of the below instructions:

Add a New BB Code

Title: Google Document
BB Code Tag Name: gd
Replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example:[gd]1bhtK-AhiXqfWK5bGJcULvEO3zMahcFgnJEsT1YvYsuc[/gd]
Description: Embed a Google Document.
Use Option: No
Button Image: (optional)
Remove Tag If Empty: Yes
All Disable Options: Yes

------

Add a New BB Code

Title: Google Spreadsheet
BB Code Tag Name: gs
Replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example: [gs]0AmOHO6Cm8vvAdFR2b0dMMnVwMUE0MlpXYnowWnowWWc[/gs]
Description: Embed a Google Spreadsheet.
Use Option: No
Button Image: (optional)
Remove Tag If Empty: Yes
All Disable Options: Yes

------

Add a New BB Code

Title: Google Presentation
BB Code Tag Name: gp
Replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example:[gp]dcjktv94_1fcpptwqc[/gp]
Description: Embed a Google Presentation.
Use Option: No
Button Image: (optional)
Remove Tag If Empty: Yes
All Disable Options: Yes

------

In any of the above codes you can edit the height and width attributes to suit your needs.

------

------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated.
Nominate MOTM if you LOVE it!

Check My Profile for other BB Code enhancements. They work on all versions.

Download the .txt file for a copy of the Install instructions.

Screenshots Attached:

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	ss_googledocs.png
Views:	636
Size:	28.2 KB
ID:	122130   Click image for larger version

Name:	ss_googlespreadsheet.png
Views:	694
Size:	20.5 KB
ID:	122131   Click image for larger version

Name:	ss_googlepresentation.png
Views:	543
Size:	17.9 KB
ID:	122132  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BB Code Enhancements Jigzone.com BB Code - Embed Puzzles in your forums - (BBCode) BirdOPrey5 vBulletin 4.x Add-ons 30 27 Apr 2015 15:43
BB Code Enhancements BB Code - Twitvid - Twitter Videos - Embed (BBCode) BirdOPrey5 vBulletin 3.8 Add-ons 5 31 Mar 2012 06:05
BB Code Enhancements BB Code embed Videos from Google into posts. Vaupell vBulletin 3.8 Add-ons 2 31 Jan 2010 03:52

  #46  
Old 29 Jul 2012, 18:33
UK CHI3F's Avatar
UK CHI3F UK CHI3F is offline
 
Join Date: Dec 2011
Real name: Paul
Here is our main sheet on our site.
http://www.xboxplayers.co.uk/site/sh...2012-Standings

this is the bb code it has always had

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

this is the original document
https://docs.google.com/spreadsheet/...6b0FXV0E#gid=7

This is the replacement code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks for your help
__________________
We try our best all the time but sometime we just dont get it. Find new players @
Total Gaming Addicts
Reply With Quote
  #47  
Old 29 Jul 2012, 19:45
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
I don't know why you can't open it but my suggestion is to download a copy, reupload it, publish the new copy to the web and get the new code and use that- it worked for me.

You can edit your post with the new bbcode code.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #48  
Old 28 Jan 2013, 10:58
insidegames insidegames is offline
 
Join Date: Jun 2010
Doesn't work for me under 4.2. Always there are now Spreedshet. It's says "Sorry, it's not public now"

Last edited by insidegames; 28 Jan 2013 at 11:15.
Reply With Quote
  #49  
Old 31 Jan 2013, 22:04
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
It works on my 4.2.0 forum. Are you sure the documents are still public?

Demo: http://www.qapla.com/mods/showthread...eets-and-Forms
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #50  
Old 18 Jun 2013, 21:35
kylek kylek is offline
 
Join Date: Oct 2003
Real name: Kyle
Originally Posted by BirdOPrey5 View Post
It works on my 4.2.0 forum. Are you sure the documents are still public?

Demo: http://www.qapla.com/mods/showthread...eets-and-Forms

Your spreedsheet example is not showing on your site right now, sames as what we get, just blank space.
__________________
Reply With Quote
  #51  
Old 21 Jun 2013, 11:41
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Resolved the above- it was a browser issuer.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #52  
Old 10 Aug 2013, 13:28
Chivster Chivster is offline
 
Join Date: Aug 2013
I keep getting an error to it saying that the key is incorrect.
I followed the guidelines, can anyone help me out ?
Reply With Quote
  #53  
Old 17 Aug 2013, 13:57
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Can you pste a key and document type here? Like spreadsheet 3ff456d75g5ge3wsdghjh?
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #54  
Old 06 Sep 2013, 20:39
MarineColorado MarineColorado is offline
 
Join Date: Nov 2010
so it loads up for me fine with the code but it keeps telling me sorry the file you requested is unavailable. Any thoughts?
Reply With Quote
  #55  
Old 06 Sep 2013, 21:02
MarineColorado MarineColorado is offline
 
Join Date: Nov 2010
edited NM i hade the code wrong I changed a ' to " originally before html in the code. I changed it back to a ' and it works great!!! Thank you for the mod
Reply With Quote
  #56  
Old 01 May 2014, 05:12
kylek kylek is offline
 
Join Date: Oct 2003
Real name: Kyle
It looks like the share code for google spreadsheets has changed now. Trying to use it again but it just shows blank.

Looking at a link last month and the new share link the ccc?key= is now /d/

Last month link:

https://docs.google.com/spreadsheet/...UE&usp=sharing

Latest link:

https://docs.google.com/spreadsheets...it?usp=sharing

Last edited by kylek; 01 May 2014 at 08:08.
Reply With Quote
  #57  
Old 01 May 2014, 07:17
XSV_4ce XSV_4ce is offline
 
Join Date: Mar 2014
I am also getting a blank page. Your sample code works perfect. here is what I am using.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Just blank frame.
Reply With Quote
  #58  
Old 02 May 2014, 05:35
kylek kylek is offline
 
Join Date: Oct 2003
Real name: Kyle
Just surfing on google and found this: https://support.google.com/drive/answer/3541068

"Starting in March and April 2014, Google Sheets users creating new spreadsheets will be automatically directed to the new Sheets. All previously created spreadsheets will remain in the older version of Sheets for now. If you need to create a spreadsheet using the old Sheets, you can do so at g.co/oldsheets"
Reply With Quote
  #59  
Old 22 May 2014, 23:45
whodah whodah is offline
 
Join Date: Feb 2004
Oops - just noticed you had this mod in the 4.x area. Pretty cool, thx! Like some users above, , I removed the "single=true" portion of the GS tag so that users could click multiple sheets.


Any hints on how to do a google chart? I see the publish code on a chart is a bit different than the docs/spreadsheets.

Thx!
Reply With Quote
  #60  
Old 23 May 2014, 07:00
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Google docs also has a PDF viewer.
How do we get this to display? Do we click share and take the link, change who has access to 'public on the web'?

Sorry, new to google docs but I have some PDF's that may well prove useful.

Ta...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:53.

Layout Options | Width: Wide Color: