Advanced search  

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

Pages: [1]   Go Down

Author Topic: Display send eCard link in  (Read 2757 times)

0 Members and 1 Guest are viewing this topic.

ReneZ

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Display send eCard link in
« 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é
« Last Edit: April 25, 2005, 12:15:49 am by GauGau »
Logged

Nibbler

  • Guest
Re: Display send eCard link in
« Reply #1 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>';
Logged

ReneZ

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Display send eCard link in
« Reply #2 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é
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.