Support

Home Forums Event Espresso Premium Extra Fields Displayed in Event Listings

Extra Fields Displayed in Event Listings

Posted: November 18, 2015 at 12:59 pm

Viewing 6 reply threads


Anne Eglash

November 18, 2015 at 12:59 pm

Hello:
Recently, our event listings have begun showing 2 extra fields at the bottom of each listing:
ee_member_only
Member Only Event

It can be viewed here:
https://themilkmob.org/event-registration/

I’ve updated the plugin, looked at the documentation and some of the support threads, but no luck.
Member pricing automatically repopulates even if I delete the field.
I’ve set “Manage Member Settings/Require login for all events?” to both yes and no.
We do require that people login before being able to register for an event.

Thanks.


Anne Eglash

November 18, 2015 at 1:23 pm

Version is 3.1.37.6.P


Lorenzo Orlando Caum

  • Support Staff

November 18, 2015 at 6:14 pm

Hi Anne,

That is from the event_list_display.php template. However, it should not be appearing like that as ee_member_only is actually a css class:

http://cl.ly/image/3N3N3U24330A

It should just say Member only alone without the CSS class name.

I do see that your site has a modified event_list_display.php file here:

/wp-content/uploads/espresso/templates

Could you temporarily rename that file by adding an extra value to the file name like this:

event_list_display.php –> event_list_display1.php

If that helps with the extra display issue, then there may be a problem with the customizations that were made to your file.

You can see compare your changes against a default file here:

/wp-content/plugins/event-espresso/templates/event_list_display.php


Lorenzo


Anne Eglash

November 18, 2015 at 8:56 pm

Thanks Lorenzo.
We renamed event_list_display.php per your recommendation, but no change.
It appears that something has changed in a recent update as we’ve not had either of those strings appear in the past. We’ve not customized any of the EE php files since last Feb.


Tony

  • Support Staff

November 19, 2015 at 5:20 am

Hi Anne,

Within your /wp-content/uploads/espresso/templates/

Do you have both event_list.php and event_list_display.php?

The problem is with the code Lorenzo shows in the screenshot above, you will need to edit the code to fix it.

Within event_list_display.php, around line 148 you’ll find this:

if ( function_exists('espresso_members_installed') && espresso_members_installed() == true && !is_user_logged_in() && ($member_only == 'Y' || $member_options['member_only_all'] == 'Y') ) {
				echo '<p class="'. espresso_template_css_class('ee_member_only','ee_member_only') .'">'.__('Member Only Event', 'event_espresso').'</p>';
			}else{

You’ll need to change this line:

espresso_template_css_class('ee_member_only','ee_member_only')

To this:

espresso_template_css_class('ee_member_only','ee_member_only', false)

I have created a ticket for this to fixed within EE but if you are loading a custom event_list_display.php file you’ll need to ad it manually there. The custom event_list_display.php template will only load if you have both event_list.php and event_list_display.php within the above directory so you may actually be using the default template currently.


Anne Eglash

November 20, 2015 at 10:31 am

Thanks Lorenzo:
I didn’t find that line of code in my copy of and we didn’t have a copy of event_list.php in our custom ee templates folder. Further, we noticed that our copy of event_list_display.php was from 10/30/14.
We copied both files from the ee templates folder to our custom ee templates folder, made the change suggested above, and the problem is fixed.

It appears that all of our custom changes have been added to the EE core, so we no longer need to use these files except for this fix. Is there a way we can check when this is changed in the core files so we can remove our custom templates?


Tony

  • Support Staff

November 20, 2015 at 10:43 am

The above fix will be included within the next update to EE3 so after that update you can remove those 2 files if you prefer.

I don’t have an eta on when that will be released currently.

Viewing 6 reply threads

The support post ‘Extra Fields Displayed in Event Listings’ 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