Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Event Registration page - show start time and end time | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Event Registration page – show start time and end time

Event Registration page – show start time and end time

Posted: September 12, 2012 at 5:06 am

Viewing 5 reply threads


jmahood

September 12, 2012 at 5:06 am

Hello,

Is there a way to show the event start time and end time even when the display registration form option is set to no? We are showing events that individuals don’t need to register for, but these events also need to show the time.

I found code on line 136 of registration_page_display.php and am wondering if this is related.

Thanks

  • This topic was modified 12 years, 5 months ago by jmahood. Reason: code not displaying
  • This topic was modified 12 years, 5 months ago by jmahood.


Dean

  • Support Staff

September 12, 2012 at 5:57 am

Hi,

Heres a hack that can be used (make sure you back up registration_page_display.php)

On line 136 after the closing </p> and before the next <?php add

<?php
if ($display_reg_form == 'N') {
echo event_espresso_get_time($event_id, $format = 'start_time');
echo event_espresso_get_time($event_id, $format = 'end_time'); 
}
?>

You will obviously need to style it to make it look pretty


jmahood

September 12, 2012 at 7:54 am

Thanks Dean, that helped a little. I couldn’t get it to work using your specific instructions, but I found another method.


Dean

  • Support Staff

September 12, 2012 at 11:11 pm

Hi

Sorry mine didnt work for you, glad you got it sorted though


Jonathan Wilson

  • Support Staff

September 12, 2012 at 11:13 pm

@jmahood, I’m curious. Will you share what you did to make it work? I for one like to know how others come about resolutions to their problems.

Thanks! :)


jmahood

September 13, 2012 at 7:39 am

I used Dean’s ($display_reg_form == ‘N’) code, but I ended up copying the entire bit. So I have the same code for when the registration form is enabled and disabled, just separated. I bet there is a better way to go about it, but this works for my needs.

Viewing 5 reply threads

The support post ‘Event Registration page – show start time and end time’ 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 - Staging Server