Support

Home Forums Event Espresso Premium Hyperlinks in custom plugin

Hyperlinks in custom plugin

Posted: April 10, 2018 at 10:48 am


sogtalks@gmail.com

April 10, 2018 at 10:48 am

Hi, I have a custom plugin to change the text in a ticket price/description. It includes a hyperlink to redirect the viewer to the login page. Worked fine for months but now the hyperlink is exposed and not working as a link, just text. Recently upgraded EE plugin, not sure if that is cause or if hosting server changed some php setting. Link: https://bit.ly/2H9RImJ

Thank you.


Tony

  • Support Staff

April 10, 2018 at 11:07 am

Hi there,

Can you add the code you are using to a Gist or Pastebin and post the URL here so we can view it, please?


sogtalks@gmail.com

April 10, 2018 at 11:53 am

https://pastebin.com/y8drWMbP


sogtalks@gmail.com

April 10, 2018 at 12:33 pm

Also, my users cannot purchase a guest ticket, maybe a related problem?


Tony

  • Support Staff

April 10, 2018 at 1:49 pm

Swap out your code for this:

https://gist.github.com/Pebblo/783dc4f9f43b9780d860112817edfd6d

It uses a filter within the add-on to change the text rather than translating (meaning it will be a little quicker to run)

Also, my users cannot purchase a guest ticket, maybe a related problem?

No, that’s not likely to be related to this.

What happens when they try to register onto the guest ticket?


sogtalks@gmail.com

April 10, 2018 at 2:01 pm

Tony,

Perfect, that worked. Other issue doesn’t appear now, guests can purchase tickets (add to cart).

Thank you for the quick reply.


Tony

  • Support Staff

April 10, 2018 at 2:22 pm

Hmm, that’s strange, I’m not sure how that relates.

Either way, I’m glad the above is working for you.

Any further problems just let us know.

The support post ‘Hyperlinks in custom plugin’ 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