Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: ecard_stamp.gif URL properties  (Read 5151 times)

0 Members and 1 Guest are viewing this topic.

brentmags

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
  • "go on - export yourself"
ecard_stamp.gif URL properties
« 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
Code: [Select]
</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
« Last Edit: January 28, 2010, 05:21:00 am by Jeff Bailey »
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: ecard_stamp.gif URL properties
« Reply #1 on: January 28, 2010, 05:20:25 am »

This is just standard html not php ;)

change
<a href="http://lochwood.co.nz/index.html"><img src="{URL_PREFIX}images/stamp.gif" border="0" alt="" /></div>
to
Code: [Select]
<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.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

brentmags

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
  • "go on - export yourself"
Re: ecard_stamp.gif URL properties
« Reply #2 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
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: ecard_stamp.gif URL properties
« Reply #3 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 8)
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: ecard_stamp.gif URL properties
« Reply #4 on: January 28, 2010, 05:51:31 am »

OT: you seem to have an "e" before your DOCTYPE.
Code: [Select]
e<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

brentmags

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
  • "go on - export yourself"
Re: ecard_stamp.gif URL properties
« Reply #5 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.