WP Photo Album Plus
[resolved] Customize link (11 posts)

  1. bl0c
    Posted 2 years ago #

    Firstly, a huge thank you for your great plugin!! I use it on all my sites.
    Please forgive me for my bad English because I'm French.
    I would like to customize a max your plugin to suit my needs.
    I tried to make each photo 3 buttons appear and leads to a custom link by the name of the image. You understand surment better with the code.

    echo '<a href="http://les-casques-jaunes.craft-web.com/skin/?user='.$name.'"><img src="wp-content/uploads/logo/bouton2.gif"></a>';
    echo '<a href="http://adf.ly/2566826/http://minecraft.net/profile/skin/remote?url=http://les-casques-jaunes.craft-web.com/wp-content/uploads/skin/'.$name.'.gif"><img src="wp-content/uploads/logo/bouton4.gif"></a>';
    echo '<a href="http://adf.ly/2566826/les-casques-jaunes.craft-web.com/wp-content/uploads/skin/'.$name.'.png"><img src="wp-content/uploads/logo/bouton3.gif"></a>';
    $name = $_GET['name'];

    I do not really know the php code, but with a lot of research I finally found a solution that works. Unfortunately, when I add more photos, and the button does not multiply the image currently visible.http :/ / hpics.li/a3e53ab
    How could adjust cares very annoying please?
    And would you know how to make links in the description is not up? Where placed?

    Thank you for reading and hope you can/want to help me


  2. Jacob N. Breetvelt
    Plugin Author

    Posted 2 years ago #

    I do not really understand your problem, but:

    You should put the links in the Description field in the Album admin -> Edit -> Manage photos -> description.

    You must enter the links in HTML, you can NOT use php there.

  3. bl0c
    Posted 2 years ago #

    I use google translation is very bad English: p
    What I want is to save time by using php to prevent repetitive actions and have a better flexibilitée.

    For this I modify the source code and I want to display 3 logos for each image.
    When there is a picture, everything goes well, but as soon as I add pictures logos are multiplying like here:

    So I would like that when I view an image only the logos of the image in question is displayed.

    Hoping to have been more clear ...

  4. Jacob N. Breetvelt
    Plugin Author

    Posted 2 years ago #

    1. Your english is MUCH better than googles translation.

    2. If you want to add programmatic code to each image description, add it in the function wppa_get_slide_info() in wppa-functions.php.

    3.Find this code fragment: (line 996 in the current version)

    // Make photo desc, filtered
    if ( !$wppa['is_slideonly'] || $wppa['desc_on'] ) {
    	$desc = wppa_get_photo_desc($id);

    either put your code befor or after the photo-desc. Assume your code is in $mycode do one of these two options:

    $desc = wppa_get_photo_desc($id) . $mycode;


    $desc = $mycode . wppa_get_photo_desc($id);

    $mycode must contain html and or text

  5. Jacob N. Breetvelt
    Plugin Author

    Posted 2 years ago #


    $name = ...

    The name of the photo is here:

    $name = wppa_get_photo_name($id);

    $mycode becomes something like this:

    $mycode = '<a href="http://les-casques-jaunes.craft-web.com/skin/?user='.$name.'"><img src="wp-content/uploads/logo/bouton2.gif"></a>'
    $mycode .= '<a href="..." etc...  </a>';
    $mycode .= '<a href="..." etc...  </a>';

    Hope this helps you further

  6. bl0c
    Posted 2 years ago #

    If you see my English, you would take fear: p well I use google translation ^ ^
    "Hope this helps you further" Of course! I will remerci infinitely
    I could put more pictures of 1000-2000, if I had to update the links manually, that would be a huge job and I just want to change the url, I'm done ^ ^
    I really appreciate this support exeptionnel for a free plugin, if my site works well and adf.ly brings me a lot, you'll be the first to receive a donation.

    Again a huge thank you and good luck for your plugin that I use on all my websites.

    I have an idea for improvement if you're interested, I'm not sure this is possible: Power inserted videos, just like a photo.

  7. Jacob N. Breetvelt
    Plugin Author

    Posted 2 years ago #

    Thanx. videos is a future development.

  8. flobogo
    Posted 2 years ago #

    hello / bonjour,
    Je m'adresse à bl0c en français ... étant moi-même française ^^
    Le plugin est super pour les albums photos, mais je voudrais aussi l'utiliser pour insérer des photos au fil de mes pages.
    J'ai bien trouvé le code pour insérer une photo unique et même spécifier sa taille, mais je voudrais pouvoir mettre un lien pour que le visiteur clique et voie la photo en grande taille.
    Savez-vous comment faire un tel lien sur une photo avec WPPA ?
    Merci d'avance et désolée de "squatter" votre post ;-)

  9. bl0c
    Posted 2 years ago #

    Créer un nouveau sujet en anglais, je peux pas d'aidé :p

  10. flobogo
    Posted 2 years ago #

    Ok, merci d'avoir répondu.
    J'ai créé un post en anglais ...

  11. helotes
    Posted 2 years ago #

    Hi - I am also using this tool and like it but am unclear on how to make the 'links' function work. Here is what I am trying to do.

    I have two photo albums. I need to have links to an external website in the full-sized description. I have typed in html code for the tag but the full-size image does not allow me to click on the link (cant hover over the caption) and when clicking on the full-size image itself, it opens a larger version of the image in which the html code appears to the viewer. *(but there is still no way to click on the link and go to the external website)

    Please advise me on the best way to do this --- this is the only thing that is missing to successfully use this plugin and I would really like to make it work. Seems like it should but I must be overlooking something in the settings?

    Again, need to link the full-sized photo album image to an external website. Here is the test page for reference:


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Photo Album Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.