<< Home

Caption html entities problem

Use this forum for issues related to TriniTronic's Nice Slide Show Lite Plugin.

Moderator: jamesSBT

Caption html entities problem

Postby gruz » Sat Sep 03, 2011 4:39 pm

My image caption looks like this (in Portuguese)
Code: Select all
<img alt="Mapa de uso e ocupação do solo" src="images/stories/2011/08/parang_tcurbes_1.jpg" height="438" width="707" />


And the caption is broken:
Image

In file plugins/system/niceslideshowlite.php at line 174 there is a such a code, which creates HTML entities like &tilde;:
Code: Select all
         $a[$i] = htmlentities( $a[$i], ENT_NOQUOTES );


So it creates additional semicolons, which are used to explode the caption in line 178:
Code: Select all
         $a[$i] = explode( ';', $a[$i] ); // Hint, images and metadata


And the situation looks like this:
Image

I'm not sure why you use the htmlentities there, but if it's needed, then you should move it after explode function. I had to just comment the line 174 to preserve my caption text.

So now it looks as expected:
Image

Thanks for a great plugin!
gruz
Lithos
Lithos
 
Posts: 3
Joined: Sat Sep 03, 2011 5:13 am

Re: Caption html entities problem

Postby Michael » Mon Sep 05, 2011 12:20 pm

Hi gruz,

You are the King! Thanks for this information. Your contribution means a lot to me.

~ Enjoy
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2481
Joined: Thu Aug 14, 2008 12:30 am


Return to Joomla: Nice Slide Show Lite

Who is online

Users browsing this forum: No registered users and 0 guests