Support

Home Forums Event Espresso Premium Need Space Available text on Event Registration page

Need Space Available text on Event Registration page

Posted: December 12, 2012 at 2:40 pm


Cindy Habermehl

December 12, 2012 at 2:40 pm

Need Space Available text on Event Registration page and can Attendee names/list be a public link?

Thank you!

http://dfdgold.cocodesignsinc.com/event-registration/?ee=121


Jonathan Wilson

December 12, 2012 at 3:13 pm

Hello again, Cindy.

You’ll need to paste this shortcode into the event description (with the text):
Available Spaces: [ATTENDEE_NUMBERS event_id=16 type=available_spaces]

Make sure you add the appropriate event id. You can find that in the URL when you are in the event overview.

You can use [LISTATTENDEES event_identifier=”your_event_identifier”] to show a single event using the event identifier.

More info about shortcodes here:
https://eventespresso.com/wiki/shortcodes-template-variables/


Cindy Habermehl

December 12, 2012 at 11:16 pm

Thanks Jonathan! Do these shortcodes work with recurring events?


Dean

December 13, 2012 at 12:10 am

Hi Cindy,

Yes the shortcodes will work with recurring events as the shortcodes are using the event identifier or the event id, which are always unique.


Cindy Habermehl

December 13, 2012 at 12:29 am

Does that mean I need to manually modify these shortcodes for every recurring event or is it automatic?

Thank you!


Dean

December 13, 2012 at 12:46 am

Hi,

Unless you modify the template files to use PHP to obtain the event id, it will have to be manually done.

Here is some code you can use in the templates

For the available spaces

<p><span class="span_event_date_label">Available Spaces: </span><?php echo do_shortcode('[ATTENDEE_NUMBERS event_id=' . $event_id . ' type=available_spaces]'); ?></p>

and for the list attendees

<p><?php echo do_shortcode('[LISTATTENDEES event_identifier="' . $event_id . '"]'); ?></p>


Cindy Habermehl

December 13, 2012 at 11:12 pm

Ok, thank you. Can you please tell me which Template files I need to modify?


Dean

December 13, 2012 at 11:34 pm

Sorry, yes of course, the registration_page_display.php.

Please follow the usual modification route and copy it to the uploads/espresso/templates folder and edit it there. You will also need to copy the registration_page.php file.


Cindy Habermehl

December 17, 2012 at 11:45 am

Is there code that I need to remove and replace with the above? Thank you! (a little new to modifying code) Not sure where to put the suggested code. 🙂


Josh

  • Support Staff

December 17, 2012 at 2:54 pm

Hi Cindy,

In this case, you wouldn’t be removing any code. You can place the code where you’d like it to be displayed. For example, if you wanted to display it just above where it displays the date info you’d add it right around line 122 (in the current version) so it will look like this:

?>
   <!-- Your code here -->
            <p class="start_date">
                <?php if ($end_date !== $start_date) { ?>

Please note: If you customize and change the template code from the defaults we’ve created and tested, it becomes your job to maintain it. What this means is if we update registration_page_display.php and or registration_page.php in a future update, you’ll need to keep those changes in sync with your custom version of these templates.


Cindy Habermehl

December 17, 2012 at 3:08 pm

Thank you! Works great!

The support post ‘Need Space Available text on Event Registration page’ 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