[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 - clickable image in signatures

clickable image in signatures

Help and advice on using Barca

Moderators: Eric, Tomas, robin

clickable image in signatures

Postby retry » Sun Feb 15, 2009 7:40 pm

Hello,

I' have a problem with clickable image in signatures an/or templates.

I use a "basic" code (see exemple below) in the sign html file, but the image is always bordered...

<a href="http://www.w3.org"><img src="w3c_home.gif"
alt="World Wide Web Consortium Home"
width="72" height="46" border="0" /></a>

Has anybody a solution?

Thanks
retry
Drop-in Visitor
 
Posts: 9
Joined: Sun Feb 15, 2009 7:12 pm

Re: clickable image in signatures

Postby Eric » Wed Feb 18, 2009 7:53 am

Hi retry & welcome to Poco Forums, :D
retry wrote:I use a "basic" code (see exemple below) in the sign html file, but the image is always bordered...
If I insert that code into an HTML-editor and view it in several browsers, then it gives a border. :?

Could you upload that picture and post it here (use the IMG-tags to insert the link), so I can put it into my editor?
I've tried it with another image and it didn't give any border.

Maybe something wrong with that picture :?:
Eric
 

Postby retry » Wed Feb 18, 2009 9:42 pm

Hello Eric,

You can try with this code who points to an image hosted in my site.
It's simply a yellow square.

<a href="http://www.w3.org"><img src="http://www.asac-club.fr/images/jaune.gif" alt="just for test"
width="40" height="40" border="0" /></a>

If you put this code into an HTML editor, you will not see any border.

When I create a signature, in an html file, with this same code, I always have a blue border.
I tried with css too, but without success.

Thanks for your help.
retry
Drop-in Visitor
 
Posts: 9
Joined: Sun Feb 15, 2009 7:12 pm

Postby Tomas » Thu Feb 19, 2009 5:32 am

The border color is caused by link text colour setting. You can change it through menu Tools > Customize, click on the small A button on the blue background located next to the http://www blue label.
Tomas
Tomas
Pillar of the Community
 
Posts: 1418
Joined: Sun Jul 25, 2004 1:34 am

Postby retry » Sat Feb 21, 2009 4:50 am

Many thanks Tomas !

But if I replace blue color by white, like my background, all links disapear too.
No more "From" and "To" email adress, etc...

I tried html map without success too.

Perhaps the beta version knows to do that ???
retry
Drop-in Visitor
 
Posts: 9
Joined: Sun Feb 15, 2009 7:12 pm

Postby Tomas » Sat Feb 21, 2009 8:20 am

I tried various possible workarounds (through HTML), but wasn't successful (though I'm by far no HTML expert) I'm sorry. At least I have submitted your feature request to the wishlist.

Afterthought:
That was with signatures, maybe with templates there might be higher chance for success since there you can probably add the link colour specs to the body tag.
Tomas
Tomas
Pillar of the Community
 
Posts: 1418
Joined: Sun Jul 25, 2004 1:34 am

Postby retry » Sat Feb 21, 2009 8:47 pm

Thank you anyway.

Somebody knows if beta version solves this ?

How to access it ?

Thanks
retry
Drop-in Visitor
 
Posts: 9
Joined: Sun Feb 15, 2009 7:12 pm

Postby Tomas » Sun Feb 22, 2009 1:37 am

Beta version doesn't solve it.

Since it depends on a third party viewer control used in Barca, I'm not sure whether this behaviour would be easy to change.

Btw. it doesn't mean that the recipients of your messages will see the blue border - most probably they will not. It's a display-only matter with the html viewer in Barca, not anything wrong in the message code itself.
Tomas
Tomas
Pillar of the Community
 
Posts: 1418
Joined: Sun Jul 25, 2004 1:34 am

Postby Eric » Mon Feb 23, 2009 8:28 am

Tomas wrote:It's a display-only matter with the html viewer in Barca, not anything wrong in the message code itself.
Ah, that's good to know.
I thought so too when I tried it.
Nothing wrong with my HTML-viewer. :lol: :)

Sorry retry, couldn't get to respond sooner. :?
Eric
 

Postby retry » Mon Feb 23, 2009 7:47 pm

