WordPress.org

Forums

[Plugin:WP Photo Album Plus] How to use with AddThis to email exact URL. (4 posts)

  1. diesel4555
    Member
    Posted 3 years ago #

    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

  2. Jacob N. Breetvelt
    Member
    Posted 3 years ago #

    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

  3. diesel4555
    Member
    Posted 3 years ago #

    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

  4. Aaron Jorbin
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic