Support

Home Forums Social Media Buttons Add-on Share button on Thank You page

Share button on Thank You page

Posted: July 22, 2013 at 10:52 am

Viewing 1 reply thread


Jaco

July 22, 2013 at 10:52 am

Hi Guys

I was wondering whether it would be able to add the social media share button to the Thank You page after a user has registered and paid for an event.

My issue with the current social media buttons on above the registration details section is that you are asking a user to share whilst he’s in the process of registering. I.e. 2 Calls to Action at the same time.

Take for Avaaz for instance. Their calls to action are simple and to the point. 1) Support a Campaign. Then after you’ve clicked support 2) Share with friends! (see screenshot: https://dl.dropboxusercontent.com/u/15136767/Avaaz%20share%20call%20to%20action.png)

Would it be possible to hack the current social media buttons to appear on the Thank You page, and enable a user to share an the url of the event via Twitter or FB?

Thanks! We’re using EE to great effect and enjoying it’s ease of use. Keep up the good work!

Jaco


Dean

July 23, 2013 at 5:08 am

Hi,

There is a hack to get it to work there, but it is that, a hack.

The first part is ok:

Edit the payment_page.php template and add the following

<?php 
echo espresso_social_media_buttons($event->id, "twitter");
echo espresso_social_media_buttons($event->id, "facebook");
echo espresso_social_media_buttons($event->id, "google");
?>

This will display the social media links on the thank you page (when payment confirmed). Problem is, Facebook requires its open meta stuff in the header. The core function disables this unless events are shown.

As such you would need to edit the core espresso-social.php file and change the function espresso_social_insert_to_head() so that it either activates on every page (not advisable) or activates only on the main event registration page (better but still not great).

After that its a case of styling them as your needs fit.

I will put your ideas forward for future versions of the social media plugin.

Viewing 1 reply thread

The support post ‘Share button on Thank You page’ 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