[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Poco Forums • View topic - Putting a link behind an image?

Putting a link behind an image?

Help and advice on using PocoMail

Moderators: Eric, Tomas, robin

Putting a link behind an image?

Postby soniajane » Thu Aug 27, 2009 10:27 pm

I'd like to be able to set up my default signature so that it's a small image file (a badge for a sponsored event that I'm doing) with a link to my sponsorship site if people care to click on it.

I can see how to put a link behind text - by highlighting the text and clicking the link button - but it doesn't work if I highlight the image.

Is there a way to do this? I appreciate I could put something like 'Click here to sponsor me' next to the badge and linkify that, but I'd much rather have a clicky image.

Also, I've never tinkered with images in sigs before - is there anything special I should be aware of?

Many thanks for any ideas.
soniajane
Poco Tourist
 
Posts: 40
Joined: Sun Apr 23, 2006 8:34 pm

Re: Putting a link behind an image?

Postby Eric » Sat Aug 29, 2009 8:40 am

soniajane wrote:Also, I've never tinkered with images in sigs before - is there anything special I should be aware of?
I've never done it, but AFAIK you'll have to edit your signature in an HTML-editor or Notepad and add the link to your image and the URL yourself. :?

Make sure to save your signature with formatting.
Edit afterwards the signature (HTML) and save it.

Hope it will work. ;)
Eric
 

Postby soniajane » Sun Aug 30, 2009 12:52 am

Hi Eric

Nice to see you again :D You have helped me a few times over the years and I thank you for that.

I am a bit confused by the whole HTML & Pocomail thing.

I have a nice HTML file in my signatures directory, which if I click on it directly from Explorer displays exactly what I want - an image which opens my sponsorship page in a browser tab when clicked.

However, when I use it as a signature in Pocomail, the outgoing file just displays part of the link as text.

Here's the HTML file contents:

<html><head><meta name="Generator" content="PSI HTML/CSS Generator"/>
<style type="text/css"><!--
LI{display:list-item;margin:0.00in;}
p{display:block;margin:0.00in;}
body{}
--></style>
</head>
<BODY BGCOLOR="white" style="background-color:white;margin:0px;padding:0px;"><p><SPAN style="font-family:'Tahoma';font-size:10pt;color:#400040;">
<a href='http://www.justgiving.com/SoniaDuncan' alt='JustGiving - SPONSOR ME' target='_blank'><img src='file:///C:/Users/Sonia/Desktop/channelswimbanner.jpg'></a></SPAN></p>
</BODY></html>



I am no HTML expert, but it works for me. Obviously you won't have that file on your desktop to display, so you'll have to take my word for it.

But, if I select that file as my signature file, all I get at the end of the email is:

http://www.justgiving.com/SoniaDuncan'"> followed by what appears to be a failed image icon.

There is very little in the help files about using HTML in writing emails and I've browsed these forums for ages looking for handy hints but I just can't see anything that relates to my problem.

I've never really played with writing HTML styled emails but is this not really supported in Pocomail? I receive many HTML formatted emails and it would surprise me if an excellent product like Pocomail doesn't easily support this.

Essentially, all I want is to execute the HTML statement as my signature:

<a href='http://www.justgiving.com/SoniaDuncan' alt='JustGiving - SPONSOR ME' target='_blank'><img src='file:///C:/Users/Sonia/Desktop/channelswimbanner.jpg'>

Can anyone help me do that?

Thanks
:)
soniajane
Poco Tourist
 
Posts: 40
Joined: Sun Apr 23, 2006 8:34 pm

Postby MarkB » Sun Aug 30, 2009 3:09 am

Hi, Sonia and Eric.

Do you mind if I chip in something here?

Sonia, be sure to read the Help section "Signatures Containing Images."

Second, please note that other threads in the forum point out that an image hyperlink such as you want, whether in body or signature, will end up having a border drawn around the image. There's no good way to avoid that.

