Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

[Solved] Captions with 'Pretty Photo' popup engine

  • Alan Shisko
  • Alan Shisko's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago - 14 years 6 months ago #34058 by Alan Shisko
Trying to get captions working properly while using the 'Pretty Photo' popup engine. It's ALMOST working perfectly. I've got the labels.txt file in the folder and I can see both the photo title (in the 'thumbnail' view) and the caption (after clicking on the image).

The trouble is, 'Pretty Photo' is also supposed to (if I'm to understand it correctly) place the photo title along the top left of the popup window. That's what I'd like, but it doesn't use the photo title: it just says, "Click to open image!". Now I understand that this is the default thumbnail title, but shouldn't this be reading the photo title in the labels.txt file, NOT putting "click to open image" on ever image after popup?

Check it out here...
yourpropertyaddresshere.com/index.php?option=com_content&view=article&id=48&Itemid=2

You can see that the thumbs each have the proper title. Click on one, and you can see the proper caption at the bottom. But at the top, it says "click to open image", NOT the photo title (for instance "The Barn").

alan

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
14 years 6 months ago #34059 by Yiota
You will have to modify the jw_sigpro.php inside plugins/content/.

Go on line 182, and locate the following:
<img class="sig-image" src="'.$mosConfig_live_site.'/plugins/content/'.$plg_name.'/sigpro.transparent.gif" alt="'.JText::_('JWSP_FE_IMGTITLE').'" title="'.JText::_('JWSP_FE_IMGTITLE').'" style="width:'.$gal_width.'px;height:'.$gal_height.'px;background-image:url({THUMB IMAGE FILEPATH});" />

If you replace it with
<img class="sig-image" src="'.$mosConfig_live_site.'/plugins/content/'.$plg_name.'/sigpro.transparent.gif" alt="{CAPTION TITLE}" title="{CAPTION TITLE}" style="width:'.$gal_width.'px;height:'.$gal_height.'px;background-image:url({THUMB IMAGE FILEPATH});" />

You will have the wanted result.

PS. Take into consideration that once follow this modification you will always need a labels.txt file for your images.
Also in case of upgrade you will lose all changes.

Please Log in or Create an account to join the conversation.

  • Alan Shisko
  • Alan Shisko's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #34060 by Alan Shisko
Replied by Alan Shisko on topic Re: Captions with 'Pretty Photo' popup engine
Yep, that did it.

Bit of a pain to fix this in every instance of an install (and I'll be having a lot of installs)... any chance of getting this permanently resolved in a future upgrade? Seems logical that the upper bit would contain the title, not "click here to open!" (since it is, after all, opened :)

Thanks for the quick response, I appreciate it,

alan

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum