inserting website link into emails as a footer or header inserting website link into emails as a footer or header
 

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

Main Menu

inserting website link into emails as a footer or header

Started by intensityblue, August 28, 2006, 04:02:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

intensityblue

When ecards are sent from my site they work perfectly, no problem at all. Anyone can send, guests included, which is great at the moment because I do not need to have people registering, I prefer if they can come, enjoy and go.

I would however like to be able to insert either my web address into the bottom of the e-card automatically, or preferably a hyperlink which will go directly to my site.

I am looking to use the e-card as a method of promoting the site itself.

I am using a modified version of 2bornot2b as my template however the theme.php file does not contain the section entitled (// HTML template for e-cards). I copied it over from the sample theme, but now it is there I am not sure what to do with it or which section to edit in order to add my own text or hyperlink.

Am also interested in changing the pic used for the stamp... hang on just worked that out... Just need to locate stamp.gif.

If anyone could point me in the right direction with the rest however it would be much appreciated.

Joachim Müller

This is the section you need to copy into your custom theme (you claim to already have done so):// 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="0" cellspacing="0" cellpadding="1" align="center">
  <tr>
    <td bgcolor="#000000">
      <table border="0" cellspacing="0" cellpadding="10" bgcolor="#ffffff">
        <tr>
          <td valign="top">
           <a href="{VIEW_MORE_TGT}displayimage.php?pos=-{PID}">
                                         <img src="{PIC_URL}" border="1" alt="" /></a>
                                         <br />
                                         <div align="center">
                                                 <h2>{PIC_TITLE}</h2>
                                         </div>

          </td>
          <td valign="top" width="300">
            <div align="right"><img src="{URL_PREFIX}images/stamp.gif" border="0" 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;
The line<p align="center"><a href="{VIEW_MORE_TGT}"><b>{VIEW_MORE_LNK}</b></a></p>Already does what you're asking for, it contains a link to your site ("View more pictures !").

If you only want the text to stand out a bit more, change the surrounding HTML by replacing said line with<p align="center"><a href="{VIEW_MORE_TGT}"><b style="font-size:1.5em;">{VIEW_MORE_LNK}</b></a></p>or similar.

If you want to change the text, edit lang/yourlanguagefile.php (e.g. lang/english.php), find 'view_more_pics' =>and change the text on the right side of this text (so that the line reads 'view_more_pics' => 'View more pictures on the page this ecard was sent from!', //cpg1.4).

If you want to change the place the message shows in your ecard emails, move it somewhere else (the above mentioned section in theme/yourtheme/theme.php contains HTML with some placeholder tokens).

It might help if you post a link to your coppermine driven gallery. You might as well zip your theme and attach it to your posting so that we could take a look. Please specify what you want to see changed/added.