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

  #31  
Old 24 Oct 2011, 15:44
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Originally Posted by BirdOPrey5 View Post
If the sample works on your forum th BBCode is entered correctly.

Your problem is you need to "Publish" your document in Google Docs- instructions were in the link in my previous post.

The dash (-) in the param doesn't matter.
Thank you very much, it worked thanks for your time Joe as always
Reply With Quote
  #32  
Old 31 Oct 2011, 02:50
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
Thank you for the nice mod. The SpreadSheet work well for single sheet but for multisheets I have to strip out

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

in your code.
May I suggest that you use full link and put double quotes for the security purpose like this

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

Reply With Quote
  #33  
Old 31 Oct 2011, 12:11
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Thanks for the info on the multi-sheet.

However your second suggestion is a HUGE security risk. Anyone could use the code to open an IFRAME of an arbitrary website.

My original implementation is safe- the warning VB gives can be ignored- VB itself doesn't have a great way of scanning for the {param} between quotes.
__________________
-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
  #34  
Old 31 Oct 2011, 14:48
beduino's Avatar
beduino beduino is offline
 
Join Date: Dec 2005
Real name: Joao
I will use in my boards
Thank you joe
Reply With Quote
  #35  
Old 01 May 2012, 17:52
grc grc is offline
 
Join Date: Oct 2005
Does this still work? The GD shared link no longer has id= in it and I'm getting a "not found" message when the id section of the link is used with the tags.
Reply With Quote
  #36  
Old 01 May 2012, 20:30
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
it still works...

http://www.qapla.com/mods/showthread...readsheet-test

Instead of the id you take the long string before /edit:

Example:

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

Take the code in red and pot it between:

[gd]1bhtK-AhiXqfWK5bGJcULvEO3zMahcFgnJEsT1YvYsuc[/gd]
__________________
-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
  #37  
Old 01 May 2012, 20:47
grc grc is offline
 
Join Date: Oct 2005
Originally Posted by BirdOPrey5 View Post
it still works...

http://www.qapla.com/mods/showthread...readsheet-test

Instead of the id you take the long string before /edit:

Example:

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

Take the code in red and pot it between:

[gd]1bhtK-AhiXqfWK5bGJcULvEO3zMahcFgnJEsT1YvYsuc[/gd]
Thanks. I hadn't gone to File/Publish to the Web -- missed that step.
Reply With Quote
  #38  
Old 21 May 2012, 12:37
JabirA JabirA is offline
 
Join Date: Feb 2009
Does it work in 4.1.12?
Reply With Quote
  #39  
Old 21 May 2012, 20:46
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
BBCodes work in all VB versions.
__________________
-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
  #40  
Old 21 May 2012, 22:35
JabirA JabirA is offline
 
Join Date: Feb 2009
Originally Posted by BirdOPrey5 View Post
Thanks for the info on the multi-sheet.

However your second suggestion is a HUGE security risk. Anyone could use the code to open an IFRAME of an arbitrary website.

My original implementation is safe- the warning VB gives can be ignored- VB itself doesn't have a great way of scanning for the {param} between quotes.
I have this problem too.
Do you have a safer suggestion?
Reply With Quote
  #41  
Old 22 May 2012, 00:10
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Just use my original code with the &single=true removed.
__________________
-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
  #42  
Old 22 May 2012, 11:18
JabirA JabirA is offline
 
Join Date: Feb 2009
Thank you! Why don't make it default than?
Reply With Quote
  #43  
Old 22 May 2012, 15:16
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Just did.
__________________
-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
  #44  
Old 28 Jul 2012, 20:41
UK CHI3F's Avatar
UK CHI3F UK CHI3F is offline
 
Join Date: Dec 2011
Real name: Paul
Been using this mod for a while but all of a sudden the spreadsheets dont appear anymore, no changes have been made tried other sheets as well but to no avail

Any ideas?
__________________
We try our best all the time but sometime we just dont get it. Find new players @
Total Gaming Addicts
Reply With Quote
  #45  
Old 29 Jul 2012, 11:23
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
The spreadsheets still work on the demo page: http://www.qapla.com/mods/showthread...eets-and-Forms

So I don't think Google changed anything...

Can you post an example of one of yours that isn't working as well as copy the replacement code from the bbcode into a [code] box here?
__________________
-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
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 02:27.

Layout Options | Width: Wide Color: