Advanced search  


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: Ecards - themes and custom added text  (Read 4366 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Ecards - themes and custom added text
« on: December 30, 2007, 02:34:39 pm »

Hi all.

I think the appearance of ecards should not be hardcoded in the system but should be defined by themes. The administrator should also be able to add custom text to every message that's sent, i. e. a copyright.

I hope you are going to implement it, guys  ;) !
Ondřej Cífka
« Last Edit: December 30, 2007, 07:59:38 pm by Joachim Müller »

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
Re: Ecards - themes and custom added text
« Reply #1 on: December 30, 2007, 07:59:20 pm »

Already implemented, so your suggestion is invalid (marking thread accordingly). There is a template for ecards defined in include/ (don't edit that file!) that you can override by adding the corresponding section
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>

// plain-text template for e-cards (as fallback for clients that can't display html-formatted mails)
$template_ecard_plaintext = <<<EOT





from themes/sample/theme.php into a new line before
Code: [Select]
?>of the file themes/yourtheme/theme.php and then modifying as you see fit.
In the future, please make sure to only request features that really don't exist already.
Pages: [1]   Go Up

Page created in 0.015 seconds with 21 queries.