Posted: May 27, 2015 at 9:08 am
I saw a similar thread titled “View event description after event is full” that was partially resolved in 2013. I have the exact same query but am not sure if the github code provided there is outdated or not, and if the problem of the “edit event” button that shows on an event page when logged in disappearing is fixed. Essentially I just would like the event description information to still be visible even when the event is closed or full, and not lose the “edit event” button. Help is appreciated, thanks so much! |
|
Hi Lauren, there is an updated solution towards the end of the support post: https://eventespresso.com/topic/view-event-description-after-event-is-full/#post-71828 Did you give that a try? On the edit event link, that should appear when you are logged in as an administrator for your WP site. — |
|
I don’t see any posts newer than 2013 there. I was asking if code/info from 2013 was still applicable. If it is, I will try it. I had posted a second question here but it seems to have been lost. I asked how one makes available spaces visible so potential attendees can have an idea of how many spaces there are. I found this: https://eventespresso.com/wiki/how-to-customize-your-available-spaces-text/ which is what I’d like to do, but it seems to suggest available spaces are visible by default, which they are not for me, and the lines of code it asks me to find are not as listed. For example, line 103 in event_list_display.php for me is very different from what is listed on that page, and therefore I am not clear on what to change. Thanks! |
|
It worked! Hooray. So my only remaining question is about the available spaces. |
|
Hi Lauren, By default the Attendee numbers should be visible on the event list – http://take.ms/YMdB9 But not within the event details/registration page. So before going into details can you tell me exactly where you would like to display the attendee limits please? Or link me to where you would like to display them please? |
|
Ah! That makes sense why I can’t see them then – we don’t use the event list, we only use the calendar. I was trying to display attendee limits and number of completed registrations – or ideally in a more vague sense, like the documentation article – but on the registration page for an event if possible. I suppose if it is too much of a hassle to edit, I can just use shortcodes. It’s just a lot of events to have to do it for π I envisioned it here: https://goo.gl/j2zmRH maybe where the date and start/end times are listed. My mistake. |
|
We can still add them to the registration page template, I just wanted to confirm exactly where you wanted them π So in that case you want to edit the registration_page_display.php template. Copy that from event-espresso/templates/ to wp-content/uploads/espresso/templates/ Edit the file for that location and around line 170 add this: $num_attendees = apply_filters('filter_hook_espresso_get_num_attendees', $event_id); if ($num_attendees < $reg_limit) { ?> |
|
I forgot to mention (although you’ll already have done this with the modification from the first post), when doing the above you’ll also need to copy the registration_page.php file to that templates folder. So in wp-content/uploads/espresso/templates/ you’ll have: registration_page.php registration_page.php is used to setup the variables for use in registration_page_display.php so hey are both needed. |
|
Thanks so much! I believe I have set everything up as you said, with both files in the correct templates folder. I pasted the code as you had in your image using Dreamweaver, but the page remains unchanged. I know the template file is in the right place because I’m using the one from the github in my first query and it works. Any ideas? Thanks for your time. |
|
Yikes! My mistake – I copied the right one and it made all registration pages go: Parse error: syntax error, unexpected end of file in /home/waterwo4/public_html/wp-content/uploads/espresso/templates/registration_page_display.php on line 274 |
|
Just above the if statement add: echo "Test"; Refresh the page and see if ‘Test’ is output on the page anywhere. If not paste your code into http://pastebin.com and post the link here, I’ll take a look and see if I can spot anything out of place. |
|
I figured out the problem – there were a few spaces where there shouldn’t be. Where it was supposed to read <?php, it was < ?php. Now it works. Cheers! |
|
Ahh apologies I didn’t spot that, it’s the syntax highlighter we use on the forums, it doesn’t like php tags. I’m glad your up and running π |
|
The support post ‘EE3 – Make event description still visible after event is full/closed’ 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.