Removing Calendar Image from Calendar widget broke with 3.2

Home Forums Calendar Products Events Calendar PRO Removing Calendar Image from Calendar widget broke with 3.2

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #79725
    d20games
    Participant

    I’d successfully done this modification to the calendar widget, but when I moved to 3.2, it started to pull other posts that were not events and displaying them instead. The list and main calendar views work fine, but this fails.
    https://theeventscalendar.com/remove-calendar-image-from-calendar-widget/

    I’ve tried updating the modified file to more match the new updated php file.

    (BTW-I’d love to modify the fields that are showing in this view…remove the date and location, and add in snipit of the description. What file would I modify to do that, and where would I find the fields to modify?)

    #79728
    d20games
    Participant

    Here is the code snippet..
    ?php
    /**
    * Events Pro Mini Calendar Widget:
    * modified to remove the grid and show only the list.
    */

    if ( !defined(‘ABSPATH’) ) { die(‘-1’); } ?>

    #80014
    Julie Kuehl
    Participant

    Due to the strong response to our Cyber Monday sales, we’ve fallen a bit behind on responding here in our forums. I do apologize for that. We don’t like it when that happens and are working hard at catching up. We will get to your question just as quick as we can.

    — Julie

    #80022
    Barry
    Member

    Hi d20games – thanks for sharing the code, but I’m worried some of it was stripped out by the forum. Could you repost and share any code via Pastebin or Gist, or some similar service?

    Thanks!

    #80204
    d20games
    Participant

    If I did it right, this is the pastebin link
    http://pastebin.com/FcKzuVpz

    This is the version from the current site (had to roll back to get everything to work.

    #80426
    Barry
    Member

    Ah yes, we have fallen behind the curve a little here.

    Please try changing the view path in your snippet from widgets/mini-calendar/list to pro/widgets/mini-calendar/list … does that help?

    #81620
    d20games
    Participant

    nope….go to http://d20games.staging.wpengine.com/ and you can see what is happening. It is showing the last sets of blog posts rather then the events.

    #81634
    Barry
    Member

    OK, at least for the time being that site is inaccessible so I’m afraid I can’t see the problem. However, it sounds like a bug that can occur when you have set the widget to display 0 events. Is that a possibility here?

    If so, this should certainly be fixed in our very next maintenance release (along with some other issues surrounding the calendar widget).

    #81656
    d20games
    Participant

    No, it is set to 5 events. Try and look at the site again…it is back up now (server glitch at the hosting company).

    #81909
    d20games
    Participant

    Can you please look at this problem for me. It is preventing me from upgrading. And another problem with using the licence with my staging server has ended up causing the main instance of this to fail on the primary site. Whatever the problem is that I have, it is not matching what you described as the existing bug.

    #81943
    Barry
    Member

    Hi d20games, I’m not sure how the calendar widget issue would prevent you from upgrading (do you mean a WordPress upgrade – or are you using an earlier version of our plugin that you wish to update?) – it shouldn’t by itself impact on that process.

    And another problem with using the licence with my staging server has ended up causing the main instance of this to fail on the primary site.

    Please do create a new thread as this sounds like a quite separate problem – we’d be happy to help, but I’d like to avoid confusion that might result from tackling two different problems in one thread. Please do also clarify what you mean when you say that the “main instance is failing”.

    Whatever the problem is that I have, it is not matching what you described as the existing bug.

    It seems not, yet it is quite close in terms of symptoms.

    I wonder though: if you revert to only a default, unmodified theme and turn off all other plugins except for The Events Calendar and Events Calendar PRO (consequently this would mean your widget customization would not be used) and you configure the calendar widget to show 5 events as it does now, does it behave as expected under those conditions?

    I’d be keen to isolate any issues that have arisen from customization work, in addition to the possibility that some other component is conflicting.

    #81981
    d20games
    Participant

    I’m not talking about the wordpress upgrade. I’m talking about the event calendar 3.2 upgrades. That is when things started to fail. if I use the theme test drive to get 2014 to be the theme, there is no problem. And if I use the standard list view, it is fine as well. It is just with the modified version of the calendar widget that we get off the rails again. (I do have a thread on the other problem now, although it is also an issue with the modified version of the plugin.)

    Connected with this, I’m finding it very hard to figure out where to go if I just want to specify which fields are used in the list. Ideally I also really want to do is have a list with a date, and then all the things happening on that date grouped in time order underneath and then the next date.

    #81989
    Barry
    Member

    It is just with the modified version of the calendar widget that we get off the rails again.

    Hmm, I’m unsure why you are hitting problems with removing the calendar grid from the calendar widget. The tutorial was tested by the team before we published it, and on following it just a few minutes ago it worked without issue.

    However, if it is causing this sort of problem within your site then the answer would be to stop using that customization and perhaps seek expert support from a developer if you really need it (or else consider switching to the list widget).

    Thanks also for posting a new thread for the licensing issue – it helps us to provide timely support and avoids confusion. Similarly please do so for this issue as it isn’t connected with the calendar widget problem so far as I can tell.:

    Connected with this, I’m finding it very hard to figure out where to go if I just want to specify which fields are used in the list.

    As we’ve pretty much exhausted our options with the calendar widget customization (I’m sorry that didn’t work out for you on this occasion) I’m inclined to close this thread, but before I do so would you like a list of independent developers/freelancers who might be able to help you further with developing a solution there, or are you content to switch to a different widget?

    #82086
    d20games
    Participant

    can you give me a link to what the new replacement code should be for the widget. I want to do it again from scratch with the new code for the simplified calendar widget. Also, can you tell me what I would need to add to that customization in order to remove the date from being written with each list item, (since it is already shown with the more graphic display.). And, yes, I guess I’d like a list of contract developers, although what I’d really like is a place I could go where people would share the customizations they had made.

    #82120
    Barry
    Member

    can you give me a link to what the new replacement code should be for the widget.

    Based on what you’ve told me it sounds like the problem only exists when you attempt that customization. Beyond what is in the existing tutorial there isn’t really anything else I can give you – and if that isn’t working for you then, again, all I can really suggest is that you don’t use it.

    If you are referring to the bug fixes I alluded to that relate to the calendar widget I’m afraid you’ll need to wait until the next release arrives, we don’t have a single snippet we can provide that would implement all of the same changes (and I’m not sure that is the actual problem here, either).

    Also, can you tell me what I would need to add to that customization in order to remove the date from being written with each list item, (since it is already shown with the more graphic display.).

    As always please follow the guidance in the Themer’s Guide. Basically though, to remove the dates from each list item in the calendar widget, you would override and customize the following template:

    pro/widgets/mini-calendar/single-event.php

    Look out for the div beginning with the following line:

    <div class="list-date">

    And try removing the entire div (which contains the span.list-dayname and span.list-daynumber elements).

    And, yes, I guess I’d like a list of contract developers, although what I’d really like is a place I could go where people would share the customizations they had made.

    We welcome postings from people sharing their customizations and other solutions, but unfortunately there is not a single consolidated venue for that sort of thing. In terms of independent developers, in no particular order you could consider contacting:

    If you need a cheaper solution, you might check out some of these listings:

    Good luck! I’ll close this thread now, but if there’s anything else we might be able to help with please do go ahead and create a new thread or threads as needed 🙂

Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘Removing Calendar Image from Calendar widget broke with 3.2’ is closed to new replies.