Support

Home Forums Event Espresso Premium Event List Template

Event List Template

Posted: March 19, 2013 at 7:58 pm


ashley haley

March 19, 2013 at 7:58 pm

No mater what I do to my event_list_display.php template nothing seems to change the outcome of how my events are listed. I literally deleted all of the information in that file and uploaded it through the ftp and nothing happened. Of course since then I reloaded the code.

I am so confused on what actually controls the template for this page? Can anyone please point me in the write direction because I must be in the complete wrong place.

Before I upgraded, I used this file to change how the events displayed.

Anyway I need help.

WP:3.5.1
EE:3.1.30.7P
URL:http://www.oneloveyoga-studio.com/event/classes


ashley haley

March 19, 2013 at 7:59 pm

Here is the file path I am working from:
event-espresso // templates // event_list_display.php


ashley haley

March 19, 2013 at 8:02 pm

I also tried event_post.php and event_list.php.


Dean

March 20, 2013 at 2:36 am

Hi,

What you need to do is copy two files to uploads/espresso/templates:

  • event_list_display.php
  • event_list.php

Although you may not edit event_list.php, if it is not there was well then the plugin will ignore event_list_display.php.


Tony Warwick

March 20, 2013 at 2:43 am

Those two files (_display being the file used to determine output, the other sets up the variables for you to use) you are editing are the correct files.

That being said your problem is likely down to W3 Total Cache. Your events list page looks like it is cached and therefor you are not seeing the changes you make.


Tony Warwick

March 20, 2013 at 2:51 am

Apologies Dean,

You hadn’t replied when I started so it looks like I’m contradicting what you are saying.

@ashley

To clarify, the files you are editing are correct but ee will look in ‘uploads/espressso/templates/’ for any custom template files first, then fall back to the default ones in ‘event-espresso/templates/’ if none are found.


ashley haley

March 20, 2013 at 7:45 am

Thanks for the quick response guys I will try this later this evening.


ashley haley

March 20, 2013 at 6:00 pm

Ok, guys I moved both of these two templates to that place in the ftp folder tree and I am still getting no results.

I have cleared the cache on the page and it doesn’t look like anything is taking effect.

Just for testing purposes I loaded a blank file in both locations and nothing changed at all. I am really confused by this.


Dean

March 21, 2013 at 12:55 am

Is it possible to get your login details in order to look into this? FTP detail are needed. That way I can see what you have done and what needs to be done.

If so, please send them via https://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level.


mwmwmw

March 21, 2013 at 1:03 am

I’m reading this thread with interest.

I’ve moved those two files, and have been able to edit some things to my liking (such as removing the rounded corners, and changing the order in which the information is displayed).

How would I go about displaying the information (date, title, available spaces) horizontally to each other?


Dean

March 21, 2013 at 1:07 am

@mwmwmw Hi, you will need to provide a little bit more information please. Where exactly is the data you are trying to modify? Do you have a link to the site?


mwmwmw

March 21, 2013 at 6:05 am

So I’m using the [EVENT_LIST] shortcode on this page:

http://mischaweissenberg.com/?page_id=36

I’m trying to reduce the height of each event listing, and if possible display the information side-by-side. While it doesn’t use Event Espresso, here’s an idea of the look I am going for:

http://www.theschooloflife.com/calendar/


Dean

March 21, 2013 at 6:41 am

Well, it is doable via the event_list_display.php, but looking at the example you gave I would be more inclined to use the Custom Files addon as that provides a great little table shortcode that can be modified.

Whilst I can’t recreate this for you, what I would do is create table cells in the file and add the data into them so in essence the event_list_display becomes one table row, and as the code cycles through the events it generates a row per event.

Adding in the month sections may be harder, as the lists were never meant to act like calendars.


ashley haley

March 21, 2013 at 9:22 am

Dean,
I just sent you my login info. Please let me know if you have any issues getting in.


mwmwmw

March 21, 2013 at 10:19 am

Great idea to put the entire event_list_display.php file inside a table. I’ve played around with it and can align the data in a horizontal row.


ashley haley

March 21, 2013 at 10:21 pm

Hey Dean,
It also looks like I am having the same issues with the confirmation_display.php file. Please let me know if you need anymore information.


Dean

March 22, 2013 at 1:22 am

@ashley,

I havent received any login details under your username, could you resend please?

send them via https://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level.


ashley haley

March 22, 2013 at 9:04 am

Ok, I just resent please let me know if you do not get it.


Dean

March 22, 2013 at 10:05 am

Thanks, recieved.

You had the

uploads/espresso/templates/

directory named

uploads/espresso/templates directory/

