Upcoming Events and WordPress 2.1

It looks like WordPress 2.1 is getting closer to being out the door… The WordPress Development blog just made a post to suggest the plugin authors check their code to make sure if it’s naughty or nice. Well, Upcoming Events is somewhere in between. I followed the instructions on WordPress’ site for creating tables in the database which said to use $table_prefix in order to get the configured prefix (wp_ by default). It seems, however, that I should actually be using $wpdb->prefix instead. Fortunately, $table_prefix is just depreciated, not eliminated so even version 0.1 of Upcoming Events is WordPress 2.1 ready. Upcoming Events 0.4, when it comes out, will use the shiny new $wpdb->prefix interface.

UPDATE 11-Dec-2006: I edited the WordPress wiki to reflect the fact that $wpdb->prefix is now the prefered method.

26 Replies to “Upcoming Events and WordPress 2.1”

  1. Asron, the above mentioned naughty or nice post says:

    […] the former $table_prefix variable that developers could globalize before to find the MySQL table prefix defined in wp-config.php has also been deprecated in favor of $wpdb->prefix.

    I’ve tested my plugin in 2.1alpha3 and it still worked.

  2. Hey Jake,
    thanks for your Plugin. Got a simple problem on my site (it’s down at the right side): When I got more than one date a day, it seems there is a brake missing, the titles of the events are written in one line, and they don’t have the padding that is use for list elements normally… maybe you can help in here 🙂

  3. Hey Jake,
    I uploaded and installed your plugin. I inserted two links to a google calendar – one for birthdays, one for events.
    The birthdays seem to be shown regularly, but the other ones do not. Each of the events starts on Jan 1st and end on the defined date. So each event starts on January 1st.
    Have you already had someone with such a problem?
    What do you suggest I can do?
    Yours sincerely Falko

  4. Falco,

    There is a problem (at least with Google calendar) and I was trying to work with Jake on this one. Any recurring yearly events work with no problems. Any other dates or events do not work. They appear blank. I think there are issues on how the Google data is parsed or the version of PHP that I’m running. It’s a little older that what Jake, I believe, is running. Of course, I could be completely wrong since I don’t know much about PHP coding. Anything I’ve done with the help of Jake don’t seem to work. I just wish Google would just make a unified calendar feed so multiple calendars wouldn’t be an issue.

  5. Is there any way to have the widget display events that are at a specific time. It correctly shows all of my events that are all-day events but completely leaves out all events that have a specific time.

  6. Awesome plugin… but I have just one question…

    when I just tried to run it, but any events that have time on it is not showing up… Any idea? (I use google cal)

  7. I downloaded your Plugin and started to fix all the errors in it but finally I gave up. It’s really a pitty because I thought it might be worth using it. Please continue your project and release a stable version. The parsing of ICS Events is broken as well.

  8. Most of the people who’ve been having problems with events that are not all day events are most likely using PHP version 4. It seems not to work with the date/time format ical uses for events that have a specific time. The upcoming version 0.5 (no, I don’t have a release date) should fix this issue.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.