Display send eCard link in Display send eCard link in
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Display send eCard link in

Started by ReneZ, April 21, 2005, 10:37:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ReneZ

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é

Nibbler

Try

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

ReneZ

Thanks the error is gone :). Works perfect :)!

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

René