jojaba
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Word Count and Limit] Limit words in text box?No. This plugin counts only the words in the main edit post (or custom post) window.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Using Gcal v3 API on localhostI already try it out with curl turned on, but this didn’t help either.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Using Gcal v3 API on localhostIs it possible that it comes from my hosts file?
I paste here the content of the file I changed (the 4 lines, 1 commment and 3 local IP adresses:# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # For Google calendar on localhost 192.168.0.13 test.com 192.168.1.23 test.com 192.168.1.10 test.com # localhost name resolution is handled within DNS itself. 127.0.0.1 localhost ::1 localhostForum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Using Gcal v3 API on localhostNo the php extension curl is not activated.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Using Gcal v3 API on localhostHello,
Did you manage to get the plugin work on localhost?
I tried to use my box IP in the dev console settings field, but this still didn’t work.
Just to be sure I’m not going the wrong way: I can create multiple api key for a calendar and use them simultaneously, is that correct?Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Using Gcal v3 API on localhostJust tried. didn’t work :/
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Using Gcal v3 API on localhostYes I did it. No better result.
Maybe I should ask on google calendar forums (I don’t know if they exist…)Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] css switch to footer, not correct!For the filtering solution I added at the end of the previous message, the search could be done on astring like “gce-feed” instead of a shortcode (if the string “gce-feed” is added in the post content before filtering, I’m not sure this is the case…). This solution takes also in account the scripts loading or not.
[edit]
A stronger way to handle this is to take in account the post type (gce_feed) when looping on posts…
[/edit]Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] css switch to footer, not correct!Oh I see. that’s a good idea.
I tried with this code:public function enqueue_public_styles() { if (is_single() && get_post_type() == 'gce_feed') wp_enqueue_style( $this->plugin_slug . '-public', plugins_url( 'css/gce-style.css', __FILE__ ), array(), $this->version ); }Works for calendar on single page but not for widget…
Maybe the solution is here (uses shortcodes): http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] css switch to footer, not correct!The issue opened on github: https://github.com/pderksen/WP-Google-Calendar-Events/issues/19 😉
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] css switch to footer, not correct!Found what changed.
In file class-google-calendar-events.php on line 147:
wp_register_style( $this->plugin_slug . '-public', plugins_url( 'css/gce-style.css', __FILE__ ), array(), $this->version );
The wp function has been changed. Revert to the previous function (in previous versions) wp_enqueue_style() to have the plugin again good to go for this issue.
In other terms, replace:
wp_register_style( $this->plugin_slug . '-public', plugins_url( 'css/gce-style.css', __FILE__ ), array(), $this->version );
By:
wp_enqueue_style( $this->plugin_slug . '-public', plugins_url( 'css/gce-style.css', __FILE__ ), array(), $this->version );
I will report this issue to the developpers.Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Failed to connect to GoogleYour welcome Nick. Thanks for your hard work (especially for the Google calendar v3 update!)
Hello,
I’m not sure I’m writing on the right place but Phil mentionned this in a previous message:
In addition, we welcome pull requests on the GitHub source for our WP plugin.
I’m not familiar with github (I really should take some time to learn more about it!) so I give you my contribution here.
I completed, updated, and improved the french translation. In addition, I pointed out some localization problems in the plugin core files that should be fixed in github.
My comments:In \google-calendar-events\includes\gce-feed-cpt.php
====================================================
Line 94:
add_meta_box( 'gce_feed_meta', 'Feed Settings', 'gce_display_meta', 'gce_feed', 'advanced', 'core' );
Sould be:
add_meta_box( 'gce_feed_meta', __('Feed Settings', 'gce'), 'gce_display_meta', 'gce_feed', 'advanced', 'core' );Line 97:
add_meta_box( 'gce_feed_sidebar_help', __( 'Helpful Links', 'gce' ), 'gce_feed_sidebar_help', 'gce_feed', 'side', 'core' );
Should be (omitted one ‘l’ in helpfull):
add_meta_box( 'gce_feed_sidebar_help', __( 'Helpfull Links', 'gce' ), 'gce_feed_sidebar_help', 'gce_feed', 'side', 'core' );Line 99:
add_meta_box( 'gce_display_options_meta', 'Display Options', 'gce_display_options_meta', 'gce_feed', 'side', 'core' );
Should be:
add_meta_box( 'gce_display_options_meta', __('Display Options', 'gce'), 'gce_display_options_meta', 'gce_feed', 'side', 'core' );In \google-calendar-events\views\widgets.php
============================================
Line 197:
$title_text = ( isset( $instance['display_title_text'] ) ) ? $instance['display_title_text'] : 'Events on';
Should be:
$title_text = ( isset( $instance['display_title_text'] ) ) ? $instance['display_title_text'] : __('Events on', 'gce');Line 206:
<label for="<?php echo $this->get_field_id( 'title' ); ?>">Title:</label>
Should be:
<label for="<?php echo $this->get_field_id( 'title' ); ?>">__('Title:', 'gce')</label>Line 231:
<label for="<?php echo $this->get_field_id( 'order' ); ?>"><?php _e( 'Sort Order (List View only):' ); ?></label>
Should be:
<label for="<?php echo $this->get_field_id( 'order' ); ?>"><?php _e( 'Sort Order (List View only):', 'gce' ); ?></label>The new fr package (including the fix for the comments above):
http://perso.jojaba.fr/stockage/gcalEvents_fr_locale_jojaba_2014-11-20.zipI saw that the private key has been set in the \google-calendar-events\includes\class-gce-feed.php file (line 29). I guess this is the api key of the plugin developpers. I know that a max amount of 500.000 requests/day is allowed for calendar api. If we all use this key, shouldn’t we get issues?
Hello and thanks a lot!
Works fine for me on my web hosting but not on localhost (too bad!). Is there a way to make it work on my local installation?