so it was causing issues, I have renamed it and the modified templates are now showing in the Template Settings page so you should be good to go.


ashley haley

March 22, 2013 at 10:13 am

Well Dean I had it named that way because of this discussion we had over here: https://eventespresso.com/topic/event-id-2/.

Did I do that wrong?


ashley haley

March 22, 2013 at 10:17 am

Also in doing that it caused my event ID to show back up on my registration page: http://www.oneloveyoga-studio.com/event/classes/register?regevent_action=register&event_id=979


Dean

March 22, 2013 at 10:37 am

Hi Ashley,

I could have perhaps structured the sentence better, but the word directory was just referring to it being a directory.

Regarding the event ID, it is probably because you have old templates in the

uploads/espresso/templates

directory. You can rename the espresso folder and that will revert the plugin to using the defaults. Then you will need to copy the right files over to the newly created espresso folder (the plugin will automatically create one if one doesnt exist) and start modifications.


ashley haley

March 22, 2013 at 12:30 pm

I will take some time to review this over the weekend and be back in touch.


Dean

March 25, 2013 at 3:33 am

OK, let me know if you need any further help or if we can mark this as resolved.

Thanks


ashley haley

March 25, 2013 at 7:34 pm

Dean, it still does not seem to be taking effect.

I currently have the event_list_display.php file setup to show the price, date, and available spaces above $event_desc. The display file will not read this correctly and is placing the available spaces below the event description.

I also added a custom class to the start date and it is not reading in firebug. Then I tried to update the registration_page_display.php with no luck.

I am still very unclear as to why this is not working can you please look into further and let me know of the steps I need to take?


Dean

March 26, 2013 at 2:52 am

Hi Ashley,

I would start afresh here.

Rename the Espresso folder to OLD_Espresso or something similar.

Add a new Espresso folder.

Copy the event_list.php and event_list_display.php from wp-content/plugins/event-espresso/templates to the new Espresso folder.

Don’t copy any more files unless you will be actively editing them.

This will mean you are using the default templates so it will get rid of the event ID number that is showing.

Edit those files with your changes.


ashley haley

March 26, 2013 at 7:09 pm

I just followed through those steps and nothing has changed. It looks like this is just going to work? I am really at a loss here of what I need to do to get this to happen.


ashley haley

March 26, 2013 at 7:10 pm

I mean I may be able to get a work around to get satisfactory results, but when the next update comes around there is a chance that all of this could get messed up.


Josh

  • Support Staff

March 27, 2013 at 11:12 am

Hi Ashley,

What is the exact location of the file where you are making this change? Can you post the contents of the file in a gist or pastebin so we can take a look?

When you copy over a template file to /wp-content/uploads/espresso/templates, the updates do not overwrite these files. So all you need to do to stay up to date is copy over any changes from the update into your custom file. This only applies if there is a change in the file in the update.


ashley haley

March 27, 2013 at 7:48 pm

Josh,
The location of the file where I am making the page is /wp-content/uploads/espresso/templates. But, for some reason it does not look like my change is taking place.

This part is concerning to me because it is reading a file from somewhere else and I am not sure where? That is why I am concerned about a future update messing up my setup.

For right now what I am trying to do is move the info that states “Available Spaces” above the event description. I believe in my file I do have this setup in a way to be displayed as such. I have copied the file to pastebin: http://pastebin.com/8Vwtc1aW.

Also I gave site admin and ftp credentials to Dean if you need to investigate into anything further.

Thanks for taking the time to look at this.


Sidney Harrell

March 27, 2013 at 9:19 pm

For some reason, it was pulling the event_list_display template from your theme’s directory. I renamed the copy in there to not_event_list_display.php, and now it is using the copy in uploads/espresso/templates.


Dean

March 28, 2013 at 1:43 am

Yes, the templates can now be added to the theme directory as well as the templates folder, I didnt think to look there so good catch Sidney.


ashley haley

March 28, 2013 at 7:30 am

Ok, that is awesome thanks for doing that. So if I wanted to update another template I should take the following steps:
– Move a template from plugins/espresso/templates to
uploads/espresso/templates
– Rename the folder in the plugins/espresso/templates location
– Edit the file accordingly in uploads/espresso/templates

Please let me know if that is correct, and thanks for all the help.


Sidney Harrell

March 28, 2013 at 7:43 am

You don’t have to rename the folder or file in the plugins/espresso/templates directory. The system first looks in the uploads/espresso/templates directory, and only if it does not find the template there does it then look in the plugins/espresso/templates directory.
Some of the templates work in pairs, such as registration_page.php and registration_page_display.php. For those, you’ll want to copy both files over to uploads, even if you are only modifying one.

The support post ‘Event List Template’ 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