Need A Solution To This...

4 replies
Hey warriors,

I am after a plugin or a way that i can add a facebook and twitter button to a thankyou page on optimizepress that shares the original squeeze page

Any suggestions?
#solution
  • Profile picture of the author JamesBorg
    Having share buttons on a thank-you/download page that actually share the squeeze page is going to be tricky -- if things screw up, your visitors will be sharing your thank-you/download page (ouch).

    Avoid a plugin because you never know whether a plugin update is going to reset the shared URL back to the thank-you/download page (just think of how many plugins mysteriously re-check the "share my statistics" and "promote this plugin" options during updates). Instead, grab some share-button code that you can modify and add manually to your thank-you/download page. Then you know that it should stay how you want it.

    The next problem is that you want your modified share-button code to take priority over any Facebook Open Graph meta tags that you may currently have on the thank-you/download page or that future plugins may add. Otherwise, if the Open Graph meta tags take on common default values, your visitors will again be sharing your thank-you/download page regardless of what your modified share-button code insists on doing (ouch again).

    ShareThis claims its custom mods will take priority over Open Graph meta tags:

    http://support.sharethis.com/custome...om-information

    So far so good. Here's what you can try:

    1. Go to http://www.sharethis.com.
    2. Click "Get Sharing" at the top.
    3. For the platform, select "Website."
    4. Click "Next."
    5. Select the style you want. I'd go with one of the three styles under "Buttons" (left column).
    6. Click "Next."
    7. Uncheck "Measure copy and shares of your website's content" and uncheck "Measure copy and shares of your website's URLs."
    8. Under "Selected Services," delete ('x') everything except the Facebook and Twitter services.
    9. Click "Finished: Get the Code!"
    10. Click "No thanks, just give me the code!" (bottom right of pop-up).

    Now you should receive two sets of code:

    i. 'script' tag code to insert manually before the closing 'head' tag on your thank-you/download page.
    ii. 'span' tag code to insert manually on your thank-you/download page wherever you want the buttons to appear.

    It's the 'span' tags you'll want to modify. Here's what I get:

    Code:
    <span class='st_facebook_large' displayText='Facebook'></span>
    <span class='st_twitter_large' displayText='Tweet'></span>
    Here's how they should be changed:

    Code:
    <span class='st_facebook_large' displayText='Facebook' st_url='http://SQUEEZE-PAGE-URL' st_title='TITLE' st_summary='TEXT/DESCRIPTION'></span>
    <span class='st_twitter_large' displayText='Tweet' st_url='http://SQUEEZE-PAGE-URL' st_title='TITLE' st_summary='TEXT/DESCRIPTION'></span>
    Warning: I haven't tried this myself, so ensure you check that it's working as intended -- for both buttons but especially for Facebook.
    {{ DiscussionBoard.errors[8572410].message }}
    • Profile picture of the author vickybabe
      Thanks man that is a great response. I will check it out and see how it goes.
      I definitely did not think that it would be that technical though.

      Seems like a great idea for a product too if anyone could manage to put it together

      I would certainly buy it
      {{ DiscussionBoard.errors[8572431].message }}
  • Profile picture of the author Gideon Olade
    By default sharing plugins share the page currently being viewed. Most sharing plugins also allow their users to configure and overwrite the default URL.

    Check out the following links from the Addthis service on how to set a different URL to share:

    Customizing Addthis - URL & Title
    Setting the URL to Share
    {{ DiscussionBoard.errors[8572448].message }}
  • Profile picture of the author WillR
    You shouldn't use plugins for something as easy as this.

    1. Find two images for the share buttons.

    These will do:

    Share Buttons #1

    or

    Share Buttons #2

    2. Link those images to the share urls for each platform.

    Facebook Button:

    PHP Code:
    <a href="http://www.facebook.com/sharer/sharer.php?s=100&p[url]=http://www.google.com&p[images][0]=&p[title]=Google&p[summary]=This%20is%20my%20website"><img src="facebook-button.gif" width="100" height="50" alt="Click to Share"></a
    Twitter Button:

    PHP Code:
    <a href="http://twitter.com/home?status=This%20is%20my%20tweet%20text%20and%20description:%20http://www.google.com"><img src="twitter-button.gif" width="100" height="50" alt="Click to Share"></a
    I just found this site which makes creating those links for Facebook and Twitter very easy. Just enter the data you want to show and it will create the full share links for you.

    http://www.sharelinkgenerator.com/
    {{ DiscussionBoard.errors[8574983].message }}

Trending Topics