formatting ecard formatting ecard
 

News:

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.
[more]

Main Menu

formatting ecard

Started by anselmej, November 09, 2008, 12:24:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

anselmej

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

Joachim Müller

Quote from: anselmej on November 09, 2008, 12:24:40 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

Quote from: anselmej on November 09, 2008, 12:24:40 PM
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 // 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?>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.

anselmej

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

Joachim Müller

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.

anselmej

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

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


SaWey

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

Joachim Müller

#6
Quote from: anselmej 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


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.