coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: brentmags on January 28, 2010, 05:08:53 AM

Title: ecard_stamp.gif URL properties
Post by: brentmags on January 28, 2010, 05:08:53 AM
coppermine newbie
firstly...thnx for the improving learning curve of what this program allows one to do, i.e. jumping in at the deep end and amidst a lot of reading and trial and error with php, html etc...slowly getting a small feel

http://wrenegadeevents.com/0wren/photo/index.php

ecard works a treat and via a post about //HTML template for e-cards was able to suss out where to URL link the stamp.gif

</td>
         <td valign="top" width="300">
           <div align="right"><a href="http://lochwood.co.nz/index.html"><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>

so when a user sends an e-card one can now link the stamp to a URL of there liking HOWEVER the slight problem I am finding with the code is that all else beneath: <a href="http://lochwood.co.nz/index.html"> in writing is linked to this URL as well.

being a newbie to php i am a bit unsure as to how i begin breaking this up to prevent text from being linked to the URL

any help would be appreciated
Title: Re: ecard_stamp.gif URL properties
Post by: Jeff Bailey on January 28, 2010, 05:20:25 AM
This is just standard html not php ;)

change
Quote from: brentmags on January 28, 2010, 05:08:53 AM
<a href="http://lochwood.co.nz/index.html"><img src="{URL_PREFIX}images/stamp.gif" border="0" alt="" /></div>
to

<a href="http://lochwood.co.nz/index.html"><img src="{URL_PREFIX}images/stamp.gif" border="0" alt="" /></a></div>


In other words .... add the closing tag for the link after the img.  ;)

edit - In the future please use bbcode in your posts. I changed it for you.
Title: Re: ecard_stamp.gif URL properties
Post by: brentmags on January 28, 2010, 05:26:29 AM
thanx Jeff for the quick reply...for i was definitely staring at the wall or considering a ride in the afternoon rain - changes worked a treat
Title: Re: ecard_stamp.gif URL properties
Post by: Jeff Bailey on January 28, 2010, 05:45:40 AM
Thank you for Posting a link without being asked, a lot don't.
Don't forget this one though. Common policies: Resolve your threads (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631) 8)
Title: Re: ecard_stamp.gif URL properties
Post by: Jeff Bailey on January 28, 2010, 05:51:31 AM
OT: you seem to have an "e" before your DOCTYPE.

e<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Title: Re: ecard_stamp.gif URL properties
Post by: brentmags on January 28, 2010, 07:26:04 PM
thnx Jeff...checked the code and found the 'e' right up the top, i.e. e<?php - so that is gone. Will just continue to learn more about this program which will help me out considerably!