Advanced search  


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.

Pages: [1]   Go Down

Author Topic: Removing email links from ecards  (Read 2940 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Country: ph
  • Offline Offline
  • Posts: 13
  • Keep Trying
    • Praise n Pray
Removing email links from ecards
« on: January 13, 2010, 07:26:50 am »

Hi, I'm curious as to whether one can remove the email link which shows up on ecards?  :)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
Re: Removing email links from ecards
« Reply #1 on: January 13, 2010, 08:01:24 am »

You can change the layout of your ecard by editing themes/theme.php: find
Code: [Select]
$template_ecard = <<<EOTand edit as suggested below. If that section doesn't exist in your custom theme, copy
Code: [Select]
// HTML template for e-cards
$template_ecard = <<<EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html dir="{LANG_DIR}">
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
<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">
    <td bgcolor="#000000">
      <table border="0" cellspacing="0" cellpadding="10" bgcolor="#ffffff">
          <td valign="top">
           <a href="{VIEW_MORE_TGT}displayimage.php?pos=-{PID}">
                                         <img src="{PIC_URL}" border="1" alt="" /></a>
                                         <br />
                                         <div align="center">

          <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 colspan="2">
<p align="center"><a href="{VIEW_MORE_TGT}"><b>{VIEW_MORE_LNK}</b></a></p>
from themes/sample/theme.php into a new line before
Code: [Select]
?>of themes/yourtheme/theme.php
You probably get the idea what to remove. This will take care of the HTML template. You will need to edit the plain text template as well, so do the same thing as suggested above for
Code: [Select]
// plain-text template for e-cards (as fallback for clients that can't display html-formatted mails)
$template_ecard_plaintext = <<<EOT





as well.

In the future do as suggested per board rules and post a link to your gallery in each thread you post in. Do so now!
Pages: [1]   Go Up

Page created in 0.017 seconds with 20 queries.