Advanced search  

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]

Pages: [1]   Go Down

Author Topic: wonne change the link in the received e-card below...  (Read 5607 times)

0 Members and 1 Guest are viewing this topic.

Marco R.

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
wonne change the link in the received e-card below...
« on: August 26, 2009, 08:32:58 pm »

Hi,

I have a website whit Iframes

now when someone receive a e-card, the link below in the e-mail send them to the cpg14x page

not to the total webpage...

where & how can i change the link?

i thaught somewhere direct in a page...

ho can help me?

thanks  ;)
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: wonne change the link in the received e-card below...
« Reply #1 on: August 26, 2009, 08:35:59 pm »

You are obviously struggling with English. Maybe one of our language specific boards will make things easier for you.

http://forum.coppermine-gallery.net/index.php/board,37.0.html

If you do decide to post there instead please mark this thread as closed first. Either way, a link to your site is required.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: wonne change the link in the received e-card below...
« Reply #2 on: August 27, 2009, 09:33:46 am »

The ecard has got a template of it's own, so you should do as you do with all thing related to themeing: you come up with a custom theme. Edit themes/yourtheme/theme.php, find
Code: [Select]
$template_ecard =and edited as suggested below. If your custom theme doesn't already contain that section, 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;
from themes/sample/theme.php into themes/yourtheme/theme.php into a new line of it's own before
Code: [Select]
?>
Now take a look at how the links are being composed: they are being created using a placeholder named {VIEW_MORE_TGT}, so you just replace {VIEW_MORE_TGT} (exists twice inside the code you just pasted in) with the URL you want to use.

However (and this is suppossed to be a however in big, bold letters): usage of frames and iframes to run an entire application in sucks. This is usually done by newbies who don't know better to accomplish things that could be accomplished better and easier in another way (e.g. to integrate Coppermine visually into your existing site layout), so you should do as Phill suggested (you have to do so anyway as per board rules) and post a link to your gallery for a start.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.