Stout Google Calendar

What is Stout Google Calendar?

The Stout Google Calendar plugin allows you to easily add and customize embedded Google Calendars to your WordPress site. You can even change color settings that are not normally modifiable, allowing you to seamlessly integrate Google Calendars into the look of your site. No more ugly Google Calendars!

Features

  • Customize the color scheme of embedded Google Calendars
  • Options from the Google Embeddable Calendar Helper can be modified directly within the WordPress Admin
  • Save multiple calendars, each with it’s own color scheme, size and display settings
  • Display calendars in a Widget, Pages or Posts via shortcode or in templates
  • Live preview of all changes to a calendar as you make each change
  • Easy color picker or directly input hexadecimal color values

Download

Download Stout Google Calendar from the WordPress plugins directory.

Installation

  1. Download the plugin zip file `stout-google-calendar.zip`.
  2. Unzip and upload the `stout-google-calendar` folder to the `/wp-content/plugins/` directory. Or, you may go to ‘Plugins > Add New’ in the WordPress menu. ‘Upload’ the `stout-google-calendar.zip` file or ‘Search’ for “Stout Google Calendar”.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Go to ‘Settings > Stout Google Calendar’ in the WordPress menu.
  5. Grab the embed code from your Google Calendar [(Instructions Here)](http://www.google.com/support/calendar/bin/answer.py?hl=en&answer=41207)
  6. Paste the embed code into the “Google Calendar iframe embed code:” textarea under ‘Add a New Calendar’
  7. Have fun editing the colors and options right in WordPress. HINT: After pasting in embed code, “Tab” or “Click” out of the textarea. A “Preview Calendar” link will appear, click on it. Leave the calendar open while you edit your colors/options and watch the calendar evolve before your eyes!

Suggestions / Problems / Need help?

Please use the Stout Google Forum to post any suggestions, problems, questions, etc.

Special thanks and credit to:

Chris Dornfeld for the wonderful gcalendar-wrapper.php script we use as the core of this plugin. Stefan Petre for the jQuery Color Picker used in the admin.

Server Requirements

You can check your phpinfo screen to see if your server meets the requirements.

Installation

Can be installed directly from the Add New Plugins page in the WordPress Admin by searching “Stout Google Calendar”. Alternately DOWNLOAD HERE. Unpack the zip file, and upload to your WordPress site plugins folder. Simply activate it once installed and you are golden (or whatever other color you may choose).

Usage

Editing Calendars
Of course you must have a Gmail account, and a shared Google Calendar created to embed into your site. Follow the Google Calendar publish instructions here. Once you have copied the embed code, paste it into the box labeled “Google Calendar iframe embed code:” on the Stout Google Calendar settings page. To Add a New Calendar, you will also need to give it a Name value. You can begin editing and previewing the calendar immediately. You can also leave the Preview window open to see changes you make on the fly. Once satisfied click the Add Calendar button to save it. In the Saved Calendars Menu, you will see the Calendars you have created. From here you can Edit them again, or Delete them. This is also where you will find the Calendar’s Shortcode and Template Tag ID number.

Displaying Calendars
Each calendar saved will show it’s Shortcode and Template Tag function just below it’s Title in the Stout Google Calendar Settings page. To insert a calendar into a post copy and paste the Shortcode where you would like the Calendar to display. To insert a calendar in one of your Theme files use the Template Tag. To display a Calendar in the sidebar, drag and drop the Stout Google Calendar Widget into the sidebar. There is a Title area in the Widget as well as a drop down where you will be able to choose from any of the Saved Calendars you have.

Examples

The calendar below is inserted into this post with it’s Shortcode [stout_gc id=2]. The one in the Sidebar to the right is being displayed by using a Widget.

119 Comments

  1. Posted November 2, 2010 at 12:52 pm | Permalink

    Hi,
    I’m using your plugin on my site, but for some reason all the details like day, month and the links in the even details are now in Spanish instead of English! How can I fix this?

    Thank you!
    Katy

    • Matt
      Posted November 2, 2010 at 1:10 pm | Permalink

      You can specify the “Language” on the Google Embeddable Calendar helper page. I’m not exactly sure how Google determines the which language to show the calendar in when left as the “Default” setting.

      Or you can just add “hl=en” in your embed code. So replace the “?” with this :

      ?hl=en&
  2. Posted November 7, 2010 at 4:12 pm | Permalink

    Hey, nice idea for a plugin, however for some reason, it never saves the calendar on the plugin page. Any ideas?

    Latest version of WordPress, all pretty straightforward install etc.

    • Matt
      Posted November 7, 2010 at 8:03 pm | Permalink

      I haven’t had any issues saving/editing calendars. After you fill in the required fields – the name of the calendar and embed code – hit the “Add Calendar” button. After you do this, the calendar should be saved and now available under “Saved Calendars” beneath the “Add Calendar” form. The form fields and options for the saved calendar(s) are hidden by default but clicking on “Show Calendar Editor” will display the fields. If the plugin is not working this way please post some more details in the forum and I’ll see if I can help get to the bottom of it.

      • Jim Larson
        Posted November 13, 2010 at 12:57 am | Permalink

        The table name is hard coded as wp_stoutgc, so won’t work with another prefix. Need to change to use $wpdb->prefix. Nice plugin though! Thanks very much.

        • Matt
          Posted November 15, 2010 at 9:13 am | Permalink

          Thanks so much for pointing this out. I’ve fixed this and updated the plugin to version 1.0.2.

  3. Posted November 8, 2010 at 12:47 pm | Permalink

    Matt, I seem to be having the same issue as Gav. In that I have downloaded and activated the plugin edited the settings and embedded the required Google code. I get a message that the new calendar has been created, but nothing shows up in the saved section?

    Any ideas has to how to address this?

  4. Posted November 8, 2010 at 10:02 pm | Permalink

    Something that would be useful is getting the calendar dimensions to be in percentages instead of pixels

    • Matt
      Posted November 9, 2010 at 8:57 am | Permalink

      Thanks for the suggestion. We’ll probably add this in the next release.

  5. Steffen
    Posted November 9, 2010 at 4:54 am | Permalink

    I get his message “Cannot determine width of the calendar.”. I have entered with 300 hight 300. Why do i get the error message ?

    • Matt
      Posted November 9, 2010 at 10:47 am | Permalink

      Hi Steffen,

      This sounds like it may be an issue with internationalization/translation of the embed code. The plugin looks for “width” and “height” in the iframe attributes of the embed code. If it cannot find these it will throw an error. Try changing the spelling and see if that works. Feel free to post your embed code in the Stout Google Calendar Forum and we can troubleshoot it from there.

  6. ty
    Posted November 10, 2010 at 11:58 am | Permalink

    matt—

    having the same problem as dan—nothing shows up in “saved”. ideas or pointers or where to start?

  7. Stephanie
    Posted November 15, 2010 at 4:19 pm | Permalink

    I would love the ability to limit the number of events that display, so I can have Upcoming Events in the sidebar with just 2 or 3 listed, without a scroll bar. Is that possible in this version?

    Oh, I’m having similar problem as dan and ty – shortcode works to embed on page, but when I drag widget to sidebar, no calendars are selectable.

    • Matt
      Posted November 15, 2010 at 9:10 pm | Permalink

      I would like to do the same but there isn’t a way to limit the number of events and avoid the scroll bar. This plugin essentially takes the three calendar view options from Google – Monthly, Weekly and Agenda – and allows you to customize the color scheme and a few of the settings within your WordPress admin. I’ll look into it but right now this is not available.

      I just pushed up version 1.0.5 which fixes the issue with the Widget and displaying the saved calendars. It should be available within the next 15 minutes to download. Give it a shot and let me know if it works out for you.

  8. Posted November 16, 2010 at 5:55 am | Permalink

    I installed, Added embeded code, shows it saved it underneath, but won’t show the saved calendars on the widget when I add it to my side bar.

    • Matt
      Posted November 16, 2010 at 7:37 am | Permalink

      This was a bug in 1.0.4. I have patched it and everything should work as expected in 1.0.5. Download it here

      • Posted November 16, 2010 at 9:02 am | Permalink

        That worked for showing up in the widget. Thank You,…
        Now…How do I get it so it doesn’t ask me to log in each time.
        Also, when I try to access it, it says my cookies are off even tho I have them on.
        (the later probably isn’t the plugins fault)

        • Matt
          Posted November 16, 2010 at 9:16 am | Permalink

          Sounds like you need to update the Calendar settings on Google’s side. You should log into your Google account, go to the Calendar’s settings, click on the “Share this Calendar” tab and make sure you have made the calendar available to the Public.

          • Posted November 16, 2010 at 9:21 am | Permalink

            I was wondering about that. No way to make it visible through the site like I have it embedded now in a regular page for the widget without having to make it visible to public other then my site visitors?
            Just curious as to why it would do one, but ask for loggin for the other.

  9. Posted November 16, 2010 at 9:27 am | Permalink

    When I install this plug in and set up my calendar, it only shows the Google log in box on my webpage.

    Suggestions?

    • Posted November 16, 2010 at 9:32 am | Permalink

      I’m sorry. I changed it to public. Thanks. Doesn’t look quite the way I want it to fit in my sidebar but great plugin!

    • Matt
      Posted November 16, 2010 at 9:32 am | Permalink

      Same as what I recommended to Kevin – Sounds like you need to update the Calendar settings on Google’s side. You should log into your Google account, go to the Calendar’s settings, click on the “Share this Calendar” tab and make sure you have made the calendar available to the Public.

      • Posted November 16, 2010 at 9:37 am | Permalink

        I guess I’m just curious as to why when I embedded the code into a page on my site, it doesn’t ask for log in. But, trying to embed it into this widget or even to modify it through the plugin, it wants me to log in?
        Maybe something that can be changed in the coding in the future?
        It just strikes me as odd that one thing works without going Public setting, and the other has issues with it. You can check my site to see the calendar shows up without it on a standard embed under “My Calendar”

        • Posted November 16, 2010 at 10:07 am | Permalink

          sorry…just to clarify and make it less confusing, the embedded code as a “page” is the embedded cost that google calendar gave me to embed the Calendar into a website. And it is what doesn’t require me to have my settings on Google Calendar set to public. And yet, it’s the same code I Embedded into the Stout Calendar Application.

      • Posted November 16, 2010 at 11:33 am | Permalink

        Ok Matt, I must apologize. And you can delete all these replies.
        What I figured out was that my Macbook kept the log in info, for Google calendar so it would show up on the PAGES without having to log in. So, Yes…Absolutely, your are correct, the permissions on Google has to be set to public to view it.
        Sorry for the trouble, and thanks for such a great application.

  10. Posted November 17, 2010 at 12:59 pm | Permalink

    I updated the plug in and I get nothing, on my footer or open gym calendar, help!!!

  11. Posted November 17, 2010 at 1:29 pm | Permalink

    I think my cache wasn’t cleared.

    It works perfectly now.

  12. Posted November 17, 2010 at 6:01 pm | Permalink

    I am trying to use your plugin as a widget. When I change my Google Calendar settings to “public” it gives me a fatal error. When I take my Google Calendar settings back to private, I get “Temporarily Moved….” Am I missing something obvious?

  13. Posted November 18, 2010 at 6:28 am | Permalink

    Gr8 job dude. Once I made my calendar public it picked it right up! This is gonna help my band client on road-tours and my tattoo client for scheduling. You do good work, many thanks.

  14. luis
    Posted November 20, 2010 at 9:40 am | Permalink

    This is awesome thank you. You rock!

  15. Posted November 22, 2010 at 1:03 pm | Permalink

    I have installed the plugin and edited it correctly, and my calendar is public, but when I click the preview, all I get is a white screen. I have tried with a calendar associated with a gmail.com email address as well as a google business account. Nothing works. What am I doing wrong?

    • Matt
      Posted November 22, 2010 at 1:13 pm | Permalink

      I see you’re getting the “Google calendar embed code appears to be incorrect.” error. Can you verify that your embed code looks something like this?

      <iframe src="https://www.google.com/calendar/embed?showCalendars=0&height=400&wkst=1&bgcolor=%23FFFFFF&src=en.usa%23holiday%40group.v.calendar.google.com&color=%232952A3&ctz=America%2FNew_York" style=" border-width:0 " width="600" height="400" frameborder="0" scrolling="no"></iframe>
      
      • Posted November 27, 2010 at 1:37 pm | Permalink

        Yep, that’s what it looks like. I finally got the calendar to show up by just pasting that text into the html editor of my page.

  16. Posted November 27, 2010 at 9:37 pm | Permalink

    Hi Matt – Awesome plugin! The plugin is working for me but after installing it, whenever I do something in Admin that results in a page refresh, which is pretty much anything, another open window (in Firefox) pops to the foreground. I don’t know why. I tried deactivating the plugin and the behavior stopped. Activated it, and it started again. I’m currently running this on a Mac as localhost and am using v1.0.5.

    Also, came across two errors in the primary PHP file. My line numbers may be off by 1-3 as I’ve updated the script. The first is an error on line 140

    echo ($msg != '') ? $msg : '';

    with the $msg var being undefined. I added a global to the top of the function and that fixed it.

    The second was on line 404

    if($matches[1] != ''){

    with an incorrect offset. I put an “if count >” type of condition around it to clear it up.

    Neither of these fixed the behavior I noted but thought I’d pass this along.

    Thx

    • Matt
      Posted November 29, 2010 at 8:40 am | Permalink

      Thanks for the compliments and help tweaking the code. For the second suggestion, around line 404, are you wrapping the check for a border with a conditional? Do you mind posting that section?

      I’m not sure why another open window in Firefox pops to the foreground. I noticed this behavior but didn’t realize it was being caused by the plugin. I’ll look into it. I’m thinking it has something to do with one of the included JS files and/or how I’m using them in the plugin. Maybe the jQuery dialog or colorpicker is triggering this.

      • Posted November 29, 2010 at 11:11 am | Permalink

        Hi Matt,

        Here’s what I did around line 404:

        	// Get the width of iframe from google embed code
        	$iframe_border = preg_match('/border:(\w+ \w+ #\w+)/',$calcode,$matches);
        	if (count($matches) > 1) {
        		if($matches[1] != ''){
        			$iframe_border = $matches[1];
        		}else{
        			//no border
        			$iframe_border  = '0';
        		}
        	}else{
        		//no border
        		$iframe_border  = '0';
        	}
        

        There’s probably a way to shorten this up but it seems to work. As you use this array several times it may make more sense to create a method you could just call as opposed to repeating the same basic code. This was the only line I saw throwing an error and think this only showed up when debugging was on, which I had done to figure out what was happening with the window flipping.

        While I’m developing the site that has your plugin I’ve deactivated it as I was getting annoyed with another window moving to the front all of the time. Hope you figure that out and thanks for the response.

        Cheers, Jeff

        • Matt
          Posted November 29, 2010 at 4:52 pm | Permalink

          I just pushed up version 1.0.6. I removed a couple of unnecessary JS files that were related to the colorpicker I use. From what I can tell, these were causing the issue with the inactive Firefox window being brought to the front. I also incorporated your suggestions and added the option to select the language the calendar should be displayed in. Let me know if you have better luck with this version.

          • Posted December 1, 2010 at 12:06 am | Permalink

            Thanks Matt. I just pushed a plugin today and am having problems with the ZIP file not being there when you go to download it. Had the same problem with your’s. WordPress automatically creates these files, right? The other thing, WP v3.0.2 just came out today. You may want to do a quick test against it so you can set your compatibility up to 3.0.2. Thanks again. Like this plugin!

          • Matt
            Posted December 1, 2010 at 7:47 am | Permalink

            Yes, the ZIP is created automatically. I ran into the same issue when trying to update one of my client’s sites on the first attempt but retrying it a second time did the trick. Did it finally work for you?

          • Posted December 2, 2010 at 9:48 am | Permalink

            Yes, on the second attempt. Thought it was dependent upon how the download was invoked (install now vs. details/install) but seemed to not be and a second click worked. I updated my readme.txt to alert folks.

            Don’t you wish there were a email notice on comments (not rss). Like a “follow-this-discusion”? Hmmm BTW – Like your comment layout. Pretty cool.

            Cheers

  17. Allan Schmidt
    Posted December 1, 2010 at 7:45 am | Permalink

    One hell of a plugin. Good work.

    One idea (which may be a completely different plugin):
    Will it be possible for my users (for example logged in authors) to add events to the Calendar through a form and/or the plugin?

    • Matt
      Posted December 1, 2010 at 8:02 am | Permalink

      I hate to say it, but yes, it would be a different plugin – or at least a 2.0 of this one :)

      My initial idea was to have something like this included but then I realized that it would probably take more time than I could invest at the moment. I figured it was better to release a plugin that addressed the biggest complaint I had for embedded Google Calendars – the lack of color customization. I plan on adding more features over time and appreciate the compliments and suggestion.

      • Allan Schmidt
        Posted December 2, 2010 at 1:40 pm | Permalink

        I tried to contact you through the contact form, but I’m not sure it went all right?

  18. Kindra
    Posted December 2, 2010 at 11:09 am | Permalink

    Hi, just tried to download your plugin, but the link is broken. Just letting you know!

    • Matt
      Posted December 2, 2010 at 11:18 am | Permalink

      The link isn’t “broken” per se, the WordPress plugin hosting service has been giving me (and others) problems lately. Please, retry the download. The last time it took me 5 refreshes before it finally downloaded.

  19. Carrie B
    Posted December 2, 2010 at 3:18 pm | Permalink

    Your calendar above seems to have the same issue mine does, it’s showing the dates incorrectly and when I try tracing it appears to be an issue with Google calendar in general, very odd.

    • Matt
      Posted December 2, 2010 at 3:21 pm | Permalink

      Yes, this is not related to the plugin but instead Google Calendar itself. It’s a known issue that Google is working on.

      • Carrie B
        Posted December 2, 2010 at 3:32 pm | Permalink

        Yeah, finally found it on the Google Forum, thanks Matt!

  20. Posted December 4, 2010 at 1:18 pm | Permalink

    I used your widget to add a calendar. My theme, vigilance 1.46, has a sidebar on the right of 300 px and the main left portion is 600px. The calendar bleeds across the entire page even though I tried limiting its size using your settings to a width of 600px. Any ideas?

    • Matt
      Posted December 6, 2010 at 8:16 am | Permalink

      I imagine it may have something to do with the CSS of the theme. Can you send me a link to a page where I can view the calendar?

  21. Posted December 5, 2010 at 9:50 am | Permalink

    Dear Matt!
    thanks a lot for Stout Google Calendar!
    I used it at my wife’s site about Nordic Walkin.
    Generally plugin is working quite well, but at MONTH view events are seen at wrong dates!!!
    E.G. at http://www.go2walk.ru/?page_id=564 with aweek view from 6 to 12 December there are 3 events on 8, 11 and 12 December but if You would have a look at MONTH view those event are shown at a wrong dates!!!
    Hope You will be able to give me an idea what is going on and how to fight that
    Best regards
    Nick

    • Matt
      Posted December 6, 2010 at 8:19 am | Permalink

      Please take a look at Carrie B’s comment and my reply above or check out the related post in the forum for the plugin.

      • Posted December 6, 2010 at 8:37 am | Permalink

        Thanks a lot for Your answer!
        I apologize for not searching Net better for an answer!
        Was not able to imagine that it is general Google’s mistake!

  22. dcheng45
    Posted December 19, 2010 at 1:57 am | Permalink

    I am just testing your plugin on this site that I’ve created to learn how WordPress works. I am getting this error “Fatal error: Can’t use https protocol with fopen to retrieve Google Calendar in C:\wamp\www\wordpress\wp-content\plugins\stout-google-calendar\gcalendar-wrapper.php on line 252″. I have no idea what this means and how to fix it

    • Matt
      Posted December 30, 2010 at 8:21 pm | Permalink

      This looks like your hosting/server doesn’t meet the requirements of this plugin. Please review these requirements. You should run a PHP page with phpinfo() to verify everything is in place.

      • Posted February 22, 2011 at 12:49 pm | Permalink

        I’m getting the same error as dcheng45 on a FreeBSD 8.0 box with php 5.3.5 and php-json installed and “allow_url_fopen = On” set in php.ini.

        The https error is preceded by another error:

        PHP Notice: Undefined offset: 1 in /usr/home/p5racing/www.p5racing.com/wp-content/plugins/stout-google-calendar/gcalendar-wrapper.php on line 59, referer: http://www.p5racing.com/?p=104

        Thanks in advance for troubleshooting clues.

  23. Posted December 22, 2010 at 10:08 am | Permalink

    I’d like to be able to filter the calendar to hide private calendar entries. I work in a band with a shared calendar for bookings. At the moment I have to copy an event from the group calendar to my personal one, and edit the title, adding extra details. To put the event on my website, I will also have to have a third calendar and copy the event onwards to that. If I could just filter all my personal events from it by making them “private” that would be perfect. :o)

    • Matt
      Posted December 22, 2010 at 10:26 am | Permalink

      The way private and public events are displayed is handled through your Google calendar settings and options for each event. It seems like you should be able to have a public Bookings calendar with all calendar events set to Public by default. Then you should be able to “hide” individual calendar events by setting them to private. Then you just need to grab the embed code from here

      Here’s an article for Privacy settings for individual calendars.

  24. Posted December 28, 2010 at 6:51 pm | Permalink

    Hi, I tried 1.0.7 version of the plugin within a 3.0.3 wordpress and I can just get this error:

    “Fatal error: Can’t use https protocol with cURL to retrieve Google Calendar in /home/espectac/public_html/wp-content/plugins/stout-google-calendar/gcalendar-wrapper.php on line 232″

    PHP version is 5.2.9
    Curl support enabled: libcurl/7.21.0 zlib/1.2.3 libidn/0.6.5
    Open SSL supported: OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
    Allow url_fopen: Local value ‘on’, Master value ‘on’

    Calendar Code works well if copy and paste url into any browser:

    <iframe src="https://www.google.com/calendar/embed?height=600&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=espectaculos.campos%40gmail.com&amp;color=%23182C57&amp;ctz=Europe%2FMadrid" style=" border-width:0 " width="800" height="600" frameborder="0" scrolling="no"></iframe>
    

    Any idea what I’m doing wrong??

    Many thanks,

    Jorge

  25. Posted January 8, 2011 at 7:49 pm | Permalink

    Hi,

    Do you know why the Stout Google Calendar would load slow on my schedule page?

    See my link here: http://jenyoga.net/index.php/schedule

    Thanks,

    Greg

  26. Posted January 13, 2011 at 4:52 pm | Permalink

    I am unable to get my time to show correctly. On my google calendar it says 9:30 kids on the site it says 4:30PM

    Thanks
    Mike

  27. Posted January 15, 2011 at 8:42 am | Permalink

    I’m trying to add a google calendar from my google apps for business account. I have made everything public as far as I know, but when I view my calendar on my blog it does not show any appointments, only a blank calendar? Any help would be greatly appreciated:)

  28. Posted January 27, 2011 at 5:07 pm | Permalink

    Couple quick questions for some tweaking I’d like to do.

    I notice on your list here its not a blue background/thick border like mine has, it’s tan to match the little booklet image you have there. I’ve got the background to transparent but that doesn’t effect it. Tried a different theme just to check and it was the same there.

    Can I center that iframe in the widget? Right now mine is left justified.

    Last one is the calendar view (using the month as default)….when I click on an event the little pop up ballon comes up, but the x is off the width of my theme and is hidden. Can I make the ballon narrower?

    I didn’t some poking around the CSS file, but didn’t see anything.

    THANKS

    • Posted January 27, 2011 at 5:13 pm | Permalink

      I found the answer to the first question……..I went back and looked and was looking right over it the whole time………..DOH.

      But still would like to see if the other two items are addressable?

    • Matt
      Posted January 28, 2011 at 7:41 am | Permalink

      Glad you figured out the first question.

      Question #2
      For the second question – centering the iframe in the widget area. Every calendar added has a unique id and the one currently on your site is “stout-gc-widget-4″. So you could add this to your theme’s css to get the desired result:

      #stout-gc-widget-4 iframe { 
         margin:0 auto;
         display:block;
         width:300px;
      }
      

      The width should match the width you set for your Stout Google Calendar that you’re displaying in the widget.

      Question #3
      The “balloon” with event details in the calendar view was just fixed in version 1.0.8. I have the balloon now displaying at 80% the actual iframe width instead of the default 400px Google uses. Please let me know if upgrading to the latest version, 1.0.9, doesn’t fix this.

      • Posted January 28, 2011 at 10:15 pm | Permalink

        Thanks, #2 is working just fine now.

        #3, I am on the latest version of 1.0.9

  29. Posted February 7, 2011 at 12:49 pm | Permalink

    Hi there…love this plugin.

    I want to have different calendars for different programs we have – no problem there. Only problem is that I don’t seem to be able to get events from the program calendars to feed into my main calendar through the plugin. I can see the events on my main calendar in google calendar, just not on my site. I have made sure that all calendars are set to public, and have shared the sub calendar with the main one…

    Thanks for any guidance

  30. Posted February 7, 2011 at 2:09 pm | Permalink

    How’d you display your calendar inside the pages of a book? That looks cool. TIA

  31. Chris
    Posted February 11, 2011 at 8:18 pm | Permalink

    Hey,

    Great plugin. A question:

    I have in my calendar both busy and available events. Details are hidden in Google in the share settings. In the calendar, with this plugin, only busy appointments show up.

    I would like the available events also to show up. Is that possible?

    Thanks,
    Chris

    • Matt
      Posted February 14, 2011 at 8:39 am | Permalink

      Usually issues with which events/calendars are displayed is because of the share settings of the Google calendar. This plugin basically skins the look of the default Google calendar and gives you some control of editing display setting within your WordPress install.

      Does your Google Calendar work as expected when just using the Google embed code on your site WITHOUT using the Stout Google Calendar plugin? Make sure you log out of your Google account to see how it will display to your site visitors.

      • Chris
        Posted February 15, 2011 at 3:17 pm | Permalink

        Hi,

        Using the embed option from google displays available appointments. Using your Plugin does NOT display them… It is a bit weird, right?

        What would you recommend me to do?

        Chris

        • Matt
          Posted February 15, 2011 at 3:22 pm | Permalink

          Please send me your Google embed code and let me know the name of an available appointment that should show up.

        • Chris
          Posted February 15, 2011 at 3:23 pm | Permalink

          EDIT:

          Login out of my account hides the available events. It might just be a problem in Google Calendar then, so now I need to find a solution for that.

  32. Posted February 13, 2011 at 8:48 am | Permalink

    Works perfectly and solved one of my expense issues!! Thanks… A LOT!!! :)

  33. Posted February 21, 2011 at 6:25 am | Permalink

    getting this on all my sites that have your plug in, both the page and the widget.

    You don’t have permission to access /wp-content/plugins/stout-google-calendar/gcalendar-wrapper.php on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Permission are all set to share public.

    • Posted February 21, 2011 at 5:57 pm | Permalink

      argh….and now, maybe out of coincidence I can’t change my calendars. When I make a change like width, and save, it doesn’t save the changes.
      HHHAAALLLLPPP! LOL

      • Posted February 21, 2011 at 6:02 pm | Permalink

        (sorry, this is what I posted before the last comment, but accidently put it on one of my previous posts) (I’m still have the issue of not being able to change my calendar size color etc. and have it save the changes)

        This is what my server told me I have to do to get this (the error message) problem solved…
        “You will need to contact us and request that we whitelist mod_sec rules for your domain. ”
        I asked the Tech Person why this was neccisary and was told . . .
        “I am not sure. The only thing that I can tell you is that it is hitting on of the mod_sec rules.”
        So, they work now on my server, but what a pain thats going to be if everytime I build a site and use this …and I use it on most all my sites… I have to request that they white list my blah blah blah.
        argh.
        Also, my server is HostGator, and I love them to death.
        Maybe you can figure out what causes this issue and write something that does away with the issue.
        Thanks again for the Most Wonderful Plug-In.

      • Matt
        Posted February 22, 2011 at 8:56 am | Permalink

        I really don’t know if this will work or not but try deactivating the plugin and reactivating it. Then, try to change the colors, etc.

        • Posted February 22, 2011 at 9:49 pm | Permalink

          Everything seems to be working now after I updated it to the new update.
          Well this new update solve the Mod-sec rules issue too?
          Also,
          Thanks once again!
          I can’t Praise enough the great work you do and the great plug-in that this is.

          • Matt
            Posted February 22, 2011 at 9:52 pm | Permalink

            I hope it will solve the Mod-sec issue. I’m using an entirely different method to retrieve the calendar from Google which is suppose to work better across various hosting environments. I guess we’ll have to wait see if it works out for others as well. Keep your fingers crossed ;)

  34. Henrik
    Posted February 23, 2011 at 9:09 am | Permalink

    Receiving this error line when trying to display man calendar, any answer?

    Fatal error: Cannot use object of type WP_Error as array in D:\wamp\www\wordpress\wp-content\plugins\stout-google-calendar\gcalendar-wrapper.php on line 38

    using the latest update.

    Best regards Henrik

    • Matt
      Posted February 23, 2011 at 10:41 am | Permalink

      Just sent you a modified gcalendar-wrapper.php file. Please let me know if that fixes the issue or if you get a more descriptive error.

      • Posted February 23, 2011 at 1:42 pm | Permalink

        I’m getting the same error since upgrading to WP 3.1.5.

        • Matt
          Posted February 23, 2011 at 2:00 pm | Permalink

          A new version of the plugin has been released. Please try version 1.2.3. I don’t think it will solve this problem but should give some idea what the real error is

          • Posted February 23, 2011 at 2:18 pm | Permalink

            Thanks. Here’s the page that references a Google calendar with shortcode:

            http://www.p5racing.com/?p=104

            With v. 1.2.3, the error is now “Could not open handle for fopen()”. This is odd in that php.ini file has this line:

            allow_url_fopen = On

            TIA for future troubleshooting clues.

  35. Posted February 24, 2011 at 11:50 am | Permalink

    Keven, I have the same issue and also use hostgator. This was all working fine before the last WP update. (not the most recent one). I ended up having to use another plugin that is not as good. :(

    I’ll have to try Matt’s latest update.

    -daniel

  36. Posted March 9, 2011 at 8:22 am | Permalink
  37. Posted March 10, 2011 at 10:28 am | Permalink

    Thanks so much for this plugin! I love it. It is so much better to be able to use Google Calendars on my site than dealing with some of the awkward plugin interfaces for WP calendar plugins.

    I’m having a problem though. I’m getting the following error on my pages.
    “The following error(s) occurred: http_request_failed
    Operation timed out after 5000 milliseconds with 0 bytes received”
    Any idea on what is going on?

  38. Rob
    Posted March 11, 2011 at 8:41 pm | Permalink

    Looking forward to using this but when I try to preview/imbed I get the following:

    The following error(s) occurred: http_request_failed
    SSL certificate problem, verify that the CA cert is OK

  39. Rob
    Posted March 12, 2011 at 3:53 am | Permalink

    Now I am getting:

    The following error(s) occurred: http_request_failed
    SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

    • Matt
      Posted March 21, 2011 at 8:20 am | Permalink

      I have a potential fix for this that I am going to roll into the next release. In the meantime, please take a look at this forum post which addresses verifying SSL certificate problems

  40. Heath
    Posted March 15, 2011 at 6:00 am | Permalink

    Thank you for the plugin, it is awesome. I was wondering if you could help me with an issue. I am getting this error:

    “The following error(s) occurred: http_request_failed
    name lookup timed out”

    Do you know of any way to correct this?

    Thanks

  41. Posted March 16, 2011 at 3:18 am | Permalink

    The plugin looks great. I followed the instructions from your blog but get this error when I try to preview:

    The following error(s) occurred: http_request_failed
    error setting certificate verify locations: CAfile: /usr/local/share/certs/ca-root-nss.crt CApath: none

    The calendar plugin is not showing any calendars that I have added, either.

    Thank you for your help.

    Erika

    • Matt
      Posted March 21, 2011 at 8:19 am | Permalink

      I have a potential fix for this that I am going to roll into the next release. In the meantime, please take a look at this forum post which addresses verifying SSL certificate problems

  42. Posted March 20, 2011 at 4:58 am | Permalink

    Hi

    The plugin works really well. However, our site is a “red” color and the blue links are disturbing, and we would like to use our own font. Is there any way to provide access to more aspects of the CSS without over complicating things? Perhaps you can allow some kind of overriding of the default CSS. The underlying Google code is quite messy though…

    Thanks for any ideas…

    David

    • Matt
      Posted March 21, 2011 at 8:17 am | Permalink

      I guess we could add a text area for CSS input. This would be a more “advanced” feature since it would leave CSS styling wide open and totally up to the blog owner/admin. That person would have to know how to get the CSS properties from the Google Calendar (via FireBug, etc) in order to override them. Like you said, this could get quite messy but would give much more control over styling for those who are up to the challenge.

      • Posted March 28, 2011 at 11:48 am | Permalink

        I second this suggestion. It would have solved my “float right” issue if I could have just entered this via the plugin admin. Great idea David.

  43. Posted March 28, 2011 at 10:40 am | Permalink

    Hi, I’m using your plugin but am having trouble adding a class to the calendar so I can float right. I’m pasting the shortcode into a page. I tried

    [stout_gc id=1 class="googleagenda"]

    for instance and am not having any success. Can you point me in the right direction? I understand adding a class to an iframe but can’t seem to find any way to get this thing to float right. Using Firefox I floated the element.style class right but cannot give this thing a class successfully. Thanks for the help!

    • Matt
      Posted March 28, 2011 at 11:04 am | Permalink

      There is not an option within the shortcode to specify a CSS class name. All you need to do is wrap the shortcode in a div. You can give the div a class and/or inline styles from there. Something like this should do the trick:


      < div class="googleagenda">
      [stout_gc id=1 ]
      </div>

      Edit: Just fixed formatting issue to display div

      • Posted March 28, 2011 at 11:47 am | Permalink

        Hey Thanks for the quick response Matt. I pasted that exact code into both visual and html display on my page and I’m seeing the calendar but I also see the code. Am I missing something? Also, won’t this code disappear like an iframe does when editing via visual editor? I thought that was the biggest advantage of using shortcodes.

        • Matt
          Posted March 28, 2011 at 11:56 am | Permalink

          You won’t be able to copy and paste the code b/c I had to use the HTML entities for the greater than and less than signs to show up in the example. If you look at the post’s source/html you will probably see the HTML entities instead of the greater than and less than signs.

          • Posted March 28, 2011 at 12:41 pm | Permalink

            Beautiful. I had to type it out in the HTML editor. Thanks so much for your help and this cool plugin.

  44. Posted April 12, 2011 at 4:46 am | Permalink

    Hi Matt,

    Very useful plugin – thank you! Can I suggest adding a simple error trap, ‘friendly message’ for the occasional Google timeout?:

    We get this rarely:
    The following error(s) occurred: http_request_failed
    Operation timed out with 0 out of -1 bytes received

    If this occurs, could the plugin return a friendlier message string such as:

    Google Calendar temporarily unavailable. Please refresh page to try again.

    Thanks!

    • Matt
      Posted April 12, 2011 at 7:29 am | Permalink

      Thanks for the suggestion. I agree that we should be handling the errors a bit more gracefully and we’ll look at incorporating in a future release.

  45. Posted April 14, 2011 at 1:06 pm | Permalink

    Hello,

    I just added this plugin to my website and I clicked preview and it gave me this error message:

    The following error(s) occurred: http_request_failed
    Protocol https not supported or disabled in libcurl

    How do I fix this?

    Thank you,

    Ian

  46. kelsheikh
    Posted April 15, 2011 at 8:05 am | Permalink

    Is there a way to only show this load this plugin on a certain page? I found it conflicting with a wpsymposium plugin when both are active.

    • Matt
      Posted April 15, 2011 at 12:11 pm | Permalink

      There isn’t a setting in the widget but you can create a template for the page you want it on and use the template tag provided to display it.

  47. E. Hill
    Posted April 22, 2011 at 2:13 pm | Permalink

    Why has my host contacted me informing me that I have 48 hours to remove this plugin because Google deems it a phishing scheme?

    • Matt
      Posted April 22, 2011 at 2:23 pm | Permalink

      I don’t know why Google would deem it as such and this is the first I have heard of this. What hosting company are you with? What brought the plugin to their attention and raised the concern?

      The plugin is simply overriding CSS / styling of the Google Calendar with a user specified color scheme. Not sure how that is considered phishing. Any clarification is welcome. I’m willing to “fix” the plugin if possible to avoid it being considered a phishing scheme.

      • E. Hill
        Posted April 23, 2011 at 12:57 am | Permalink

        I’m using Hostmonster and contacted their TOS department today to confirm it was actually them who sent the email. They told me the server admins informed them that Google now considers this plugin a phishing scheme. My site has been labeled harmful, which is bad since it a site for a medical professional client of mine. I had to deactivate the plugin, which was used to update hours of operation for the client, and resubmit the site to Google.

        They offered little information on the issue telling me that it is coming from Google.

  48. Posted April 22, 2011 at 5:54 pm | Permalink

    Bluehost contacted me about removing it in 48 hours also stating it is a phishing scheme. If I do not remove it, they will shut down my site. I will have to remove the plugin until this can be fixed. Please help!

    • Matt
      Posted April 22, 2011 at 6:18 pm | Permalink

      please see the other comment thread

  49. Heath Christopher
    Posted April 22, 2011 at 10:01 pm | Permalink

    I have been using your plugin for several months but this alert warning of “phishing” was sent by host account just today so I had to remove it… I don’t even quite know what “phishing is” but anyways can you help me or explain what happened and also does Google own the internet now that all hosting companies comply to Google standards or else they shut you down? Here’s the message that was sent-
    Your account was reported to us by Google for malicious content. We ran a search on your account for the content that was reported and found that you are running the Stout Google Calendar plugin (http://wordpress.org/extend/plugins/stout-google-calendar/) in your WordPress installations in the following locations: ——

    Google is reporting sites that use this plugin to us as being phishing sites (phishing : the practice of using fraudulent e-mails and/or copies of legitimate websites to extract data from site visitors for purposes of identity theft) because the plugin asks for your site visitors’ Google login. Since the login information is processed in your cristaogoiano.com’s account and not directly on a Google server, this technically constitutes phishing.

    We will normally deactivate accounts for phishing, but we realize that you did not install this plugin with malicious intent. We are instead sending this notification asking you to remove this plugin. Because this technically is phishing, we can only allow you 48 hours to remove this plugin. If, after 48 hours, we find that the plugin is still on your account, we will have no choice other than to deactivate your account. Please give this your immediate attention so that we can avoid downtime on your account as much as possible. We do not require a direct response from you regarding your actions on this matter; we will run a new review of your account after 48 hours and verify removal of the plugin.

  50. Matt
    Posted April 22, 2011 at 6:17 pm | Permalink

    Thanks for the message. I’ll try to get to the bottom of this. The whole issue stems from an embedded calendar not being shared publicly. So, if it’s not shared publicly and embedded on a site (which is public), users are asked to login. This is the EXACT SAME behavior you get when embedding a Google Calendar which is not shared. I’m not sure why this plugin, which only modifies CSS, is being treated as phishing/malware. Let me see if I can trace down anyone in the Google forums who can shed some light on their assessment of the plugin. Any contact names or numbers you may have for your hosting company may help as well. You can email them to [email protected]

  51. mitch334
    Posted May 25, 2011 at 10:51 am | Permalink

    Any updates on the “phishing/malware” issue?

    Thanks.

5 Trackbacks

  1. By Stout Google Calendar Plugin | Wordpress Plugins on November 2, 2010 at 12:33 pm

    […] Stout Google Calendar plugin allows you to easily add and customize embedded Google Calendars to your WordPress site. […]

  2. By Stout Google Calendar Plugin | Wordpress Plugins on November 2, 2010 at 1:34 pm

    […] short, Matt McKenny at Stout Design for the Stout Google Calendar WordPress plugin (admin interface, widget, shortcode, etc), Chris Dornfield for the […]

  3. By Stout Google Calendar Released! on November 3, 2010 at 6:22 am

    […] Stout Google Calendar plugin for WordPress has been released! You can read more about it on the Stout Google Calendar page on this site or download it from the WordPress Plugin […]

  4. […] Stout Google Calendar (Matt McKenny): I believe the reason this plugin was created was to add more control around an embedded Google Calendar’s color scheme. It is much more than this and an awesome plugin if you use Google Calendar. I’ve used it to add a monthly calendar on a page as well as an agenda calendar in the sidebar. […]

  5. […] Stout Google Calendar was my next install. This quick one-click-install plugin allows insertion and modification of a google calendar. Normally when embedding a google calendar into your site, there is no control over the color scheme. This plugin allows you to change the colors of the calendar, the size, the format, and remove features that are not wanted such as the print button. I placed a calendar showing the phases of the moon on my Event page. This plugin would be useful for a business who wants to display their events to the public, such as a venue or bar that features live music regularly. […]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
To post code, write it like [code]Your code here[/code] to keep it's fomatting.