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: Remove "View more pictures" from ecards footer  (Read 4178 times)

0 Members and 1 Guest are viewing this topic.

jagwriter78

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Remove "View more pictures" from ecards footer
« 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?
« Last Edit: June 12, 2006, 07:24:39 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Remove "View more pictures" from ecards footer
« Reply #1 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.
Logged

jagwriter78

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Remove "View more pictures" from ecards footer
« Reply #2 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 19 queries.