eCard: display author eCard: display author
 

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

eCard: display author

Started by darkpunk99, April 01, 2004, 06:48:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

darkpunk99

I'm trying to get eCards to display the username of who uploaded the image in the message.

I've had a user complain because eCards are getting sent out without giving her credit for her artwork.

Currently, it looks like this

I tried editting the theme.php file to look like:

// HTML template for e-cards
$template_ecard = <<<EOT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{LANG_DIR}">
<head>
<title>{TITLE}</title>
<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
</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">
           <img src="{PIC_URL}" border="1" alt="" /><br />
          </td>
          <td valign="top" width="200" height="250">
            <div align="right"><img src="{URL_PREFIX}images/stamp.gif" alt="" border="0" /></div>
            <br />
            <font face="arial" color="#000000" size="4">Image By:</font>
            <br />
            <font face="arial" color="#000000" size="4"><a href="http://nervousness.org/forums/gallery/profile.php?uid={USER_ID}">{USER_NAME}</a></font>
            <br />
            <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>
      </table>
    </td>
  </tr>
</table>
<p align="center"><a href="{VIEW_MORE_TGT}"><b>{VIEW_MORE_LNK}</b></a></p>
</body>
</html>
EOT;


But, I guess {USER_ID} and {USER_NAME} aren't valid tags, as they were showing up as the code, not the id/name.  Any idea on how I could fix this?  (not by disabling ecards altogether.  please.)

Thanks!  Great script, great community, great support.

photoman13

I think it's 'username' and 'uid'

like that.. from looking on the profile.php anyways :)

Hope that helps?

But I'm wondering if that would just put the senders info there, and not the person that uploaded it... would be a nice addition though :)