forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: ReneZ on April 21, 2005, 10:37:30 pm

Title: Display send eCard link in
Post by: ReneZ on April 21, 2005, 10:37:30 pm
In the file information tab i want to add a hyperlink to
send an eCard below the link add to favarites. Ok i know it´s not necessary but for those
who don´t find the ecard icon ;)

in displayimage.php i modified html_picinfo:

function html_picinfo()
{
.....
    global $CURRENT_PIC_DATA, $cat, $pos, $actual_cat;

    $cat_link = is_numeric($album) ? '' : '&cat=' . $cat;
    $pid = $CURRENT_PIC_DATA['pid'];

....
 // Create the add to fav link
    if (!in_array($CURRENT_PIC_DATA['pid'], $FAVPICS)) {
        $info[$lang_picinfo['addFavPhrase']] = "<a href=addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . " >" . $lang_picinfo['addFav'] . '</a>';
    } else {
        $info[$lang_picinfo['addFavPhrase']] = "<a href=addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . " >" . $lang_picinfo['remFav'] . '</a>';

   
    //send eCard link
    $info[$lang_picinfo['sendMail']] = "<a href=ecard.php?album=" . $album$cat_link&pid=$pid&pos=$pos . " >" . $lang_picinfo['send'] . '</a>';
 
    }


    return theme_html_picinfo($info);
}


But instead of a clickable hyperlink i get:
Parse error: parse error, unexpected T_VARIABLE in /data/members/paid/z/i/zimmermann-fossilien.de/htdocs/www/gallery/displayimage.php on line 347

whats wrong?

René
Title: Re: Display send eCard link in
Post by: Nibbler on April 22, 2005, 02:24:59 pm
Try

Code: [Select]
//send eCard link
    $info[$lang_picinfo['sendMail']] = "<a href=ecard.php?album=" . "$album$cat_link&pid=$pid&pos=$pos" . " >" . $lang_picinfo['send'] . '</a>';
Title: Re: Display send eCard link in
Post by: ReneZ on April 22, 2005, 11:05:02 pm
Thanks the error is gone :). Works perfect :)!

Btw: to display the link i had to move the command you posted behind the } bracked.

René