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: formatting ecard  (Read 3801 times)

0 Members and 1 Guest are viewing this topic.

anselmej

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
formatting ecard
« on: November 09, 2008, 12:24:40 pm »

Hi !
I am supposed to change the appearance of E cards with

themes/yourtheme/theme.php
Variables $template_ecard and $template_ecard_plaintext


but I don't get it , there is no such variables in  theme.php
where can I find it ?

thank you
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: formatting ecard
« Reply #1 on: November 09, 2008, 01:36:01 pm »

I am supposed to change the appearance of E cards with
Reference thread where you have been told so: http://forum.coppermine-gallery.net/index.php/topic,52668.msg274813.html#msg274813

but I don't get it , there is no such variables in  theme.php
where can I find it ?
If a section that you want to see edited doesn't reside in themes/yourtheme/theme.php, copy that section (and only that section) from themes/sample/theme.php into themes/yourtheme/theme.php, as suggested in the docs and countless postings on this board.

In your case, copy
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="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;

// 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;
from themes/sample/theme.php into a new line before
Code: [Select]
?>of the file themes/yourtheme/theme.php and modify as you see fit.

Moving from ecards sub-board, as this is related to theming.

Do as board rules suggest: http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
If you don't, you'll get no more support.
Logged

anselmej

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: formatting ecard
« Reply #2 on: November 09, 2008, 01:45:59 pm »

I try it

thank you

ps :
if you could avoid each 5 minutes to warn peoples  the Stimmung will be better for everybody, I have not hijacked the other thread but just ask a question  on a same subject not to open another topic
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: formatting ecard
« Reply #3 on: November 09, 2008, 02:45:51 pm »

If you would start to play by the rules the "Stimmung" would be better as well. Last warning: do as suggested and post a link to your gallery. If you don't, you'll get banned. You have 24 hours.
Logged

anselmej

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: formatting ecard
« Reply #4 on: November 09, 2008, 02:57:57 pm »

Website:    gaugau.de
Age:    40
Location:    Osterburken, Germany

I don't know when .... but for shure we shall meet

Logged

SaWey

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1119
    • SaWey.be
Re: formatting ecard
« Reply #5 on: November 09, 2008, 11:02:14 pm »

You got your warning, banned for misbehaving in all ways possible!!!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: formatting ecard
« Reply #6 on: November 10, 2008, 06:58:26 am »

Website:    gaugau.de
Age:    40
Location:    Osterburken, Germany

I don't know when .... but for shure we shall meet


That's not youer website, but one of mine that can easily be found out by looking at my profile. If you need more information (e.g. my address), perform a WHOIS lookup on one of the domains I own. I'm not afraid to meet you in real live, as it wasn't me who misbehaved, but you. In fact, I have nothing to hide, but obviously you do. You haven't done as suggested and failed to post a link to your site. You're gone. Bye.
« Last Edit: November 10, 2008, 07:03:48 am by Joachim Müller »
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.