Adding caption to picture makes highlite effect disappear

Admiror Gallery is free extension for Joomla! 1.6. Joomla! 1.7 and Joomla! 2.5 based websites. Admiror Gallery is all in one, a simple and instant solution for rendering image gallery from folder with images, but very flexible and adaptable.
Post Reply
Message
Author
sorinso
Posts: 5
Joined: Thu Jan 23, 2014 10:10 pm

Adding caption to picture makes highlite effect disappear

#1 Post by sorinso »

I am using Albums for my picture gallery. Template: Classic. Popup: Fancybox.
I added captions to some of my pictures and discovered that the box around the picture (that should change its color with the parameter "Highlite Color") disappeared. The pictures without caption still have the box. I erased the caption of one of the pictures and the box came back.
Is this intended, or am I missing something?

TIA!

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Adding caption to picture makes highlite effect disappea

#2 Post by Vasiljevski »

That is strange, I cannot reproduce that on my side. Can you post a link to your site or post a screen shot of the problem? Link would be more helpful :)

It might be that some CSS style is messing the display.
Help Admiror Gallery become even better,
give us a review on JED

sorinso
Posts: 5
Joined: Thu Jan 23, 2014 10:10 pm

Re: Adding caption to picture makes highlite effect disappea

#3 Post by sorinso »

Of course I can.
Although the site is still not 100% ready and it's in Hebrew.
You can see the PicGallery here. The album I am working on now is the third from left (with me sitting on a chair). Within that album, the first line have caption, and the lower pic does not. Only on the lower one there's the box and the "Highlite" effect.

Thank you in advance for your reply.

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Adding caption to picture makes highlite effect disappea

#4 Post by Vasiljevski »

It looks like something in your description is braking the output HTML code.
It might be the " (quotation). So the class for <img> tag gets corrupted. You can see that if you inspect HTML code of the images that has no hover effect.

To fix this, there is two solutions: remove " from your captions (this is not best solution) or edit plugins\content\admirorgallery\admirorgallery\classes\agGallery.php (I recommend this)
Find:

Code: Select all

function writePopupThumb($image) {
and change this line:

Code: Select all

$html.='<a href="' . $this->imagesFolderPath . $image . '" title="' . htmlspecialchars($this->descArray[$image], ENT_QUOTES, "UTF-8") . '" class="' . $this->popupEngine->className . '" rel="' . $this->popupEngine->rel . '" ' . $this->popupEngine->customAttr . ' target="_blank">' . $this->writeNewImageTag($image) . '<img src="' . $this->sitePath . PLUGIN_BASE_PATH . 'thumbs/' . $this->imagesFolderName . '/' . $image . '" alt="' . strip_tags($this->descArray[$image]) . '" class="ag_imageThumb"></a>';
to this

Code: Select all

$html.='<a href="' . $this->imagesFolderPath . $image . '" title="' . htmlspecialchars($this->descArray[$image], ENT_QUOTES, "UTF-8") . '" class="' . $this->popupEngine->className . '" rel="' . $this->popupEngine->rel . '" ' . $this->popupEngine->customAttr . ' target="_blank">' . $this->writeNewImageTag($image) . '<img src="' . $this->sitePath . PLUGIN_BASE_PATH . 'thumbs/' . $this->imagesFolderName . '/' . $image . '" alt="' . htmlspecialchars(strip_tags($this->descArray[$image])) . '" class="ag_imageThumb"></a>';
Let me know if this fixes your problem, so I could update the code :)
Help Admiror Gallery become even better,
give us a review on JED

sorinso
Posts: 5
Joined: Thu Jan 23, 2014 10:10 pm

Re: Adding caption to picture makes highlite effect disappea

#5 Post by sorinso »

"Like a glove!!" :D :D
Thank you !!

Admiror Gallery 5 - Fundraising Campaign

Post Reply