Support » Plugin: WP Photo Album Plus » Customize link

  • Resolved bl0c


    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="'.$name.'"><img src="wp-content/uploads/logo/bouton2.gif"></a>';
    echo '<a href="'.$name.'.gif"><img src="wp-content/uploads/logo/bouton4.gif"></a>';
    echo '<a href="'.$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 :/ /
    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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jacob N. Breetvelt


    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.

    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 …

    Plugin Author Jacob N. Breetvelt


    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

    Plugin Author Jacob N. Breetvelt



    $name = …

    The name of the photo is here:

    $name = wppa_get_photo_name($id);

    $mycode becomes something like this:

    $mycode = '<a href="'.$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

    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 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.

    Plugin Author Jacob N. Breetvelt


    Thanx. videos is a future development.

    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 😉

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

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

    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:

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Customize link’ is closed to new replies.