forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 ecards & email => Topic started by: jagwriter78 on June 11, 2006, 02:04:07 pm

Title: Remove "View more pictures" from ecards footer
Post by: jagwriter78 on June 11, 2006, 02:04:07 pm
I would like to remove the "View more pictures" link at the bottom of the ecards since I run mine coppermine within postnuke, but the link always points back to the plain coppermine installation without postnuke. I've been looking in ecard.php all over, but I can't find where I would remove that link. Can anyone tell me?
Title: Re: Remove "View more pictures" from ecards footer
Post by: Joachim Müller on June 11, 2006, 02:15:04 pm
The ecard layout is determined in the theme, i.e. your_coppermine_folder/themes/yourtheme/theme.php. Look for
Code: [Select]
// HTML template for e-cardsIf such a line doesn't exist in your theme, copy
Code: [Select]
// HTML template for e-cards
$template_ecard = <<<EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{LANG_DIR}">
<head>
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
<title>{TITLE}</title>
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
<br />
<p align="center"><a href="{VIEW_ECARD_TGT}"><b>{VIEW_ECARD_LNK}</b></a></p>
<table border="0px" cellspacing="0px" cellpadding="1px" align="center">
  <tr>
    <td bgcolor="#000000">
      <table border="0px" cellspacing="0px" cellpadding="10px" bgcolor="#ffffff">
        <tr>
          <td valign="top">
           <a href="{VIEW_MORE_TGT}/displayimage.php?pos=-{PID}">
                                         <img src="{PIC_URL}" border="1px" alt="" /></a>
                                         <br />
                                         <div align="center">
                                                 <h2>{PIC_TITLE}</h2>
                                         </div>

          </td>
          <td valign="top" width="300px">
            <div align="right"><img src="{URL_PREFIX}images/stamp.gif" border="0px" alt="" /></div>
            <br />
            <b><font face="arial" color="#000000" size="4">{GREETINGS}</font></b>
            <br />
            <br />
            <font face="arial" color="#000000" size="2">{MESSAGE}</font>
            <br />
            <br />
            <font face="arial" color="#000000" size="2">{SENDER_NAME}</font>
            (<a href="mailto:{SENDER_EMAIL}"><font face="arial" color="#000000" size="2">{SENDER_EMAIL}</font></a>)
          </td>
        </tr>
                <tr>
                        <td colspan="2">
                                {PIC_CAPTION}
                        </td>
                </tr>
      </table>
    </td>
  </tr>
</table>
<p align="center"><a href="{VIEW_MORE_TGT}"><b>{VIEW_MORE_LNK}</b></a></p>
</body>
</html>
EOT;

// plain-text template for e-cards (as fallback for clients that can't display html-formatted mails)
$template_ecard_plaintext = <<<EOT
{TITLE}
=========================================

{VIEW_ECARD_LNK_PLAINTEXT}:
{VIEW_ECARD_TGT}

{GREETINGS}


{PLAINTEXT_MESSAGE}

{SENDER_NAME} ({SENDER_EMAIL})

-----------------------------------------
{VIEW_MORE_LNK}:
{VIEW_MORE_TGT}
EOT;
into a new line before
Code: [Select]
?>and edit as you see fit.
By copying the ecard section into your theme, you will override the default behaviour.
Title: Re: Remove "View more pictures" from ecards footer
Post by: jagwriter78 on June 11, 2006, 07:01:17 pm
Thank you for the quick reply! I used the classic theme that came with cpg for my installation and it didn't have an ecard section in it (I had already looked there). I added your code, took out the footer links and now it works perfect! Thanks!