Support

Home Forums Event Espresso Premium "Event closed" image not working in calendar

"Event closed" image not working in calendar

Posted: April 17, 2016 at 7:51 am


Angus Russell

April 17, 2016 at 7:51 am

Once an event is closed, it simply shows the alt.text “closed” and the broken link image.

With my limited PHP I’ve looked in what appears to be the appropriate file (wdm_venue.php), but then have no idea what it’s telling me!

I’ve checked the folder (public_html/wp-content/plugins/espresso-template-calendar-table) and the closed.png file is in there.

Thanks


Tony

  • Support Staff

April 18, 2016 at 2:46 am

Hi Angus,

Can you link me to a page I can view this on please?

wdm_venue.php is unlikely to be the file you should edit for this.


Angus Russell

April 18, 2016 at 4:22 am

Hi Tony,

I realised that was the file that our developer put in place, following some changes they made, and created a new folder for it.

Having checked the PHP it looks very similar to the original file, and I find this piece of code

“/”.plugin_basename(dirname(__FILE__)) .’/closed.png” alt=”Closed”>’;
}

which I believe refers to a png in the same folder?

I have now copied the png to the same folder as this new file, which seems to have done the trick.

I have contacted them, since I suspect that rather than playing nicely and integrating with the original file, it is overwriting it.

BTW, this is one of your approved developers, not very impressed that they make a simple error like that.

Thanks
Angus


Tony

  • Support Staff

April 18, 2016 at 5:45 am

which I believe refers to a png in the same folder?

Yes it refers to a png in the same direcotyr as the file, however were was that file located?

Was it within /wp-content/uploads/espresso/templates/?

I have contacted them, since I suspect that rather than playing nicely and integrating with the original file, it is overwriting it.

With the Calendar View add-on they do need to override the original file, however with the current version they also need to add the png images to the same location so that they load (as you have found yourself)

We made some changes to the Calendar add-on to separate the ‘template’ code into a template.php file and use constants for the images, which means they can just place the template.php file in uploads and the constants will use the default images within the plugin directory.

I can send you a copy of that version to the email address on your account if you prefer?

Also could you let me know which developer you used via email (not on the forums please, we all make mistakes 🙂 ) using support[at]eventespresso.com

The support post ‘"Event closed" image not working in calendar’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso