Minor Plugin Updates
I just tagged new versions of the http-authentication and ical-events plugins:
The releases include updated readme files for the really slick WordPress plugin directory that was released today.
The ical-events plugin also contains a minor fix for to avoid a case where a repeat was added after the RRULE end time.
March 17th, 2007 at 11:16 am
Hi Daniel!
Love your iCal events plugin.
I’m trying to get it to update multiple times daily…but can’t find the `ICAL_EVENTS_CACHE_LIFETIME` line in the plugin.
Could you tell me where it is…and maybe tell me how I might re-write it to check every few hours instead of once a day? Thanks!
Jeff
March 17th, 2007 at 8:59 pm
Jeff,
My apologies - I renamed the constant used to determine how long to cache but forgot to update the readme. The line you’re looking for is:
define('ICAL_EVENTS_CACHE_TTL', 24 * 60 * 60); // 1 dayTo have it update every 4 hours, change it to:
define('ICAL_EVENTS_CACHE_TTL', 4 * 60 * 60);I’ve updated the readme and released a new version to correct this. Thanks!
March 22nd, 2007 at 2:50 am
Hey Daniel…sorry to bug you again.
My site is: http://www.jeff-hopkins.com. I’m using the plugin, and I’ve got a bunch of lines that look like this:
Unsupported iCal BYMONTHDAY value “BYMONTHDAY=1″
Unsupported iCal BYMONTHDAY value “BYMONTHDAY=22″
Unsupported iCal BYMONTHDAY value “BYMONTHDAY=4″
Before I see some events that seem to be posted the right way.
Ever seen anything like that? Looks like something in my iCal is weird…but I don’t know what.
Thanks in advance, I’m digging the plugin.
Jeff
March 22nd, 2007 at 10:48 am
Jeff,
Certain types of events are not supported by the plugin at this time. The parser doesn’t handle all recurrence rules (e.g. BYMONTHDAY), and I haven’t had a chance to add them.
For now, you can download 1.12 to hide those error messages from:
http://svn.wp-plugins.org/ical-events/tags/1.12/
Be sure to grab all four files and replace the current ones you have.
March 22nd, 2007 at 11:59 pm
Thanks, that fixed it!
Really appreciate all the help.
Jeff
March 30th, 2007 at 1:47 pm
I am using http-authentication 1.7.
I have apache authentication protecting the whole site, so when a user sees any page, they have definitely authenticated against apache.
When a user first goes to my Wordpress site, if they try to add a comment to an existing post, they get presented with the “Name / Mail / Website” fields above the comment. So at this point it does not seem that they are “logged in.”
If the user attempts to create a completely new post, when they get to the post creation screen they ARE automatically logged in. If they then go back at some point to put comments on any post, it now shows them as logged in.
So it seems like the users need to go somewhere in wp-admin to “trigger” being logged in, then they are fine throughout the site.
What can I do to get the user to be “logged in” to wordpress in the first place?
Is that clear?
March 30th, 2007 at 2:13 pm
Just as a follow up to my last comment, I went and turned on the Wordpress option:
Users must be registered and logged in to comment
Now when a user tries to add a comment (if they have not yet been into wp-admin) they get:
You must be logged in to post a comment.
If they click “logged in” in that message, it does log them in automatically.
I would prefer if the users were just automatically logged in in the first place and never saw that message.
March 30th, 2007 at 8:30 pm
Sam,
Give the Angsuman’s Authenticated plugin a try. It requires people to be logged in to see your blog. When used in conjunction with the http-authentication plugin, this should be transparent to users once they’re logged in to the external authentication mechanism.
There are a few other restriction plugins available in case you’re looking for more fine-grained control.
March 31st, 2007 at 8:03 pm
That did the trick, thanks.
April 9th, 2007 at 4:50 pm
[...] (2007-04-09): Version 1.12 is out; download it from the WordPress plugin [...]
April 16th, 2007 at 2:07 am
Thanks for the update dwc, i am using http-authentication on some of my blogs,its really nice (i recoded some
)
April 25th, 2007 at 3:55 pm
Hi dwc,
is there a way to wrap an event into an event_url using google calendar?
Thanks a lot!
April 27th, 2007 at 11:18 am
k,
The ical-events plugin does support event URLs (linking the summary by default). However, I’m not sure if Google Calendar supports this field.
May 3rd, 2007 at 8:58 am
I’m trying to add your calendar to this site that I manage, and for some reason the hours do not show up. I’ve pasted in the example php for the florida calendar and it shows the same behavior as the google calendar I’m trying to post. I’m assuming it’s something I’m doing wrong since no one else here is having that problem.
May 5th, 2007 at 2:44 pm
arley,
Do you have an ical-events-cache folder inside your wp-content folder? Are there any files in it?
June 22nd, 2007 at 9:29 pm
Hey, don’t mean to crash the party, but was just browsing your site and found the Plugins link in the sidebar is dead….says 11 post but gives me a 404 when I click on it. Also, the UH link is dead. Just a FYI.
Don
July 2nd, 2007 at 8:14 pm
Hey, Don. Thanks for the heads up.
I’ve reverted back to WordPress 2.2 for now. WordPress trunk contains some changes to the category structure that don’t seem to be complete.
July 30th, 2007 at 7:26 pm
Daniel,
Great work on the iCal plugin. I’m the author of another wordpress plugin, the KB Countdown widget. It counts down the number of days, weeks, etc to a specific event.
I’ve had people ask me in the past about making my plugin able to handle multiple events (via an iCal file, for example). So I’m currently updating my plugin, and I think I’ll make it piggyback on yours. That is, if my plugin detects that the class “ICalEvents” is defined, then it will offer them options to use an iCal source instead of just specifying a single date, and then it will use your plugin on the backend.
Just thought I’d give you a heads up, since this could increase downloads of your plugin, which could increase the number of people who come here to ask about errors they might get parsing iCal files.
July 31st, 2007 at 12:16 am
Adam,
That sounds cool! Let me know if you have any questions.
November 8th, 2007 at 3:41 am
Hi,
thank you for the great plug in.
I think my problem is not a problem of your plugin - but maybe you have an idea.
I’m using google calendar and I try to set a link in the event-title. It works in google calendar and in the ics-file it is also correct.
but in the source of my website produced by wordpress instead of
January 4th, 2008 at 9:34 am
This is a great plugin.
I also tried to put a URL embedded in the Google Calendar and Ical cannot parse it. It appears something is transcoding the vital “;
$queryString .= “&after=”;
$queryString .= “&before_date=”;
$queryString .= “&after_date=”;
$queryString .= “&use_summary=true”;
$queryString .= “&before_summary=”;
$queryString .= “&after_summary=”;
$queryString .= “&use_description=0″;
$queryString .= “&replace_newlines_with=”;
$queryString .= “&before_description= - “;
$queryString .= “&after_description=”;
$queryString .= “&use_location=0″;
$queryString .= “&before_location= (”;
$queryString .= “&after_location=)”;
$queryString .= “&use_url=0″;
$queryString .= “&gmt_start=”;
ICalEvents::display_events($queryString . time()); ?>`
January 4th, 2008 at 9:35 am
Whoops that last comment got munged…
January 5th, 2008 at 9:36 pm
I had a calender with my primary e-mail/google calendar as a test, and it worked.
Now i’ve switched to the calendar I WANTED it to work with (i.e. different e-mail) and it is telling me there is a parsing error.
If I switch the e-mail back to the original one, it works. Any idea what’s up?
January 23rd, 2008 at 9:54 pm
Hi
Thanks for your plugin. Im using it with mod_ntlm and apache for an intergrated SSO. I am having a problem where unless I proctect the entire Wordpress directory with NTLM, it will fail to authenticate and bring up the “No REMOTE_USER found……”. I have applied NTLM to be used for /wp-login.php and /wp-admin/. Are there any files I’m missing?
Thanks in advance
Ryan
January 24th, 2008 at 8:26 pm
Ryan,
What version of WordPress are you using?
I’m not familiar with mod_ntlm but for some reason it sounds like it’s not protecting the directory. Do your server access logs show a username?
March 5th, 2008 at 6:17 pm
You’ve got a nice plugin! But I can’t get it to work with iCal from my online .mac account
When I use the url to the ics from the txt file, I get everything to work. So I assume it has got something to do with the ics from my online calendar (http://ical.mac.com/deezjee/tourlist)
Can you help me?
March 5th, 2008 at 6:21 pm
DeezJee,
Try this recommendation - the URL is a little different.
March 6th, 2008 at 4:40 pm
That’s it! Thank you very much!
Keep up the good work
March 31st, 2008 at 7:09 pm
I was using your HTTP Authentication plugin for 2.3.3 just fine.
I upgraded to 2.5 today, and now whenever I login with my custom process, I get taken to wp-login.php.
From there, I can enter in anything in the username and password fields and hit submit.
After it re-displays the login saying incorrect password, I type in /wp-admin in my location bar manually, and it lets me into the admin area.
But, I HAVE to type in something to the username/password fields first.
It’s almost like add_action(’wp_authenticate’…) is not being called anymore in 2.5.
Any thoughts on why it’s not working?
Thanks!
April 1st, 2008 at 8:05 am
Ryan P,
I briefly tested 2.5 last week and ran into the same behavior. I haven’t had a chance to dig into the problem more, but I hope to do so this week.
April 1st, 2008 at 9:48 am
Ok, thank you.
This guy says wp_authenticate is deprecated in 2.5: http://adambrown.info/p/wp_hooks/hook/wp_authenticate
so I’m not sure what the replacement would be.
April 1st, 2008 at 9:11 pm
I left a comment on an older post before I found this — sorry!
As for wp_authenticate being deprecated: I looked in wp-includes/pluggable.php and wp_authenticate is there. It does say @since 2.5 which seems a little strange. Perhaps it implemented differently prior to 2.5?
Anyway, the workaround from Ryan P shows us that wp_authenticate is still being called on regular page loads. But it looks like wp-login.php no longer directly calls do_action_ref_array(’wp_authenticate’, array(&$user_login, &$user_pass)); but instead calls wp_signon() which is in wp-includes/user.php
I think this change in wp-login.php is the culprit, because wp_signon() wants to either be passed some credentials or have them posted from a form — and it will return before calling wp_authenticate if that’s not the case. In prior versions, the do_action_ref_array(’wp_authenticate’, array(&$user_login, &$user_pass)); happened even if the user_login and user_pass were empty.
What’s maddening is that I don’t know where to find the WordPress documentation for this change. Obviously someone had an idea of how they want authentication to work in WordPress 2.5. How can we know what they were thinking? It doesn’t seem that wp_signon is pluggable, so how is this stuff supposed to work?