WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: The Events Calendar] TEC 1.6.2 released (38 posts)

  1. justinendler
    Member
    Posted 4 years ago #

    Hi All,

    1.6.2 fixes most of the recent 1.6 bugs and adds some features. This was supposed to be 1.6.1, but due to an svn flub by me, I had to push it on to 1.6.2. Here's the changelog:

    = 1.6.1 =

    Features

    * override plugin css by putting a custom events.css in /wp-content/[your-theme]/events/
    * override calendar view by putting a custom table.php in /[your-theme]/events/
    * iCal import buttons added to calendar and list views

    Translations

    * Russian added [Vsevolod Gavrilenko]
    * French updated [Boddhi]

    Bugs

    * new month previous and next links now translate
    * the calendar view tooltip on mouse hover now truncates the post content
    * state/province now shows properly on post edit page load

  2. kgagne
    Member
    Posted 4 years ago #

    Thanks, Justin! I just installed it.

    I've tried submitting some bugs on earlier versions in these forums, but they never receive a response and the issues are still in the latest version. Is there a different way I can report these problems?

  3. drewmisterh
    Member
    Posted 4 years ago #

    Justin,

    Thanks for the updates including the issue of template files only being overridden from template theme and not child theme. Also thanks for adding support for overriding events.css. Unfortunately this new code also does not support child themes.

    Please adjust your code so that it will also look in the stylesheet folder for custom events.css.

    if( file_exists( STYLESHEETPATH.'/events/events.css' ) ) {...

  4. justinendler
    Member
    Posted 4 years ago #

    @kgagne

    Sorry about that. This is indeed the place for bugs. I looked through some of your posts and I remember fixing a couple of the problems. Do you mind giving me a summary of the biggest bugs that persist with this new version?

    @DrewmisterH

    Maybe I can learn something from this, not having used child themes...
    Can you test the below code and see if it holds water with your setup?

    Replace loadDomainStylesScripts() in the-events-calendar.class.php with:

    public function loadDomainStylesScripts() {
        load_plugin_textdomain( $this->pluginDomain, false, basename(dirname(__FILE__)) . '/lang/');
        $eventsURL = trailingslashit( WP_PLUGIN_URL ) . trailingslashit( plugin_basename( dirname( __FILE__ ) ) ) . 'resources/';
        wp_enqueue_script('sp-events-calendar-script', $eventsURL.'events.js', array('jquery') );
        if( file_exists( TEMPLATEPATH.'/events/events.css' ) ) {
            $templateArray = explode( '/', TEMPLATEPATH );
    	$themeName = $templateArray[count($templateArray)-1];
    	wp_enqueue_style('sp-events-calendar-style', WP_CONTENT_URL.'/themes/'.$themeName.'/events/events.css' );
        } else if( file_exists( STYLESHEETPATH.'/events/events.css' ) ) {
    	$templateArray = explode( '/', STYLESHEETPATH );
    	$themeName = $templateArray[count($templateArray)-1];
    	wp_enqueue_style('sp-events-calendar-style', WP_CONTENT_URL.'/themes/'.$themeName.'/events/events.css' );
        } else wp_enqueue_style('sp-events-calendar-style', $eventsURL.'events.css' );
    }

    If this doesn't work, can you provide your child theme directory structure and let me know if your's is typical among child theme users? Thanks.

    Justin

  5. kgagne
    Member
    Posted 4 years ago #

    Justin,

    Thanks for the help. Here's a summary of what I've tried reporting elsewhere. I apologize that I'm listing only potential bugs; I like the plugin and don't mean to be discouraging. Here are some issues I've encountered, from most to least problematic:

    • On lines 142 and 144 of template-tags.php, I had to change the_event_region to the_event_state, or else my events would not list the state at all. (I have "Default Country for Events" set to "United States" so I'm not sure why this is happening.)

    • In events-class-widget.php, the link to "View All Events" does not work if viewing a non-events category of blog posts. For example, if viewing example.com/category/fundraising, "View All Events" tries to link to example.com/category/fundraising/upcoming instead of example.com/category/events/upcoming

    • Does the plugin either automatically create a category called "Events" or tell the admin to do so? I had issues with this when I first installed v1.5.

    • events.css includes definitions for tec-event-title and tec-calendar th that make reference to tooltip-title.png and grid-th-bg.png, respectively. But these images seem to be missing from the plugin's installation package. Do I need to provide my own, or remove their references from the CSS?

    Thanks,

    -Ken

  6. justinendler
    Member
    Posted 4 years ago #

    Hi Ken,

    I'll take these on one at a time. For the first, I re-posted to bring attention to it for other users.

    http://wordpress.org/support/topic/405623?replies=1

    Justin

  7. kgagne
    Member
    Posted 4 years ago #

    Thanks, Justin. Each of these problems/solutions I've posted before; I'm happy to pass them along to someone whose messages actually get read. :-) Cheers.

  8. justinendler
    Member
    Posted 4 years ago #

  9. alx-xc
    Member
    Posted 4 years ago #

    Hi,
    Can you exclude language instructions from google-maps link (hl=en), because it locking google`s language auto detect?
    And I have problem with styles: css classes of columns in the-events-calendar/views/single.php is equal. I can't to set different width for columns in event page.

  10. justinendler
    Member
    Posted 4 years ago #

    @alx-xc

    Good call. The hl parameter is removed from the Google map link as of the next release.

    For the columns in single.php, changing the classes now might break some other peoples' styles who already hooked into those names. We provide an override for the front-end view files. You can create your own single.php and place in /wp-content/themes/[your-theme]/events/.

    Justin

  11. godkid
    Member
    Posted 4 years ago #

    @alx-xc

    I recommend the following re styling:

    1. Read this CSS tutorial - and use it as a reference

    2. Use attribute selection to differentiate between things (check out Grouping/Nesting in the above link)... eg. If I come across class .someClass on 2 diff pages and want it to look different on each page, I'd most likely look at the <div> tags that the class is applied to OR encapsulated by - usually they are different - allowing you to have "unlimited" versions of the same class...

    - i.e. someClass can be done to display differently in the following case:

    <div id="firstDiv" class="someClass> and <div id="secondDiv" class="someClass">

    In your events.css you'd have:
    #firstDiv .someClass {} - and that would define the styles for the class someClass within any page element with the id firstDiv

    ...you'd also have

    #secondDiv .someClass {} - and that would define the styles for the class someClass within any page element with the id secondDiv

    NOTE: when nesting classes, you MAY need to override style definitions in the first occurrence to ensure they are not inherited in the second

  12. frustrato
    Member
    Posted 4 years ago #

    Looking for some help - on this page:
    http://www.danforthmosaicbia.com/blog/?cat=19

    I need to adjust the calendar... but what is it? A widget? A plug in? The only place in the admin for me to edit things is basically a post, with EventsCalendarLarge inserted at the top. How can I edit the calendar without working on it via a post/page? I cannot even tell if it is part of the template, or some add-on, this is for a wordpress 2.8.6 site.

    Does anyone understand my pain?

  13. frustrato
    Member
    Posted 4 years ago #

    Ideally I would place the calendar on a page - but NOT as a 'post'. Just as the widget/plug-in/whatever it is. hat would avoid the stupid date stamp that looks weird with a calendar.

  14. justinendler
    Member
    Posted 4 years ago #

    @frustrato

    Your above link leads to a different calendar. Unless you've customized our templates, that appears to be a different plugin than The Events Calendar.

    Anyway, TEC works by automatically creating the category "Events" and lets you assign posts as events for that category. They then show up on both a calendar and list view. Since you need something that does not use posts for events, I'm guessing TEC is not what you're looking for.

    Justin

  15. justinendler
    Member
    Posted 4 years ago #

    @kgagne

    Getting to your last two issues. Yes, TEC creates the category "Events". This is currently the only way it works. Other options have been discussed, but as of now there are no solid plans to change it.

    I went through and got rid of the image calls that do not have associated images.

    Justin

  16. kgagne
    Member
    Posted 4 years ago #

    Justin,

    Thanks! I remember when I installed TEC (v1.5), I already had a category with the slug "events" but the category name was "Upcoming Events", which TEC apparently did not like. I don't think I got a warning about that and wasn't sure if its behavior had changed since then.

    -Ken

  17. kgagne
    Member
    Posted 4 years ago #

    @justinendler

    I'd like to report one more minor issue, if I may:

    When a venue name has an apostrophe, the plugin sometimes drops it and everything after it -- so "Joker's Bar and Lounge" becomes "Joker", for example.

    Thanks again for addressing everything else!

  18. justinendler
    Member
    Posted 4 years ago #

    @kgagne

    Thanks again. This is now fixed for the next release. To get the fix now, in the-events-calendar.class.php, replace the definition of 'addEventMeta()` with the one in trunk:

    http://plugins.svn.wordpress.org/the-events-calendar/trunk/the-events-calendar.class.php

    Justin

  19. kgagne
    Member
    Posted 4 years ago #

    Thanks, Justin!

    Here's one more: I use the All-in-One SEO Pack plugin to define my post's title tag as "Blog post title | Blog name". This works for all my blog posts and pages, but not for viewing individual events. Those end up using the format defined by my theme's header.php file, which is "Blog name > Blog archive > Blog post title". Any idea why AIOSEOP isn't taking effect on my events?

    I'm using a custom single.php but tried removing it and using the default one and still had this experience.

    -Ken

  20. enthusemarc
    Member
    Posted 4 years ago #

    hi

    I'm running TEC on a local installation with MAMP (so I can't link to the examples I'm working on).

    Problem 1 (clearly a bug, I think?)

    In the events sidebar widget, the View All Events link gives me "Not Found" when I'm using Day and Time permalinks. When I click through to the Event List page, the Previous Events link at the foot of the page is also broken. When I switch the permalink settings back to default, everything works. Given that fancy permalinks are strongly needed, if not for the present WP install then for live sites, how do I fix?

    Problem 2 (Probably just me being an eejit)

    I found to my cost that having

    <?php require('include/header/top-menu.php'); ?>

    in my customised events/single.php makes things break quite spectacularly. I've tried all the path variations that made any sense, with no success. For the present, I'm hard-coding the contents of the includes into the events/files.

    Is it just not possible to call includes this way inside the events templates? Or if it is, what do I do?

  21. enthusemarc
    Member
    Posted 4 years ago #

    okay, as I suspected, I am an eejit.

    Please disregard Problem 2 above. I sorted it.

    Problem 1 vexes me still.

  22. nickCR
    Member
    Posted 4 years ago #

    I just upgraded and now i'm getting a 404 :(

    No clue what is wrong. Has anyone had this happen to them?

    I'm not sure why but before it would work as site/category/events

    Now it only works as site/blog/archives/category/events and site/blog/archives/category/events/upcoming doesn't work also results in a 404.

    I really want to get this plugin working at site/category/events or even better site/events

    Any suggestions?

    Thanks in advance!

  23. justinendler
    Member
    Posted 4 years ago #

    @kgange

    Briefly looking in AIOSEOP, that plugin rewrites the title on the wp_head action. Since our single.php calls the standard get_header(), it seems like it should work.

    In your theme, do the calls to get_header() include a name argument? If so, our plugin may be calling the wrong header file, and it's possible this file fails to call wp_head(). This is a total longshot.

    In any case, make sure your header.php calls wp_head().

    If that's not it, it could be some weirdness with both plugins hooking to template_redirect().

    Justin

  24. justinendler
    Member
    Posted 4 years ago #

    @enthusemarc

    Trying some date and time permalink tags, I cannot reproduce the bad links. Can you post your exact permalink tag structure?

    Justin

  25. justinendler
    Member
    Posted 4 years ago #

    @nickCR

    Can you provide a link and your permalink structure?

    Justin

  26. nickCR
    Member
    Posted 4 years ago #

    Hey Justin, sure here is the old link that worked fine on version 1.5.6

    http://www.profitdrivers.ca/beta/category/events

    After installing the new version that link will no longer work but this link works:

    http://www.profitdrivers.ca/beta/blog/archives/events

    However this one doesn't

    http://www.profitdrivers.ca/beta/blog/archives/events/upcoming

    Here is my permalinks structure:

    /blog/archives/%category%/%postname%

    I really just want the events back to the way it was in 1.5.6 because it allows me to show the calender at site/category/events which would be great for me since that is where I want it to show.

    If there is anyway to get it to show at site/events then i'd be even happier :)

  27. kgagne
    Member
    Posted 4 years ago #

    @justinendler

    Thanks for the help trying to get AIOSEOP working with TEC. My theme is This Just In, and its header.php file includes the statement <?php wp_head(); ?>. I'm not sure what the issue might be.

    If it helps, here is a link to an example event on my site:

    http://www.challengeblog.org/2010/05/dockside-dinner/

  28. enthusemarc
    Member
    Posted 4 years ago #

    @justin

    I guiltily note that I mis-named the permalink schema in my sleep-deprived state. Sorry. I"m using the Day and Name format.

    With default permalinks the View All Events link goes like this:

    http://localhost:8888/?cat=8&eventDisplay=upcoming

    Day and Name permalinks go:

    http://localhost:8888/2010/06/15/sample-post/

    and when these are active, the same View All Events link reads:

    http://localhost:8888/category/events/upcoming

    which returns 404.

    Similarly, the previous links link at the bottom of list.php which under default permalinks is:

    http://localhost:8888/?cat=8&eventDisplay=past

    and now it's:

    http://localhost:8888/category/events/past

    which also is 404.

    There's a couple more similarly broken links further in, iirc. Can't quite track them down at the moment.

    It looks like the widget obediently rewrites the links in accordance with the permalink schema, and is then failing to understand that schema, or something.

    I've just checked a valid link from the home page to a category page:

    http://localhost:8888/category/music/

    so it seems the new link code is well formed as far as "events/"...

  29. justinendler
    Member
    Posted 4 years ago #

    @nickCR

    Unfortunately, site/events is not possible. You can get site/category/events by using any legal structure tags for the Custom Structure ( found here: http://codex.wordpress.org/Using_Permalinks ) and leaving the Category Base blank. Certain URLs are breaking now because the custom structure field must only contain structure tags, so /blog/archive/ should not be used in that field. Since the plugin creates the category Events, the plugin's portion of the url must follow whatever the category base is.

    Justin

  30. Shane Pearlman
    Modern Tribe
    Posted 4 years ago #

    Justin,

    Perhaps I am not following, but I often use the permalink structure "%postname%" which does in fact enable http://www.mysite.com/events to take you to the default event listing template.

    -S

Topic Closed

This topic has been closed to new replies.

About this Topic