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, 3 months ago by jmahood. Reason: code not displaying
  • This topic was modified 12 years, 3 months ago by jmahood.


Dean

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

September 12, 2012 at 11:11 pm

Hi

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


Jonathan Wilson

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