Advanced search  

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

Pages: [1]   Go Down

Author Topic: E-Card Time display  (Read 6538 times)

0 Members and 1 Guest are viewing this topic.

bizzard

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Bizzard's Hackshop
E-Card Time display
« on: March 26, 2006, 12:37:47 pm »

At the bottom of an e-cards, the sent album time is being displayed. Can it be removed? Also, can the administrator place some other matter there for every e-cards?(especially HTML codes) If possible which file shall be edited and how?
Logged
Bizzard is now happily grazing at Bizzard's Hackshop

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: E-Card Time display
« Reply #1 on: March 26, 2006, 12:40:42 pm »

the ecard is themable - edit themes/yourtheme/theme.php, find
Code: [Select]
// 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="0px" cellspacing="0px" cellpadding="1px" align="center">
  <tr>
    <td bgcolor="#000000">
      <table border="0px" cellspacing="0px" cellpadding="10px" bgcolor="#ffffff">
        <tr>
          <td valign="top">
           <a href="{VIEW_MORE_TGT}/displayimage.php?pos=-{PID}">
                                         <img src="{PIC_URL}" border="1px" alt="" /></a>
                                         <br />
                                         <div align="center">
                                                 <h2>{PIC_TITLE}</h2>
                                         </div>

          </td>
          <td valign="top" width="300px">
            <div align="right"><img src="{URL_PREFIX}images/stamp.gif" border="0px" 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;

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

{VIEW_ECARD_LNK_PLAINTEXT}:
{VIEW_ECARD_TGT}

{GREETINGS}


{PLAINTEXT_MESSAGE}

{SENDER_NAME} ({SENDER_EMAIL})

-----------------------------------------
{VIEW_MORE_LNK}:
{VIEW_MORE_TGT}
EOT;
and edit as you see fit. If this section doesn't exist in your custom theme, paste it in first into a new line before
Code: [Select]
?>
Logged

bizzard

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Bizzard's Hackshop
Re: E-Card Time display
« Reply #2 on: March 26, 2006, 12:44:28 pm »

I am using Coppermine 1.4.4 an I cant find such a thing in theme.php
Logged
Bizzard is now happily grazing at Bizzard's Hackshop

cuzcom52

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: E-Card Time display
« Reply #3 on: March 26, 2006, 01:02:03 pm »

You'll find it in the

cpg144\themes\sample\theme.php file

Just copy/paste


Paul
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: E-Card Time display
« Reply #4 on: March 26, 2006, 01:44:53 pm »

I am using Coppermine 1.4.4 an I cant find such a thing in theme.php
Then why didn't you read my whole posting?
If this section doesn't exist in your custom theme, paste it in first into a new line before
Code: [Select]
?>
Logged

Nibbler

  • Guest
Re: E-Card Time display
« Reply #5 on: March 26, 2006, 04:37:27 pm »

For the timestamp, remove this line in ecard.php

Code: [Select]
$message .= sprintf($lang_ecard_php['ecards_footer'], $sender_name, $_SERVER['REMOTE_ADDR'], localised_date(-1,$comment_date_fmt));
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.