Recent Topics

1 Jul 28, 2006 07:40    

Hi,

I'm actually trying to put affiliate links in posts. The link copy is like,

<a href="http://xxxxx" ><IMG border=0 src="yyyyy" ></a><IMG border=0 width=1 height=1 src="zzzzz" >

However I always get the following error message.

"Invalid post, please correct these errors:

* Parser error: not well-formed (invalid token) near <a href="http://xxxxx" ><img border=0 src="http://yyyyy "

Does anyone advise me how I put the links directly in the posts?

When I put the link directly in _main.php, I have no problem, so I suspect I cannot put HTML code including anchors and images...

Thank you for your help.

masaus[/url][/code]

2 Jul 28, 2006 07:46

I'm guessing, but you probably want to use well-formed tokens. I'm also guessing that token means tag! For example have a title attribute in your href (but that might not be officially needed), use lower case letters for your IMG tag, and close your img tag with ' />' instead of just '>'. Also 'border=0' should be 'border="0"'.

<a href="http:foo.bar" title="link to foo dot bar"><img src="http://foo.bar/img.png" alt="this is an image" height="99" width="88" border="0" /><a/>

3 Jul 30, 2006 07:27

Hi EdB,

Thank you very much for your help. I actually got the link on the blog correctly now!

I actually checked the code on WordPress and Google blogger, but both had no problem with it. I'm wondering b2evolution is something special...

Again, I really appreciate your help.

masaus

4 Jul 30, 2006 15:55

xhtml 1.0 (transitional) validation is probably the difference. Capital tags and unclosed tags (like an img without a / before the >) are okay in html but not xhtml. b2evolution digs on valid xhtml.

5 Jul 31, 2006 01:51

Thank you EdB.

It seems I proved my ignorance here. :lol:


Form is loading...