GoogleApps blocktype

This plugin will be included in official Mahara 1.4!

File(s) to Download

Version history

Version 1.0.7 (2011020900) for Mahara 1.3
(9. February 2011)

  • Added support for embedding Google Docs Collections, thanks to Clifford Steinberg

Version 1.0.6 (2010112200) for Mahara 1.3
(22. November 2010)

  • Added Finnish and Spanish translation, thanks to Alejandro Lopez

Version 1.0.5 (2010102200) for Mahara 1.3
(22. October 2010)

  • Added support for embedding Google Docs for Educational domains, thanks to Husman Ahmed and Dirk
  • Added support for embedding Google Books
  • Added support for embedding directly accessible PDF, TIFF, PPT, DOC and DOCX via Google Docs Viewer (same as preview in Gmail)

Version 1.0.4 (2010092200) for Mahara 1.3
(22. September 2010)

  • Added support for embedding any Google Maps (now any Maps and My Maps should work)
  • Added help on How to embed Google Docs, Google Calendar and Google Maps

Version 1.0.3 (2010092000) for Mahara 1.3
(20. September 2010)

  • Release for Mahara 1.3.x (should work also with Mahara 1.2.x)
  • Added support for embedding Google Maps (works only for My Maps)

Version 1.0.2 (2010071000) for Mahara 1.2
(24. March 2010)

  • Fixed document links for Google Docs documents (spreadsheet and presentation links stay the same)

Version 1.0.0 (2010040200) for Mahara 1.2
(2. April 2010)

  • Initial release for Mahara 1.2.x and upcoming Mahara 1.3.x
  • Support for embedding of GoogleDocs (documents, spreadsheets and presentations)
  • Support for embedding Google Calendar
  • Includes Slovenian and English language

How to embed?

Google Docs

Documents

  1. Open Google Docs document
  2. Click Share and than Publish to the Web (upper right corner)
  3. Click Start publishing button
  4. Copy Document link or Embed code
  5. Paste it to the GoogleApps blocktype

Spreadsheets

  1. Open Google Docs spreadsheet
  2. Click Share and than Publish as a web page (upper right corner)
  3. Click Start publishing button
  4. Copy link from texarea
  5. Paste it to the GoogleApps blocktype

Presentations

  1. Open Google Docs presentation
  2. Click Share and than Publish / embed (upper right corner)
  3. Click Publish document button
  4. Copy link or embed code from textarea
  5. Paste it to the GoogleApps blocktype

Collections

  1. In Google Docs click My collections or Collections shared with me (list on left side)
  2. Click and select the Collection that you wish to embed
  3. Click Sharing - Settings link (on right side)
  4. Change Permissions to Public and save changes
  5. Copy link from textbox
  6. Paste it to the GoogleApps blocktype

Google Calendar

  1. Open Google Calendar
  2. Click Settings and than Calendar settings (top right on the menu)
  3. Click Calendars link on the left upper side
  4. Click the name of the calendar that you wish to embed
  5. On Calendar details tab you'll find Embed This Calendar
  6. Customize calendar apperance and than copy embed code from textarea
  7. Paste it to the GoogleApps blocktype

Google Maps

  1. Open Google Maps
  2. Click My Maps link on the left upper side
  3. Click the name of the map that you wish to embed
  4. On Link link on right upper side
  5. Customize the apperance of the map and copy embed code
  6. Paste it to the GoogleApps blocktype

Note: Use steps 2 and 3 only if you wish to embed YOUR Google Map. If you wish to embed any Google Map, than you can skip steps 2 and 3.

Google Books

  1. Open Google Books
  2. Find the book that you wish to embed
  3. Click on Preview this book link or button
  4. Click on Link link on right upper side
  5. Copy the embed code of the book
  6. Paste it to the GoogleApps blocktype

Comments

Geoff Rowland
26 July 2010, 3:26 PM

Thanks Gregor

This looks rather useful and works for me in Mahara 1.2.x

However Mahara 1.3.0 beta 2 throws an nonrecoverable error on

Site Administration >> Administer Extensions >> Plugin Administration

Mrunal Choksi
21 September 2010, 6:56 AM
Gregor Anželj
21 September 2010, 7:52 AM

It seems there are some problems with Google Maps functionality - I'll investigate this in couple of days...

Mrunal Choksi
22 September 2010, 3:37 AM

Hi Gregor,

Now Google Map Functionlaity is working good.

Thanks

 

CSteinberg
04 February 2011, 10:59 AM

Hello Gregor,

Can you only embed one item?  Is it possible to embed a folder?

Gregor Anželj
05 February 2011, 1:14 PM

Haven't tried it yet. I'll look into it in 4 or 5 days...

Regards, Gregor

