PDA

View Full Version : HTML links in image description problem


Paul Wood
02-13-2006, 11:21 PM
Is anyone experiencing a problem putting standard HTML links in the image description field?

When I tried to put a link in my description field, not only did the link not get formatted right, it wiped out about two sentences before the link!

For example, I could enter something like this:

This is an image of the blah blah bird. It is native to southern
boingdom, and seldom seen in the northern regions. For more information,
see <_a href="http://www.somesite.com">Some link</a_>. Please feel free
to comment.

and I would get when it displayed, something like this:

This is an image of the <a link free to comment.

This is just an example, I haven't tested it thoroughly -- I was hoping somebody had already experienced and solved this.

It also happened to an older post that initially displayed correctly, but when I edited it to change a category, it did not display correctly afterwards -- I did not edit any of the text.

I am running the latest 1.5 version, unless it's been updated again in the last 3 weeks or so.

GeoS
02-14-2006, 12:29 AM
I use links in desc and dont have such problems.

Please show as a live example on your blog.

Paul Wood
02-17-2006, 08:18 PM
Live example: http://pnjwood.com/fotoblog/index.php?showimage=4

This is what I typed in:
This is also from Christine's wedding. Her reception was at Pat O's On
The River, on the third floor of the Jax Brewery. The room next to the one
she had reserved had a wonderful mural on the wall, perfect for photos. She
wanted a photo with her three musicians, who led the second-line parade
around the French Quarter. It was hot, we were all sweaty from the parade,
but I think the photo turned out well.

This was a good experience for our first wedding. Somehow, I don't think
they will all be this much fun.

This is a <a href="http://pnjwood.com/fotoblog/">link</a>.

This is what I got:

This is also from Christine's wedding. Her recepti>link.

Paul Wood
02-17-2006, 08:31 PM
Looking at the database, it was changed as it was inserted. It's displaying properly (meaning it displays what is in the database), it just never gets inserted properly.

I've also testing this using my test blog, and it works right. I've copied the image_template.html, the index.php and the entire admin directory from my test site to my live site, but I still have the problem. Any other files I should consider copying?

Dkozikowski
02-18-2006, 07:41 AM
try typing the link like so, using ' instead of "

<a href='http://pnjwood.com/fotoblog/'>link</a>

or,
place a \ infront of "

<a href=\"http://pnjwood.com/fotoblog/\">link</a>

I'm not sure if this will work, but it seems like some code somewhere is not doing its job.

Paul Wood
02-18-2006, 01:43 PM
Aha! Using a single quote worked, but the double does not!

That's odd. I know I have used double quotes in the past -- something must have changed in 1.5. And it's strange that it will work on my test site but not my live site. I was positive I replaced all the applicable files.

Thanks for your help!

Dkozikowski
02-18-2006, 01:46 PM
your welcome,

double quotes "should" work if you put a forward slash in front of them like so \"

this is a php parse error. The forward slash should automatically be inserted once you submit your comment. somewhere in your pixelpost code this was missed or altered.

GeoS
02-19-2006, 12:28 PM
Anyway it should work OK. It should be converted before storing it in DB.

EDIT At my place all is OK with it. Maybe you have some additional addons or something?

Paul Wood
02-20-2006, 01:07 AM
My addons:

Page-By-Page-Archive
Archive Calendar (turned off)
Pixelpost Anti-Spam
Admin Sample 12CropImage addon
Visits Today
Advanced stats
Pixelpost Calendar
Image link to latest thumb
Fancy Archive (turned off)
Pixelpost Copy Folder Contents
Pixelpost Current DateTime
Pixelpost Bad Behavior Extension (turned off)
Collage (turned off)
Pixelpost Anti-Spam
Fastedit for Pixelpost 1.5
PIXELGRAIN template ADDON

Paul Wood
03-01-2006, 11:46 PM
Ok, now it's not working again. Dammit! All combinations are failing (single, double, escaped and no quotes at all).

Any ideas? I have not changed anything!

GeoS
03-02-2006, 01:30 AM
Show me it.

Paul Wood
03-02-2006, 01:49 AM
Too late. I think I fixed it.

It was very frustrating since my test blog worked, and I thought all the files were the same. And even more frustrating that single quotes worked a week or so ago.

I replaced all the files again, and it started working. I think it was something in the includes folder.

I think when 1.5 final comes out, I'm going to delete all the files and then start with a fresh photoblog (except for my template files).

GeoS
03-02-2006, 06:27 AM
For software which have many versions it is important to synchronize it.