WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Calendar sidebar shows redundant start/end date for events (30 posts)

  1. esslewis
    Member
    Posted 1 year ago #

    In my homepage's calendar sidebar (www.seanlewismusic.com), is there a way to stop the DATE from being listed for both the start AND end time (since they're both on the same date, it looks a little goofy and takes up space unnecessarily)...??? Thanks for any help!

    http://wordpress.org/extend/plugins/the-events-calendar/

    [ Please do not bump, that's not permitted here. ]

  2. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Hey there. Correct me if I'm wrong, but isn't this a duplicate of another post? If so, let's keep the discussion going over there for consistency sake. Thanks in advance.

  3. esslewis
    Member
    Posted 1 year ago #

    (Rob, sorry, I can't find the other post regarding this topic.) I see that you just posted an update to this plug-in, which i installed, and I think you had mentioned anticipating this issue being resolved in that update, but I'm not seeing any difference. Any news on that?
    Thanks very much... Sean

  4. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Hey Sean: yup, this should have been included in 2.0.9, but the way it's coded it only strips it down for all-day events. Applying that tweak to fixed-hour range events should be relatively straightforward now. Let me see if Jonah from our team can point you in the right direction for an appropriate template override there. Thanks!

  5. esslewis
    Member
    Posted 1 year ago #

    Thanks very much. It's a great plug-in either way; I appreciate your work. And just to be clear, I think this "issue" is more apparent in the page/sidebar view than it is in the full-calendar page view (for what that's worth).... Thanks again.

  6. escalatoraccidnt
    Member
    Posted 1 year ago #

    Interested in seeing the template override or if there is an update as I'm having the same issue. So jumping in here to see updates.

  7. jonahcoyote
    Member
    Posted 1 year ago #

    Hi guys,

    You can hide the end date by making a copy of /wp-content/plugins/the-events-calendar/views/events-advanced-list-load-widget-display.php and placing in an 'events' folder in your theme and then commenting out line 48. I hope that helps but let me know if you guys need anything else.

    Cheers,
    Jonah

  8. esslewis
    Member
    Posted 1 year ago #

    Thanks, Jonah. That seems basically clear, but I'm no code writer and I'm sure I'll screw it up! But I can always just Preview any changes I make in WP, right, and then not publish them, I guess, so maybe I'll give it a try....

  9. jonahcoyote
    Member
    Posted 1 year ago #

    Hi esslewis,

    No, you cannot preview your changes for this like you can with pages or posts in WordPress. You can make the change and then look at your site and if anything gets messed up, just revert the change ;)

    - Jonah

  10. GranPaSmurf
    Member
    Posted 1 year ago #

    wow, is there any easier way to do this? We really don't like both date/time lines showing for a simple meeting. Even droping the Year/month/day would be helpful, so the hour/minute would be left.
    We don't usually get into a folder level as we admin our site and are anxious about doing so.

  11. GranPaSmurf
    Member
    Posted 1 year ago #

  12. GranPaSmurf
    Member
    Posted 1 year ago #

    taking a deep breath and another swig of coffee and trying...
    I don't seem to even find a file called /wp-content/plugins/the-events-calendar/views/events-advanced-list-load-widget-display.php
    LOST before I even get started

  13. bigelowstreehouse
    Member
    Posted 1 year ago #

    Agreed, I would love to fix this, but the above suggestion kind of flies over my head. In the meantime I am currently using something else here:
    http://www.bigelowstreehouse.com

    but naturally, that one is giving me trouble with the other site I maintain (lower right portion) so now I don't know what to do with it.
    http://www.aseb.org/blog

  14. jonahcoyote
    Member
    Posted 1 year ago #

    It would help if I posted the right file name/path ;) Here is the correct file to modify: /wp-content/plugins/the-events-calendar/views/events-list-load-widget-display.php

    - Jonah

  15. GranPaSmurf
    Member
    Posted 1 year ago #

    Jonah,
    I downloaded the file and commented out line 48:
    * echo ' –
    '. tribe_get_end_date($post->ID);
    then created a new folder in my theme, named it "events"
    Uploaded the modified file to that folder. Now my homepage(http://www.sanantonioteaparty.us/) show a slightly transparent overlay over most of the page and in the widget there is this message:
    Parse error: syntax error, unexpected '*' in /home/satp9837/public_html/wp-content/themes/teaparty/events/events-list-load-widget-display.php on line 48
    I seem to be going from bad to worse here.

  16. GranPaSmurf
    Member
    Posted 1 year ago #

    Jonah,
    This is screenshot of what my homepage looks like now:

    https://dl.dropbox.com/u/7247465/Screenshot%20-%209_25_2012%20%2C%206_47_26%20AM.png

  17. jonahcoyote
    Member
    Posted 1 year ago #

    Hi GranPaSmurf,

    In PHP to comment out code you simply use two forward slashes:

    //echo ' – <br/>'. tribe_get_end_date($post->ID);

    ..or a slash followed by an asterisk and then close with asterisk and slash:

    /*echo ' – <br/>'. tribe_get_end_date($post->ID);*/

    I hope that helps!

    - Jonah

  18. GranPaSmurf
    Member
    Posted 1 year ago #

    Jonah,
    Slaphead moment. I thought I remembered how to comment out php but when I saw your message, "I knew that.." At least, once long ago, I did.
    I made the changes and uploaded to the "events" folder and now our side panel widget looks the way we want.
    Thanks for your help and your patience.

    http://www.sanantonioteaparty.us/

  19. jonahcoyote
    Member
    Posted 1 year ago #

    Glad that worked GranPaSmurf!

  20. GranPaSmurf
    Member
    Posted 1 year ago #

    thanks...I will start another thread wondering why I get the semi-transparent overlay on our site since we upgraded the events calendar

  21. maxgoldberg
    Member
    Posted 1 year ago #

    Any chance this can made simpler in a future release? I'd love a simple checkbox in the dashboard to disable this....

    thx

  22. jonahcoyote
    Member
    Posted 1 year ago #

    Hi maxgoldberg,

    We have that as an option in our PRO (http://tri.be/wordpress-events-calendar-pro/) version. Otherwise, you'll need to edit some PHP.

    - Jonah

  23. GranPaSmurf
    Member
    Posted 1 year ago #

    Jonah,
    I just bought the Pro version, just to get some support for the issue I referenced above, the blank overlay. (but now I fixed that)
    However I am now resetting and learning about Pro options.
    I just saw your answer from above. Interesting because the "fix" I did last week, the editing PHP you reference no longer works. But reading the above reply, I went into settings and set the option not to show end times, ending before 12:00am, but it still shows end time in the widget anyway. What am I missing this time around?

  24. jonahcoyote
    Member
    Posted 1 year ago #

    Hi GranPaSmurf,

    Thanks for going PRO! Glad to hear you fixed the overlay issue... The two widgets utilize different template view files so that's why your changes no longer work. You can read more about the views here: http://tri.be/support/documentation/events-calendar-themers-guide/

    Unfortunately there was a bug introduced for the PRO list widget that won't be fixed until a future version but we do have a patch for that. Please read here: http://tri.be/support/forums/topic/both-start-and-end-dates-showing-in-sidebar-widget-regardless-of-settings/

    Thanks,
    Jonah

  25. GranPaSmurf
    Member
    Posted 1 year ago #

    Got it. Did it. It works. Whew!!
    I, for one, will be a LOT happier when you guys get this updated so it works without me having to FTP files up and down.
    On the other hand, now it works so, why should I care, right? :)
    HOWEVER:
    I am still not completely satisfied with the results. Please see the right panel on our site:
    San Antonio Tea Party

    There is a blank line after the venue and no blank before the start of the next event. It looks as if the time belongs to the wrong event.
    So the patch works, but it still looks goofy!

  26. jonahcoyote
    Member
    Posted 1 year ago #

    Hi GranPaSmurf,

    Normally you won't have to FTP files, you can just auto update the plugin.

    I'm not seeing the blank line you speak of. Can you shoot me a screenshot of specifically what you mean?

    Thanks,
    Jonah

  27. GranPaSmurf
    Member
    Posted 1 year ago #

    Jonah,
    Forgive me, I misspoke. On looking closer I realized I had expected the name of the event to precede the time of the event. I see now there are three lines with the time first.
    Though we would, in fact, prefer the event name first, or the option to choose.
    The way is shows now is OK and BTW we like the alternating background color.

  28. esslewis
    Member
    Posted 1 year ago #

    Jonah, if I'm understanding you correctly, above, you said "We have that as an option in our PRO (http://tri.be/wordpress-events-calendar-pro/) version." Like I said, maybe I'm not understanding you correctly, because I can't imagine why this redundant-date issue would ever be done by choice, and thereby have an optional improvement upon it. I can't imagine why anyone would ever WANT the date to be shown (as it currently is) for events that start and end on the same date. Am I making sense? And am I understanding you correctly that this apparently WAS done by design, but the improvement upon it is a PRO option?
    Thanks....

  29. jonahcoyote
    Member
    Posted 1 year ago #

    @GranPaSmurf - glad you got it worked out!

    @esslewis - in the base version of the widget we just don't provide a checkbox to automatically hide the end date but you can easily hide the end date yourself by modifying the /wp-content/plugins/the-events-calendar/views/events-list-load-widget-display.php file placing a copy in an 'events' folder in your active theme.

  30. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Hey there esselewis, best I can tell everyone else on this thread is pretty much sorted. Can you confirm whether Jonah's last note gave you what you need, or if you still have questions here? If you're all set I'm inclined to close out this thread. Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic