Support

Home Forums Event Espresso Premium Off-site registration link to open in new window

Off-site registration link to open in new window

Posted: July 22, 2014 at 4:39 pm

Viewing 6 reply threads


Dennis Overhage

July 22, 2014 at 4:39 pm

Hi!

With the creation of an event there is the option to enter an off-site registration link URL. Now when the user clicks this event he will leave my site. I would like to have the off-site registration page opened in a blank screen.

Should be easy enough but I can’t figure out where to do this…

Furthermore, I’m very pleased with your plugin. Keep up the good work!


Dean

July 23, 2014 at 4:37 am

Hi Dennis,

Oddly enough this isn’t a setting.

Currently the only way to do it is to make a file edit.

Start by copying the following files

/wp-content/plugins/event-espresso/templates/event_list_display.php
/wp-content/plugins/event-espresso/templates/event_list.php

over to

/wp-content/uploads/espresso/templates

Then edit

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

Around line 44 it should show this code

Replace it with this code



Now what will happen is events with an external URL will use a new tab and ones that aren’t will just open as normal.

Hope that helps!


Dennis Overhage

July 23, 2014 at 5:04 am

Hi Dean,

Thanks for looking into it. The problem however still occurs! When clicking the event from the Upcoming Events widget or from the Events Calendar I get instantly redirected from my website to the off-site URL.

Should the code be used in a different place?


Dean

July 23, 2014 at 6:44 am

Ahhh I see, yes those are different parts of the plugin.

Well the widget can be changed. Similar to the above, copy over the widget.php file

edit: changed to pastebin as our code highlighter is being weird

http://pastebin.com/pHJcPbXU

The calendar is a different matter. The changes wont survive an update and can only affect the tooltip not the blob on the calendar.

/wp-content/plugins/espresso-calendar/espresso-calendar.php

change the entire contents to the content here (it’s easier than trying to explain the changes) – http://pastebin.com/z7j9mzkb

  • This reply was modified 10 years, 4 months ago by Dean. Reason: code issues


Dennis Overhage

July 24, 2014 at 2:04 am

Thanks again. The calendar works fine now! No problem that the changes won’t survive an update.

The Upcoming Events widget had no effect however…

I copied the wp-content/plugins/event-espresso/templates/widget.php to wp-content/uploads/espresso/templates/widget.php and replaced the code as you suggested. I also tried to edit the file directly but it didn’t matter.

I’m using Event Espresso version 3.1.36.5.P


Dean

July 24, 2014 at 3:35 am

Sorry, that was a typo on my part. I have updated the pastebin, but basically the

if($externalURL != '' )

bit should read

if($event->externalURL != '' )


Dennis Overhage

July 24, 2014 at 6:33 am

That did the trick. Works like a charm!

Thank you Dean!

Viewing 6 reply threads

The support post ‘Off-site registration link to open in new window’ 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