Support

Home Forums Event Espresso Premium espresso table

espresso table

Posted: January 31, 2014 at 2:57 am


sergio Pannella

January 31, 2014 at 2:57 am

how can I integrate it into a espresso table a registration with external urls?


Tony

  • Support Staff

January 31, 2014 at 3:45 am

Hi Sergio,

Sorry but I’m not sure I follow.

Can you explain a little more what it is you need please?

Which Espresso Table are you using?


sergio Pannella

January 31, 2014 at 3:59 am

Hi Tony,is the “espresso table” short code. the “Details” link should, if the case is to an external URL, not directly to site event. I have the shortcode integrated into a newsletter, with a couple of events with external Registrations.


Tony

  • Support Staff

January 31, 2014 at 5:12 am

Hi Sergio,

You need to check if the externalURL has been set on the event.

If you open up wp-content/uploads/espresso/templates/espresso_table.php

Go to line 94, you should find:

    $register_button = '<a id="a_register_link-'.$event->id.'" href="'.get_option('siteurl').'/?page_id='.$event_page_id.'&regevent_action=register&event_id='.$event->id.'&name_of_event='.stripslashes_deep($event->event_name).'">Register</a>';

Under that paste:

$externalURL = $event->externalURL;
if(!empty($externalURL))
{
  $register_button = '<a href="' . $externalURL . '">Register<a/>';
}

You may want to alter the link slightly to suit, but that checks is an alternativeURL has been set on the event, if so, then it replaces the content of $register_button with that link, with the test ‘Register’ to match the others.


sergio Pannella

January 31, 2014 at 6:31 am

it works!
many thanks.

The support post ‘espresso table’ 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