WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Calender buttons misplaced (69 posts)

  1. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Hey there Geoff. Thanks for doing that - I just rechecked our projects system and it looks like earlier this week another dev marked a similar report. We've re-opened this issue and are aggressively moving on it for 2.1 but I can't guarantee we'll have a resolution any sooner. My apologies for the inconvenience on that end.

  2. geoffgraham
    Member
    Posted 2 years ago #

    Hey Rob, thanks for the heads up. I'll keep my eyes open for 2.1 and let you know how it goes when I install it.

  3. jonahcoyote
    Member
    Posted 2 years ago #

    Hey Geoff, as Rob mentioned we have a fix for this in the works but it might be a bit before it comes out. I've figured out an interim solution and if you send me a copy of your theme I can get you some code to fix this. You can just go through my website through my WordPress profile and then through my contact form.

    Thanks,
    Jonah

  4. geoffgraham
    Member
    Posted 2 years ago #

    Hey Jonah, thanks for following up! I'll drop you a line through your site in just a few.

    Geoff

  5. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Thanks Jonah!

    Geoff: if we can do anything else, please let us know. If you're enjoying the plugin and would be so kind as to mark us a "Works" here on the WordPress.org page, we sure would appreciate it :) Thanks for your support and bearing with us on this issue.

  6. jeztechs
    Member
    Posted 2 years ago #

    Hi

    Can anyone please let me know how Geoff managed to sort out the uneven buttons (when viewing a different month) problem...I have been on this for hours and am desperately looking for a fix.

    Many, many thanks in advance.
    Jeremy

  7. geoffgraham
    Member
    Posted 2 years ago #

    Hey Jeremy,

    Jonah was kind enough to provide a fix to my code offline. He'll be able to explain it better, but it did involve adding a /events directory to the theme and adding a new default template or two, depending on your layouts.

    He added this snippet above the call for the header:

    <?php
    // Don't load directly
    if ( !defined('ABSPATH') ) { die('-1'); }
    ?>

    And included this one where the page content begins:

    <?php include(tribe_get_current_template()); ?>

    You will name this file ecp-page-template.php and save it to the aforementioned /events directory.

    He also instructed me to go back into the plugin settings under Template and select Default Events Template from the Events Template option.

    Like I said, Jonah can explain it much better if this post sounds insane, but hopefully it points you in the right direction.

    Geoff

  8. jeztechs
    Member
    Posted 2 years ago #

    Thanks Geoff...well appreciated...looks too complicated for me, hopefully Jonah may get back to me.

    Thanks again for the help
    Jeremy

  9. jonahcoyote
    Member
    Posted 2 years ago #

    Hey jeztechs,

    Did you switch your Events Template to "Default Events Template" in Settings > The Events Calendar?

    That should partially fix the issue. The other part of the issue is theme related.

    - Jonah

  10. geoffgraham
    Member
    Posted 2 years ago #

    Hey Jonah,

    One thing I somehow missed in the fix you provided: the post content is gone from the single template.

    Example:
    http://foursquare.bethouawesome.com/event/event-example-2/

    If you view the event in a Grid or List view, you can see there is content associated with the post. However, the single template seems to leave it out.

    Any thoughts?

    Thanks again for your help!

  11. jonahcoyote
    Member
    Posted 2 years ago #

    Hi Geoff,

    Try making a copy of /wp-content/plugins/the-events-calendar/views/ecp-single-template.php and placing it in the 'events' folder in your theme and modifying it so it includes either the_excerpt() or the_content() - you're going to need to play around with it a bit but that's the template used for single events when you have the Events Template selected in the settings.

    I hope that helps!

    - Jonah

  12. geoffgraham
    Member
    Posted 2 years ago #

    Yeah, that's what I had tried, but still come up flat:

    <?php
    // Don't load directly
    if ( !defined('ABSPATH') ) { die('-1'); }
    ?>
    <?php get_header(); ?>
    <div class="row">
    	<div id="page-full" class="span11">
    <h1><?php tribe_events_title(); ?></h1>
    <hr />
    <?php include(tribe_get_current_template()); ?>
    <?php the_content(); ?>
    	</div><!--end page-full-->
    </div><!-- end row -->
    <?php include ('sidebar-fullwidth.php'); ?>
    <?php get_footer(); ?>

    Does my the_content() need to be somewhere else or am I missing something?

  13. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Hey there Geoff. Thanks for the follow-up here; not sure Jonah saw your response but I've passed it back his way just to be safe. Stay tuned!

  14. geoffgraham
    Member
    Posted 2 years ago #

    Thanks for the heads up, Rob! Staying tuned. :)

  15. jonahcoyote
    Member
    Posted 2 years ago #

    Hi Geoff,

    I've still got your theme in my dev environment and tested this out using the core version of ecp-single-template.php (no override) and I see the content for events. Have you tried deactivating other plugins to see if there's a conflict of sorts? I'm not sure what else to have you try...

    - Jonah

  16. geoffgraham
    Member
    Posted 2 years ago #

    Hey Jonah, you're right. I'm unsure what I was doing before, but repeating the process of moving the ecp-single-template.php with no overrides seemed to do the trick. Thanks again for your help and doing awesome work.

  17. jonahcoyote
    Member
    Posted 2 years ago #

    Hey Geoff,

    Glad that worked. Let us know if you need anything else!

    - Jonah

  18. JustDuckyDesigns
    Member
    Posted 2 years ago #

    I'm posting this question here because it looks like there is some activity on here. I posted this as a general question yesterday and I'm not getting any response at all.

    I am using "The Event Calendar" - in the settings, under "General" I have selected "Calendar" from the "Default view for the Events" option. But when I view the page it shows it in "Event List" mode. No matter which option I choose, it shows "Event List" rather than "Calendar".

    Does anyone have a fix for this?

    Also, I my navigation menu does not show on the Events page or on the detail events page - it works fine on every other page.

  19. jonahcoyote
    Member
    Posted 2 years ago #

    Hi JustDuckyDesigns,

    Sounds like an issue with permalinks. Have you tried switching your permalinks to 'Postname' in Settings > Permalinks?

    - Jonah

  20. it.beyer.pl
    Member
    Posted 2 years ago #

    Hi,

    I have the same issue with calendar buttons in grid view.
    I have The Events Calendar v.2.0.8.
    When at least one event is on the grid there is no problem, but when there are no events in the month the buttons at calendar header are misplaced.

    Example Good: http://pttkpan.pl/wydarzenia/2012-07
    Example Wrong: http://pttkpan.pl/wydarzenia/2012-08

    I also notice that in source of the rendered page (marked on red) is the problem, and also there is no page title:
    http://pttkpan.pl/wp-content/blogs.dir/17/files/2012/07/grid.png

    In source file views/gridview.php there are no closing "p", "span" or "div", maybe some hook or JS script is editing that?

    Best Regards
    Piotrek

  21. jonahcoyote
    Member
    Posted 2 years ago #

    Hi Piotrek,

    As far as we know now this is a conflict with certain themes that utilize the wpautop function which automatically inserts p and br tags in some circumstances.

    The only work around for this is kind of involved and you may need to hire a developer to help you if you can’t figure it out. Basically, you have to first go into the plugin settings Events > Settings > Template and change the Events Template to the Default Events Template which will force the template to use it’s own built in templates for rendering event pages. Now, this is likely going to not look as good as your current template setting so what you need to do is modify the plugins template, bringing in some of the code from your themes to get things looking better. The plugins templates you’ll want to modify are:

    /wp-content/plugins/the-events-calendar/views/ecp-page-template.php and /wp-content/plugins/the-events-calendar/views/ecp-single-template.php. Make copies of those files and place in an ‘events’ folder in your theme. Next, open up your theme’s page.php template file and find all HTML wrapper code (usually divs) and migrate this over to the plugin template files, wrapping the template code with your themes wrapper code. Where you’ll want to replace stuff is right where tribe_events_before_html() and tribe_events_after_html() are called in the plugins template files. You’ll want to put in the beginning part of the wrapper code where tribe_events_before_html() is and the closing tags where tribe_events_after_html() is. And that’s about it! Once you do that and if it’s done right and you may need to play around with it a bit, it should work.

    That’s the only workaround there is for this issue right now so if that doesn’t work you’ll either need to try it again, hire someone to help you or wait for the fix to be officially released. One of our devs stated that it’s not a problem with our plugin but a problem with the way some themes use wpautop to auto insert p and br tags into the page in certain cases. So, you could try reporting the issue to your theme developer as well.

    I hope that helps!

    - Jonah

  22. it.beyer.pl
    Member
    Posted 2 years ago #

    Hi Jonah,

    My girlfriend - she's not a developer ;) - figured out that if this bug appears when there are no events in the month, so I must insert some event where there are no one.
    The solution is very simple to implement, I copy "views/table.php" from the plugin folder to my template "events" folder and add directly above first occurence $monthView (on line 31) this condition:


    if( !$eventPosts ) {
    $eventPosts = new stdClass();
    $eventPosts -> EventStartDate = '2012-'. $month .'-01 00:00:00';
    $eventPosts -> EventEndDate = '2012-'. $month .'-01 00:00:00';
    $eventPosts = array( $eventPosts );
    }

    And this works grate - and the event is not displaying of course :)

    Best Regards
    Piotrek

  23. mh1562
    Member
    Posted 2 years ago #

    Hi Guys. I'm having the same problem with the calendar view buttons. when I go to another month they go above my logo.
    I have read the posts between all of you but still couldn't understand how to resolve the issue.
    my site (still under construction) http://sfgmag.com/events/

    I will very much appreciate any kind of help. i have tried several othe calendars but non was to my satisfactory as much as this one.

    -Mosh

  24. it.beyer.pl
    Member
    Posted 2 years ago #

    Hi Mosh,

    Write me an email on: [ redacted ] and I will send you my table.php file, You must only paste the file on "events" folder in Your template folder.

    Best Regards
    Piotrek

  25. mh1562
    Member
    Posted 2 years ago #

    Hi Piotrek,

    Thank you for providing me with the Table.php file. the solution runs great and resolved my problem! thank you!!

  26. it.beyer.pl
    Member
    Posted 2 years ago #

    Hi Mosh,

    It's not a problem, glad that worked :)

    Best Regards
    Piotrek

  27. jonahcoyote
    Member
    Posted 2 years ago #

    Hi Piotrek,

    This is brilliant! I don't know what your code actually does but I just tested it in one of the themes that has this issue and it works like a charm and much easier of a solution that mine. Thank you for sharing this and we'll be sure to share/provide this solution with other users who are having this problem.

    Thanks,
    Jonah

  28. Okapi
    Member
    Posted 1 year ago #

    Hey there,

    I'm having the same problem with the calendar view buttons (the button go above my logo).
    See the problem at (my site is still under construction):
    http://www.okapi-weinlese.com/events/monat/
    Like mh1562 I read the posts between all of you, but didn't finde a solution that worked for me. :/
    it.beyer.pl would you be so kind and send me the table.php as well?

    I will appreciate any kind of help. :)
    Best regards
    Okapi

  29. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Piotrek, you still monitoring this thread? Anything you can do to help Okapi out here?

  30. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Thanks for stepping up, mh1562! I don't know if they allow email addresses to be posted on here, so if that doesn't work you guys can always use pastie.org or a related solution.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic