Display send eCard link in Display send eCard link in
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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é