It's not a third party problem, but a Barca problem.

When sending, Barca modifies the html code and suppresses the property "border". This property defines the border caracteristics...

You can easily verify this :
- save the code above in an html file and put it in your signature subfolder.

- include this signature in a new message and send it.

- select it in you sent message directory and choose "View raw message"

Border property is disapear

With this modify code, any browser or email client will display the an image with border.
retry
Drop-in Visitor
 
Posts: 9
Joined: Sun Feb 15, 2009 7:12 pm

Postby Tomas » Tue Feb 24, 2009 1:01 am

I didn't mean to imply that it's a third party problem, merely that it's due to a third party control used in Barca (which is of course still Barca problem, no matter the cause).

Stating that it's a display problem in a Barca was a bad guess proved wrong - thank you, you are right, Barca will strip the border property. Barca operates with a subset of html and css and it will strip the code it doesn't understand.
I tried few more workaround possibilities but everything was removed by Barca.

For the meantime for current version of Barca you could write a script, like this one: http://www.pocosystems.com/forum/viewtopic.php?t=1454 but much simpler and shorter, to replace certain html string in the outgoing message, by one that also contains the border property so that the recipient will see the image without border.
Tomas
Tomas
Pillar of the Community
 
Posts: 1418
Joined: Sun Jul 25, 2004 1:34 am

Postby retry » Tue Feb 24, 2009 1:20 am

Thanks Tomas,
I will work, learn and, I hope, understand the Barca script.
I try it asap.
retry
Drop-in Visitor
 
Posts: 9
Joined: Sun Feb 15, 2009 7:12 pm

Postby Tomas » Tue Feb 24, 2009 1:37 am

You are welcome. I don't have much time today to write it for you, if anything, just post in the Pocoscript forum here, I'll try to help as time allows or maybe someone else might help. The script I linked seems fairly complicated, but your script might be just few lines in the end, 4-6 perhaps.
Tomas
Tomas
Pillar of the Community
 
Posts: 1418
Joined: Sun Jul 25, 2004 1:34 am

Postby retry » Sat Feb 28, 2009 1:38 am

In progress but not yet perfect...

Below the script's code I wrote, it's based on the Pete's code.
Like you can see I changed of way for obtain a border=0.
I choosed to include this supplementary line in the style definition area: img{border:none;}
Like that, no necessity to scan the message's body to find <img/> tag(s), all linked image will be displayed without border.
I know this code is a makeshift job, but you are welcome for optimize it.

It's running if you: put your message in the Out mailbox, you manually call the script and you send your queuing message(s).
But I can't make it work automaticaly (called by a filter).
I don't know, if script don't run in this case or if Barca "recheck" the html code after the script working before sending.

If someone have an idea...
Thanks

Code: Select all
Set $OnErrorMessage ""
AddStrings $OnErrorMessage "Error in " $pocoScriptName
Set $OnErrorGoTo "POCO_ERROR"
If #pocoScriptMode = 2 Then BEGIN
If #pocoScriptMode = 5 Then BEGIN
Goto DONE

:BEGIN
SuggestUsage 2
ReadRawBody $rawBody %message

:BODY_SECTION
Set $headSection $rawBody
Set $styleSection $rawBody
StringPos #index "<!--" $rawBody
ChopString $styleSection #index 4
InsertString $styleSection #index "<!-- \nimg{border:none;}"

:SAVE
Set $rawBody ""
AddStrings $rawBody $styleSection
AssignStyledBody %message $rawBody
If #pocoScriptMode ! 5 Then DONE
SaveMessage %message $currentMailbox
DeleteMessage %message

:DONE
Exit

:POCO_ERROR
Exit
retry
Drop-in Visitor
 
Posts: 9
Joined: Sun Feb 15, 2009 7:12 pm

Postby retry » Sun Mar 01, 2009 5:38 am

For disable a risk of loop, please put a "{" at the begining of the line : "SuggestUsage 2".
Like that, this line will be inactivate.
retry
Drop-in Visitor
 
Posts: 9
Joined: Sun Feb 15, 2009 7:12 pm

Next

Return to Barca Help and How-To

Who is online

Users browsing this forum: No registered users and 0 guests

cron