Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: HTML in Ecard message  (Read 4222 times)

0 Members and 1 Guest are viewing this topic.

olegario

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
HTML in Ecard message
« 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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: HTML in Ecard message
« Reply #1 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
Logged

olegario

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: HTML in Ecard message
« Reply #2 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?
Logged

grizel

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: HTML in Ecard message
« Reply #3 on: December 11, 2004, 11:20:31 am »

Yeah I'd like to know how to do this too...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: HTML in Ecard message
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.