coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: anselmej on November 09, 2008, 12:24:40 PM

Title: formatting ecard
Post by: anselmej 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
Title: Re: formatting ecard
Post by: Joachim Müller on November 09, 2008, 01:36:01 PM
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.
Title: Re: formatting ecard
Post by: anselmej 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
Title: Re: formatting ecard
Post by: Joachim Müller 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.
Title: Re: formatting ecard
Post by: 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

Title: Re: formatting ecard
Post by: SaWey on November 09, 2008, 11:02:14 PM
You got your warning, banned for misbehaving in all ways possible!!!
Title: Re: formatting ecard
Post by: Joachim Müller on November 10, 2008, 06:58:26 AM
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.