Chris Wherley
10 March 2011, 10:54 PM

Successfully embedded a calendar. Looking forward to trying other Google Apps.

Wondering if I am doing something wrong. I am trying to set Agenda view but it keeps coming up Monthly view.

Also what would cause multiple calendars to not show up?

Thanks for a great blocktype.

michele dicerto
31 May 2011, 10:06 AM

Hi, I tried to install on mahara 1.3.5 but I've this error, could you help me?

 

[Tue May 31 16:59:19 2011] [error] [client 62.48.50.130] [WAR] 65 (E:\\WAPP\\apache2\\htdocs\\next-tell\\blocktype\\googleapps\\lib.php:50) Undefined index:  appsid, referer: http://research01.exact-learning.com/next-tell/view/blocks.php?id=32&new=1[Tue May 31 16:59:19 2011] [error] [client 62.48.50.130] Call stack (most recent first):, referer: http://research01.exact-learning.com/next-tell/view/blocks.php?id=32&new=1[Tue May 31 16:59:19 2011] [error] [client 62.48.50.130]   * log_message("Undefined index:  appsid", 8, true, true, "E:\\WAPP\\apache2\\htdocs\\next-tell\\blocktype\\googlea...", 50) at E:\\WAPP\\apache2\\htdocs\\next-tell\\lib\\errors.php:444, referer: http://research01.exact-learning.com/next-tell/view/blocks.php?id=32&new=1[Tue May 31 16:59:19 2011] [error] [client 62.48.50.130]   * error(8, "Undefined index:  appsid", "E:\\WAPP\\apache2\\htdocs\\next-tell\\blocktype\\googlea...", 50, array(size 4)) at E:\\WAPP\\apache2\\htdocs\\next-tell\\blocktype\\googleapps\\lib.php:50, referer: http://research01.exact-learning.com/next-tell/view/blocks.php?id=32&new=1[Tue May 31 16:59:19 2011] [error] [client 62.48.50.130]   * PluginBlocktypeGoogleApps::render_instance(object(BlockInstance), true) at Unknown:0, referer: http://research01.exact-learning.com/next-tell/view/blocks.php?id=32&new=1[Tue May 31 16:59:19 2011] [error] [client 62.48.50.130]   * call_user_func_array(array(size 2), array(size 2)) at E:\\WAPP\\apache2\\htdocs\\next-tell\\lib\\mahara.php:1162, referer: http://research01.exact-learning.com/next-tell/view/blocks.php?id=32&new=1[Tue May 31 16:59:19 2011] [error] [client 62.48.50.130]   * call_static_method("PluginBlocktypeGoogleapps", "render_instance", object(BlockInstance), true) at E:\\WAPP\\apache2\\htdocs\\next-tell\\blocktype\\lib.php:540, referer: http://research01.exact-learning.com/next-tell/view/blocks.php?id=32&new=1[Tue May 31 16:59:19 2011] [error] [client 62.48.50.130]   * BlockInstance->render_editing(false, true) at E:\\WAPP\\apache2\\htdocs\\next-tell\\lib\\view.php:1268, referer: http://research01.exact-learning.com/next-tell/view/blocks.php?id=32&new=1[Tue May 31 16:59:19 2011] [error] [client 62.48.50.130]   * View->addblocktype(array(size 4)) at E:\\WAPP\\apache2\\htdocs\\next-tell\\lib\\view.php:992, referer: http://research01.exact-learning.com/next-tell/view/blocks.php?id=32&new=1[Tue May 31 16:59:19 2011] [error] [client 62.48.50.130]   * View->process_changes() at E:\\WAPP\\apache2\\htdocs\\next-tell\\view\\blocks.json.php:46, referer: http://research01.exact-learning.com/next-tell/view/blocks.php?id=32&new=1[Tue May 31 16:59:19 2011] [error] [client 62.48.50.130] , referer: http://research01.exact-learning.com/next-tell/view/blocks.php?id=32&new=1

lindy
17 August 2011, 7:08 AM
Hi Gregor, Thanks for this blocktype! I've been experimenting with it and embedding spreadsheets, but so far haven't had any success with getting the spreadsheet to display. Have also tried using the iframe embed code on a text block, which also didn't work, so wondering if there is something funky with the spreadsheet embed code. Have you had any other problems with spreadsheets? I've tried out the Documents instructions, and they worked like a charm, so thank you for very clear instructions! If I can help with testing, please feel free to contact me - lindy at moodle dot com dot au.
Emilie Lenel
24 January 2012, 8:08 AM

Hi all

I successully embedded a calendar in Mahara using the Google Apps blocktype.

However, like Chris,i am trying to set Agenda view but it keeps coming up Monthly view.

Any idea what's the issue ?

Thanks

11 comments