Third, the a tag doesn't have an alt attribute, does it? Odd. img does.
MarkB
Poco Enthusiast
 
Posts: 217
Joined: Mon Aug 09, 2004 1:31 am
Location: Canada

Postby soniajane » Sun Aug 30, 2009 4:20 am

Hi Mark,

Thanks for your reply. :)

I have read that Help section - and indeed have managed to get an image into my signature. But the problem is that I can't seem to put the link on it - it's just in there as a static image. Do you know how I can do that?

As far as the border goes, I would be happy enough to get a clickable image that I wouldn't mind a border! I saw a thread about the border issue on here, but since I can't even get the link on the image it's a bit beyond me.

I am sure I must be missing something obvious in doing this. But it's driving me nuts trying to figure out what!

And you raise an interesting point about the 'alt' bit. I copied that HTML from the justgiving website so unless I did that wrong, I think that must be how it was set there. But I can tinker with that later if only I can get the hyperlinked image thing sorted out.

Many thanks for any help you - or anyone else - can offer.
soniajane
Poco Tourist
 
Posts: 40
Joined: Sun Apr 23, 2006 8:34 pm

Postby MarkB » Sun Aug 30, 2009 4:58 am

Sonia,

I just now tested the following signature with file name TestImgLink.html and it works:

Code: Select all
<html><head><meta name="Generator" content="PSI HTML/CSS Generator"/>
<style type="text/css"><!--
LI{display:list-item;margin:0.00in;}
p{display:block;margin:0.00in;}
--></style>
</head><BODY BGCOLOR="white" style="background-color:white;margin:0px;padding:0px;"><p><SPAN style="font-family:'Tahoma';font-size:10pt;"><A href="http://www.yahoo.com"><img src="C:\Users\Mark\Pictures\alton_sig.jpg" width="437" height="33" border="0"></A></SPAN></p>
</BODY></html>


Notice that the image file name begins with C, not file:///C. Don't know if that makes any difference. The link won't function in the edit window -- test by sending yourself a message.
MarkB
Poco Enthusiast
 
Posts: 217
Joined: Mon Aug 09, 2004 1:31 am
Location: Canada

Postby soniajane » Sun Aug 30, 2009 6:18 am

Mark,

THANK YOU, THANK YOU, THANK YOU!!!


With your help I have cracked the problem. Turns out that I can't use single quotes in the HTML for the file names etc. I switched out the single quotes for doubles as in the example you've posted and it works. Phew!

It took me a while to figure out because the error I got when using single quotes wasn't at all related to that problem. But I got there in the end, thanks to you.

I really appreciate your taking time to test it for me and post your sig file. I have spent probably 20 hours on this problem in the last week, and I can't tell you how relieved I am to have cracked it.

And - now that it's working, I am sure my clicky sig will bring in some extra funds for a very worthwhile spinal injuries charity, so it's a really good thing to have sorted out.

Thanks again - this forum is great.
soniajane
Poco Tourist
 
Posts: 40
Joined: Sun Apr 23, 2006 8:34 pm

Postby Eric » Sun Aug 30, 2009 6:48 am

MarkB wrote:Hi, Sonia and Eric.
Do you mind if I chip in something here?
No problem Mark.
Thanks for sorting it out for Sonia and of course others who will find this thread. Image
Eric
 

Postby MarkB » Sun Aug 30, 2009 7:29 am

Eric, thanks. Sonia, yours was a cheerful voice on a dreary afternoon.

These image-links in Poco are chock full of strangeness. Poco strips title attributes from anchor tags and alt attributes from img tags, just as it strips the border attribute from img tags -- though it handles alt text just fine on received messages.

When you right-click the link and choose "Copy URL to Clipboard," what Poco copies is not the URL but the full name of the image file on disk.

But the weirdest weirdness has to be this snafu with single quotation marks, which Sonia discovered and I have verified.
MarkB
Poco Enthusiast
 
