• I have a weird issue, and must be template related, just not sure where to insert code to fix.

    here’s the site
    https://chippewaoffroad.org/wordpress/

    I added an event, which was easy. No issues. However, the display of the calendar, individual event, is not behaving with my template. What steps do I follow to resolve.

    It seems template related, and I am using the latest version of Thesis. Thanks.

Viewing 15 replies - 1 through 15 (of 39 total)
  • I checked out your website and everything is behaving as it should for me.

    When I switched to February on your calendar there was your event. Hovering over it displayed the event details and clicking on it took me to the actual event listing.

    Perhaps it is browser specific?

    Thanks Zendarin. We all really appreciate the help! I have a couple of heavy weeks coming up and every bit of help everyone can supply makes all the difference.

    I’m running Thesis 1.6 and Firefox 3.5.7 OSX and I can replicate gordon’s issue… having the same issue on a fresh site I’m working on right now: https://www.lifeissweetseminars.com/

    Any thoughts – I’d love to hear them. I just recognized the issue and went searching for a solution, so if I figure something out I’ll post it here as well. Thanks for the *STELLAR* plugin!!!!! AWESOME!

    Thread Starter gordonthegecko

    (@gordonthegecko)

    To clarify, I am running Thesis 1.6 and Firefox too. I checked in IE, and there is still an issue.

    To summarize, I have lost the Thesis header, sidebars and footer from the calendar ‘all events’ view and ‘single event’ view. I created another ‘category’ based page on my site to pinpoint the issue, and that page displays as expected, w header, sidebars and footer.

    Help would be appreciated, because I DO THINK THIS PLUGIN IS GREAT and just what I need. My DONATION IS READY!!! Thanks.

    I ran a multi-browser Litmus test on it, and the issue is most certainly with how the plugin interacts with Thesis – no doubt. The issue you are describing Gordon (and that I am experiencing as well) is across all browsers, so methinks that Thesis’s styles are not being applied at all. Which makes sense really due to how Thesis itself is built.

    I haven’t dug deep into Event Calendar’s skinning features yet, but I know they are there and I’m thinking it may be necessary to reskin separately away from Thesis. Which is a bummer, but you know…. such is life. Killer plugin, so worth it. I’ll recheck and see if anybody else has thoughts or suggestions, but I’ll dig into this tomorrow (or later tonight, if I feel ambitious).

    I’ve dug into this a bit this evening… haven’t implemented this yet, but here’s the deal. The way the plugin is written, it looks to call both the theme’s standard header.php and footer.php, which works great with just about every other theme out there. as much as I love Thesis (and I do), one of it’s drawbacks is that because Thesis makes itself so high level, it doesn’t really operate the header.php and footer.php the same way as most themes do.. that is, put all of the markup that you might expect in those files. Instead, it throws out it’s opening body hooks and “before HTML” hooks (see code below):

    <body<?php thesis_body_classes(); ?>>
    
    <?php thesis_hook_before_html(); ?>

    So what that means is that most of the typical header markup never makes it into the plugin’s output, which creates the issue that we are both experiencing. Same thing is true of the footer.php file.

    So how do you fix it? Basically, unless the author of the plugin decides to support Thesis and figures out the very best way to include all of its functions (which would be nice, but ye best donate GENEROUSLY <=D), the options essentially involve creating a separate copy of the skin rebuilt in XHTML, which honestly shouldn’t be that hard. The hack way of doing it would be to break the code out into a header1.php and a footer1.php (adjusting the appropriate lines of code in the plugin. That would work, but it would probably be better to include the same XHTML inside of Thesis’s hook system (OpenHook is an easy way of doing this). Downside of course is if you change your theme design, you have to modify the event skin in openhook (or the hack way in header1.php and footer1.php) to match… or you can just leave it a little different, with a common header or something. It’s tedious and requires some know-how, but this plugin is by far the best Events Calendar plugin I have seen yet, so well worth the time….

    I’m implementing this tomorrow myself, and I’ll post again if I realize I screwed something up here :). Otherwise, hope this helps somebody else figure out what needs to happen, and saves some time….

    We came to that exact conclusion last night. Our theme integration works with basic themes that follow the kubric model. We are looking to make it overall more friendly, but there is no simply tadah. Fancy schmancy themes will need to be done using the theme override options:

    From Documentation (https://www.ads-software.com/extend/plugins/the-events-calendar/other_notes/)

    Default vs. Custom Templates

    The Events Calendar plugin now comes with default templates for the list view, grid view and single post view. If you would like to alter them, create a new folder called “events” in your template directory and copy over the following files from within the plugin folder (simple-events/views/):

    * gridview.php
    * list.php
    * single.php

    Edit the new files to your hearts content. Please do not edit the one’s in the plugin folder as that will cause conflicts when you update the plugin to the latest release.

    Makes sense to me…. thanks again for the KILLER plugin!!!

    Could someone post their solution to the thesis 1.6 problem, as I am having the same issue.

    OK, maybe I am missing something here. To customize the templates the instructions say:

    create a new folder called “events” in your template directory

    I don’t have a “template” directory. Is this the “theme” directory that is being referenced?

    Yes – the actual name of the directory is “Themes”

    so you need to create: /wp-content/themes/[my theme name]/events/

    and then add the proper files in there.

    Got it! That’s what I thought, but figured I should verify. Thanks!

    Thread Starter gordonthegecko

    (@gordonthegecko)

    Does anyone have an actual solution? I’d like to know the steps to follow to deploy.

    TCSOUL – it sounded like you were going to attempt a solution using ‘openhook’ in Thesis 1.6.

    Sorry I’m not a coding genius, so I’d like to beg/borrow/steal to get this working.

    Fair warning… you are going to need to know how to manipulate code pretty well to do this. Ended up not going through openhook to do this – it was easier to just go with the theme’s built-in override options.

    Here’s the deal… after copying the three plugin files into /thesis_16/events (you will want to make a note of the fact that you did this b/c it technically violates where Thesis would prefer you set up your custom files), you will make the following mods to the files….

    Make sure you leave include (TEMPLATEPATH.'/header.php');
    The footer one didn’t seem to make a difference either way.

    Then add this:

    global $thesis;
     ? ?global $thesis_design;
     ? ?
     ? ?if (is_single() || (is_page() && !$thesis['display']['comments']['disable_pages']))
     ? ? ? ?wp_enqueue_script('comment-reply');
     ? ?
     ? ?get_header(apply_filters('thesis_get_header', $name));
     ? ?
     ? ?echo '<div id="container"' . "\n";
     ? ?echo '<div id="page">' . "\n";
     ? ?
    
     ? ?thesis_header_area();
    
     ? ?thesis_hook_before_content_box();
     ? ?
     ? ? ? ?echo ' ? ?<div id="content_box" class="no_sidebars">' . "\n";

    Then you keep the primary plugin code per file… you know, so Event Calendar does what it is supposed to. Finish it off with:

    ?thesis_hook_after_content_box();
     ? ?thesis_footer_area();
     ? ?
     ? ?echo '</div>' . "\n";
     ? ?//echo '</div>' . "\n";
     ? ? ? ?
     ? ?get_footer(apply_filters('thesis_get_footer', $name));

    Incidentally, this is the syntax you would use to create custom templates with Thesis… all you would need to do to take this extra step….

    /*Template Name: Your Template Name Here*/

    So that’s the deal… works like a champ. You will, of course, need to add some CSS styling to get things looking good, but this should get the functionality set. Again, if you are not a strong coder, this probably isn’t for you… then again, if you are not a strong coder, doing significant mods to Thesis (or to plugins so that they work with Thesis) probably shouldn’t be your game anyway. Just keep in mind that while Thesis is a great high-level theme and offers plenty of built-in options for non-coders, the fact that it gives you all of those options makes working with its’ codebase much more difficult.

    Hope this helps somebody…!

    TC Soul – you are a gentleman and code scholar. I am sure people will appreciate your post. Can I suggest you might create a new thread with your solution in it so people find it easily. Make sure to have the title “Thesis Theme Integration” or some such.

Viewing 15 replies - 1 through 15 (of 39 total)
  • The topic ‘[Plugin: The Events Calendar] template issue’ is closed to new replies.