Support » Plugins and Hacks » [Plugin:WP Photo Album Plus] How to use with AddThis to email exact URL.

  • I just found out about WP Photo Album Plus and I love it. I am trying to use WP Photo Album Plus with the AddThis plugin to enable folks to email and share exact picture url they are looking at. Is there a way to do this with AddThis or another plugin? If some code change is needed it would be great to point me in the right direction and help as much as possible.

    -Diesel

Viewing 3 replies - 1 through 3 (of 3 total)
  • I do not know how to integrate with addthis, but the php routine:

    wppa_get_image_url_by_id($id) returns the full url to picture id nr $id.

    Example: wppa_get_image_url_by_id('19') may return:

    http://wppa.opajaap.nl/wp-content/uploads/wppa/19.jpg

    How would I call this function? I am a newbie and I am trying to learn what file will I potentially have to modify to call this function. BTW, I like what you did on your site http://wppa.opajaap.nl/ with “AddThis” and I was wondering which file did you put that code into? Any poniters would be helpful.

    -Diesel

    Hi diesel4555,
    You can have any url be the shared URL by using the following action anywhere in your theme:

    do_action('addthis_widget' , $URL_YOU_WANT_TO_SHARE, $TITLE_OF_WHAT_YOU_WANT_TO_SHARE, $style );

    See $addthis_new_styles defined near the top of the plugin file to see the different names to pass for style. Alternativly, you can pass in an array for a custom toolbox. See the addthis_custom_toolbox function for how the array should be structured.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin:WP Photo Album Plus] How to use with AddThis to email exact URL.’ is closed to new replies.