Posts: 217
Joined: Mon Aug 09, 2004 1:31 am
Location: Canada

Postby soniajane » Sun Aug 30, 2009 9:44 am

Hi Mark

Well I guess if I'm going to find some weirdness, it may as well be the weirdest weirdness :D

I have one other question if you're still bored. I got that all working using a file hosted on my desktop. I set the sig to be the standard sig for one of my accounts. That was peachy - whenever I started a new mail on that account, there was my image (not clicky until sent of course) and I could compose my email text above the image.

I then thought I'd switch out the image file location to point to some web hosting space I have (and a copy of the image file is already present).

Once I did that, when I created a new message (using this sig), I no longer saw the graphic when composing the email. If I highlighted the message box with my mouse then I can see that a white shape is inserted, which indeed magically transforms to the image when sent.

So, in a spirit of lively enquiry, I changed the HTML to point to a file on my PC and tried again. I opened a new mail and there was my image again.

Is that normal? Is there something about fetching the contents of the file that's possible if hosted on the PC but not if on the web?

I'm a bit concerned as I'd like a visual clue that the image is there so that I can either delete it if not appropriate (it is asking for people to sponsor me for something) or remove it altogether after the event. If it doesn't show up in the compose window at all, I could imagine forgetting about it and sending it out months after the event is over.

Any thoughts? It's not an urgent one as I'll stick with the PC hosted version, but it just surprised me.

Thanks guys :)
soniajane
Poco Tourist
 
Posts: 40
Joined: Sun Apr 23, 2006 8:34 pm

Postby Eric » Sun Aug 30, 2009 10:34 am

Hope you don't mind Mark. :lol: :wink:
soniajane wrote:Is that normal? Is there something about fetching the contents of the file that's possible if hosted on the PC but not if on the web?
That's completely normal. :)
When composing a message that hosted image won't be available.
However if you put your message in Draft and allow images to be downloaded, that hosted image will be shown and your link will work.

A little bit the same as an hyperlink which doesn't work when composing, but will when putting it in Draft or sending it. :)
Eric
 

Postby soniajane » Sun Aug 30, 2009 10:38 am

Hi Eric :)

But why does it show if the file is hosted on my PC? Yet not if on the web?

I would expect it to either show or not show consistently - not vary according to where the image happens to be hosted.
soniajane
Poco Tourist
 
Posts: 40
Joined: Sun Apr 23, 2006 8:34 pm

Postby MarkB » Sun Aug 30, 2009 10:42 am

The message editor isn't Web-aware.

Here's another difference between these two methods. With the local file, Poco encodes the image in the email message. The image travels with the message. With the image file hosted on the Web, the image is not encoded in the sent email. The image does not travel with the message. The recipient's email client must download the image from your hosting service. If host is down, the recipient won't see the image. If the recipient's client is set (like mine) to not download images, he/she won't see the image.
MarkB
Poco Enthusiast
 
Posts: 217
Joined: Mon Aug 09, 2004 1:31 am
Location: Canada

Postby MarkB » Sun Aug 30, 2009 10:45 am

Eric wrote:Hope you don't mind Mark.

No problemmo.
MarkB
Poco Enthusiast
 
Posts: 217
Joined: Mon Aug 09, 2004 1:31 am
Location: Canada

Postby soniajane » Sun Aug 30, 2009 7:57 pm

Oh, thanks for that explanation Mark. That's really helpful.

So, in this case it's much better to keep the file hosted on my pc so it gets sent along with the message.

Cool :)

And thanks again for your help. I was within a gnat's whisker of abandoning Pocomail after many years because I just couldn't get this to work and you brought me back from the brink!
soniajane
Poco Tourist
 
Posts: 40
Joined: Sun Apr 23, 2006 8:34 pm


Return to PocoMail Help and How-To

Who is online

Users browsing this forum: No registered users and 3 guests

cron