Support

Home Forums Event Espresso Premium Properly configuring and linking the Registration Button to events pages

Properly configuring and linking the Registration Button to events pages

Posted: May 7, 2014 at 4:05 am


SocialiteVIP

May 7, 2014 at 4:05 am

Okay, we were able to remove the event old 438 from being attached to the register button. But we had attach it to another event. How can we get it to directly link with our event pages? We don’t want it going to ONE specific event. If that event ever expires or closes this would cause the same issue. We nee a direct link to the events pages. Not a particular event. Please help use. You can take a look below

Wp-content/uploads/espresso/templates/event_list_display.php

We would like the link(href) to go directly to the event that is it corresponds to if possible.

If you are not logged in, it will take you to login/registration page. But if you are logged in.. it takes you to that specific event instead!


Dean

May 7, 2014 at 5:12 am

Hi,

That link won’t provide us with the code to view. Please use Pastebin or similar service.

While we cannot provide support for customisations, I would suggest looking at the code again. Are you hardcoding an event ID in there?

IF you look at a default event_list_display.php you will see a line that looks like this

<a class="a_register_link ui-button ui-button-big ui-priority-primary ui-state-default ui-state-hover ui-state-focus ui-corner-all" id="a_register_link-<?php echo $event_id ?>" href="<?php echo $registration_url; ?>" title="<?php echo stripslashes_deep($event_name) ?>">

This is using the $registration_url variable created in event_list.php and should provide an exact link to that event in the foreach.

If you are not using that, then perhaps this is something to consider.

You also need to make sure that this is still in the foreach loop, otherwise it might be adding the wrong event ID (the last one created).

We have a recommended developer list here should you need it: https://eventespresso.com/developers/event-espresso-pros/


SocialiteVIP

May 7, 2014 at 1:06 pm

Thanks for the response but I put that code in there and it tries to go to this url http://www.socialitevip.com/sacramentoevents/&lt;?php echo $registration_url; ?> and does not put the registration url where it’s supposed to be.


SocialiteVIP

May 7, 2014 at 5:30 pm

As of right now, if a user is not logged in and clicks the The Guestlist button they get the error “404 ERROR – NOT FOUND
The page you requested does not exist.”


Dean

May 8, 2014 at 1:04 am

It sounds like you are adding PHP tags within PHP. It’s hard to be sure without seeing the code.

Do you have any experience with coding in PHP? If not I would suggest contacting a developer to help you modify this template.

The support post ‘Properly configuring and linking the Registration Button to events pages’ 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