Author Topic: Embedded Google Calendar  (Read 4772 times)

dhottinger

  • Jr. Member
  • **
  • Posts: 10
  • Karma: 2
    • View Profile
Embedded Google Calendar
« on: January 11, 2008, 01:01:16 PM »
Im trying to imbed a google calendar in SOS 1.0.1.  I click create a new page, click the html button and past the code in the box.  I see contacting google.com and then nothing happens.  No code shows at all.  Is it possible to do this with SOS?

thanks,
ddh

HandsomeWeb

  • SOS Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 85
  • Karma: 2
    • View Profile
    • SOS Webpages
Re: Embedded Google Calendar
« Reply #1 on: January 11, 2008, 05:35:28 PM »
The iFrame code from Google is deleted automatically by TinyMCE (The editor).  But it is javascript, so here is an easy hack.

Turn off javascript in your web browser when you edit.  If you are already on the paragraph editing page, you'll have to refresh.

Then paste the Google code and submit.

You'll have to turn javascript back on to view the Google Calendar.

NOTE: If you ever edit the page with javascript on TinyMCE will erase it. ::)

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

This was a great question.  In the future I'll tweak the Tiny MCE editor to allow iFrames.
Chris
http://www.soswebpages.com
http://www.handsomeweb.com
http://www.handsomewebservices.com

dhottinger

  • Jr. Member
  • **
  • Posts: 10
  • Karma: 2
    • View Profile
Re: Embedded Google Calendar
« Reply #2 on: January 11, 2008, 06:50:05 PM »
Worked like a charm.  Great little bit of php scripting.  Im the net admin for a k-12 public school system and am seriously thinking of setting this up for some teachers.  Right now I am using it for pack190.org/index.php

HandsomeWeb

  • SOS Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 85
  • Karma: 2
    • View Profile
    • SOS Webpages
Re: Embedded Google Calendar
« Reply #3 on: January 11, 2008, 08:04:40 PM »
You can change the width of the iFrame in the google code and it will fit on the page better.  I used Width="500",
Chris
http://www.soswebpages.com
http://www.handsomeweb.com
http://www.handsomewebservices.com

HandsomeWeb

  • SOS Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 85
  • Karma: 2
    • View Profile
    • SOS Webpages
Re: Embedded Google Calendar
« Reply #4 on: January 19, 2008, 09:35:47 PM »
In version 1.0.2 it is possible to insert in-line frames in the WYSIWIG Editor.  Just click "HTML" on the editor and paste your calendar code.
Code: [Select]
<iframe src="http://www.google.com/calendar/embed?src=hasdfg%40ds323sdil.com&ctzdfgicago" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
Chris
http://www.soswebpages.com
http://www.handsomeweb.com
http://www.handsomewebservices.com

sklsba

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Embedded Google Calendar
« Reply #5 on: June 11, 2008, 01:48:05 AM »
Got a problem here...
click "HTML" paste the iframe code the click update.
nothing happen. calender is been share to public.

click "HTML" to check the code, found nothing in editor.

Anyone having the same problem?

HandsomeWeb

  • SOS Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 85
  • Karma: 2
    • View Profile
    • SOS Webpages
Re: Embedded Google Calendar
« Reply #6 on: June 11, 2008, 06:39:41 AM »
That is 1.1 bug.  It will be fixed in 1.1.2.  Use the following work around:

Turn off javascript in your web browser when you edit.  If you are already on the paragraph editing page, you'll have to refresh.

Then paste the Google code and submit.

You'll have to turn javascript back on to view the Google Calendar.
Chris
http://www.soswebpages.com
http://www.handsomeweb.com
http://www.handsomewebservices.com

sklsba

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Embedded Google Calendar
« Reply #7 on: June 11, 2008, 10:38:07 AM »
Settle. Thanks HandsomeWeb.