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

  #16  
Old 06 Mar 2011, 17:38
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Rofo View Post
Can't get this to work for a spreadsheet, would love to have it though!

4.1.1
If you're getting the warning:
The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.
You can safely hit continue and it will work.

Otherwise maybe re-read the instructions, it is still working for me, just made a new spreadsheet and re-confirmed in 4.x.

The example I just made is:
[gs]0AmOHO6Cm8vvAdGRyZUNhWnZCSWVKdjM0WUpfM2FzeFE[/gs]

You should see a simple, small spreadsheet.
__________________
-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
  #17  
Old 06 Mar 2011, 17:54
Rofo Rofo is offline
 
Join Date: Feb 2011
Got it to work, don't really know exactly what I changed to make it work... Thats ok

I have been wondering how i could get my spreadsheet on forums for a very long time, thank you very much for this.

Installed, rated.
Reply With Quote
  #18  
Old 10 Apr 2011, 04:59
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
This only works for Google correct.?

What if we host it seperately, & use Logicians Webtemplates..? (any possibility in iframe) also to be able to update.
Reply With Quote
  #19  
Old 10 Apr 2011, 14:05
VanHuek VanHuek is offline
 
Join Date: Jan 2011
How can I get it too work for google forms?
Reply With Quote
  #20  
Old 10 Apr 2011, 19:56
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Gamelobby View Post
This only works for Google correct.?

What if we host it seperately, & use Logicians Webtemplates..? (any possibility in iframe) also to be able to update.
I don't know how you'd host it separately or anything about Logician's Webtemplates... But yeah, only google, only hosted in google. Anywhere you can use BBCode you can use this.

Originally Posted by VanHuek View Post
How can I get it too work for google forms?
I never heard of Google Forms, do you have a link to them?
__________________
-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
  #21  
Old 10 Apr 2011, 22:38
VanHuek VanHuek is offline
 
Join Date: Jan 2011
http://docs.google.com/support/bin/a...n&answer=87809

https://spreadsheets.google.com/view...J0Q0E6MQ#gid=0
Reply With Quote
  #22  
Old 18 Apr 2011, 00:11
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
OK, to do a Google Form:

Demo: http://www.juot.net/forums/showthread.php?t=47896

Example:
[gf]dDNJRFdVaXRxM2FTVXpnQlVlMHBZVnc6MQ[/gf]


Add a New BB Code

Title: Google Form
BB Code Tag Name: gf
Replacement:

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

Example: [gf]dDNJRFdVaXRxM2FTVXpnQlVlMHBZVnc6MQ[/gf]
Description: Embed a Google Form.
Use Option: No
Button Image: (optional)
Remove Tag If Empty: Yes
All Disable Options: Yes
__________________
-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
  #23  
Old 21 Apr 2011, 02:06
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
BirdOPrey, I got this..?
The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.

•<iframe src="https://spreadsheets.google.com/embeddedform?formkey={param}" width="760" height="1021" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe>
{param} is in bold

I hit continue, & it seems fine except it works for Google spreadsheets, but not Google docs.

*edit*
nevermind, i just realized this mod was originally for docs, so i need to try it first.



*edit2*
Whats the difference between a Doc, a Presentation, & a Form.?

Here is what im trying to make work.

Last edited by Gamelobby; 21 Apr 2011 at 02:18.
Reply With Quote
  #24  
Old 21 Apr 2011, 19:34
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Google has various types of "documents."

Docs - which are like word documents, usually text mostly
Spreadsheets
Presentations
Drawings
and now Forms

It looks like yours is a "docs" document, you should try the instructions for the very first bbcode in this thread "Google Document."
__________________
-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
  #25  
Old 23 Oct 2011, 21:38
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Man this sucks, Im trying out the spread sheet and is showing just a blank iframe

Any ideas Bird?

thanks mate I really need this
Reply With Quote
  #26  
Old 24 Oct 2011, 01:20
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Does the example spreadsheet show on your forum?

[gs]0AmOHO6Cm8vvAdFR2b0dMMnVwMUE0MlpXYnowWnowWWc[/gs]

You can see how the example should look 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
  #27  
Old 24 Oct 2011, 06:20
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Originally Posted by BirdOPrey5 View Post
Does the example spreadsheet show on your forum?

[gs]0AmOHO6Cm8vvAdFR2b0dMMnVwMUE0MlpXYnowWnowWWc[/gs]

You can see how the example should look here.
yes the sample works mate. Im trying this one in bold https://docs.google.com/spreadsheet/...cXBRTXZNZ0E&hl but all I get is a white iframe on the post.

Last edited by FReeSTER; 24 Oct 2011 at 12:49.
Reply With Quote
  #28  
Old 24 Oct 2011, 10:46
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
I get the message: We're sorry. This document is not published.

Here is how to Publish your document: https://docs.google.com/support/bin/...&topic=1360911

Note: It is NOT the same as setting your document's visibility.
__________________
-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
  #29  
Old 24 Oct 2011, 12:54
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Thank you Joe, I fix the link sorry. I have try so many ways to add the link or the
{param} 0AuZfwFwa96-AdEpiTzFCX1Z6YWRpOEFZcXBRTXZNZ0E and it doesnt
work at all I was wondering if this is cause because that document have a - on the param?

Last edited by FReeSTER; 24 Oct 2011 at 15:45.
Reply With Quote
  #30  
Old 24 Oct 2011, 13:40
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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.
__________________
-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 07:43.

Layout Options | Width: Wide Color: