forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Ecards & Email => Topic started by: olegario on August 16, 2004, 03:39:00 pm

Title: HTML in Ecard message
Post by: olegario on August 16, 2004, 03:39:00 pm
I'm looking for a way of telling people about the referring album when sending out an ecard.  I can do this by either having HTML code in the Message, which I don't think is currently possible, or by changing the link that says "Click this link to view more pictures !" at the bottom of the Ecard to point to the album that the picture was in.  Are either of these possible?

TIA!
Title: Re: HTML in Ecard message
Post by: Joachim Müller on August 17, 2004, 08:58:18 am
Edit themes/yourtheme/theme.php, find
Code: [Select]
// HTML template for e-cards
$template_ecard = <<<EOT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{LANG_DIR}">
<head>
<title>{TITLE}</title>
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
</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="0" cellspacing="0" cellpadding="1" align="center">
  <tr>
    <td bgcolor="#000000">
      <table border="0" cellspacing="0" cellpadding="10" bgcolor="#ffffff">
        <tr>
          <td valign="top">
           <img src="{PIC_URL}" border="1" alt="" /><br />
          </td>
          <td valign="top" width="200" height="250">
            <div align="right"><img src="{URL_PREFIX}images/stamp.gif" alt="" border="0" /></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>
      </table>
    </td>
  </tr>
</table>
<p align="center"><a href="{VIEW_MORE_TGT}"><b>{VIEW_MORE_LNK}</b></a></p>
</body>
</html>
EOT;
and edit as you like.

GauGau
Title: Re: HTML in Ecard message
Post by: olegario on August 18, 2004, 08:56:41 pm
Any hints on how to change this part

Code: [Select]
<p align="center"><a href="{VIEW_MORE_TGT}"><b>{VIEW_MORE_LNK}</b></a></p>
so that it points to the folder that the ecard was sent from?
Title: Re: HTML in Ecard message
Post by: grizel on December 11, 2004, 11:20:31 am
Yeah I'd like to know how to do this too...
Title: Re: HTML in Ecard message
Post by: Joachim Müller on December 11, 2004, 03:49:49 pm
not possible out of the box. The link will point to your coppermine root. Modifying it to point to the category/album the pic is in would require extra looking into (ie. you will need some php coding skills).

Joachim