Keyword

"CLICK_TO_ENLARGE" showing instead of the actual caption text

More
12 years 5 months ago #39420 by Joseph
Is there any updated version yet? I see the last update was on April 11, 2011 (version 2.2) and the problem still remain the same.

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

More
12 years 5 months ago #39421 by darknesskrad
Hello There^^

Some time ago i had the same problem, and now i have the answer to change "Click_to_enlarge" and remove "'JW_SIG_NAVTIP" from our images.

Before continue, let me say "i dont know the ruls of this forum (call me lazy i dont care)" i just wanna help with this problem wich i have and it was very anoying to me. If you need to erase that post dont worry,

Well let's try the solution.

go to:
root/plugins/content/jw_simpleImageGallery/jw_simpleImageGallery/tmpl/polaroids/deafult.php

In this file, edit that line:
$photoCaption = htmlentities(JText::_('JW_SIG_NAVTIP').' <b>'.$row->title.'</b>

', ENT_QUOTES, 'utf-8');

Erase "JW_SIG_NAVTIP"

Now it looks like

$photoCaption = htmlentities(JText::_('').' <b>'.$row->title.'</b>

', ENT_QUOTES, 'utf-8');

This move solve tha problem with "JW_SIG_NAVTIP"

Now lets solve how to change "click_to_enlarge"

In the same file go to (aprox) line 27
<span class="sig-caption"><?php echo JText::_('CLICK_TO_ENLARGE'); ?></span>

And change CLICK_TO_ENLARGE by whatever u want, in my case iits look like:
<span class="sig-caption"><?php echo JText::_('Click para agrandar'); ?></span>

And Done!

Both problems solved.
Enjoy it =3

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

More
12 years 4 months ago #39422 by Sir Les
I just had to register to say a heart-felt "thank you!" to darknesskrad.  I'm running SIG on a default English language Joomla! 2.5 website, and while it worked perfectly on a local test site running on Windows Vista, as soon as I uploaded to our unix-based hosting site I encountered the dreaded "CLICK_TO_ENLARGE" and "JW_SIG_NAVTIP" problems.

I think SIG is a terrific little program which is so simple to use (especially for a newbie to CSS like me), and it really bugged me to see these 'anomalies' on my otherwise meticulous site.  However, after following darknesskrad's very clear instructions (once I had worked out to download the file in question via FTP, edit it in WordPad and then upload it again!), all is now well.

I actually made an improvement by replacing "JW_SIG_NAVTIP" with "<b>Navigation tip:</b> Hover mouse on top of the right or left side of the image to see the next or previous image respectively.", so that the photo display now looks identical to the original.  Once again, many thanks!

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

More
12 years 4 months ago #39423 by marioliveira

I figured out how to uncheck the "CLICK_TO_ENLARGE" but i would like to replace the JW_SIG_NAVTIP to a caption of my own is that possible, or is there a way to at least take it out. I would love to add a caption under each picture. s that possible?

please advise thank you


I found a way of doing that but only temporarily until the next update (I think): edit the file [joomlaroot]/plugins/content/jw_singleImageGallery/jw_simpleImageGallery/tmpl/Polaroids/default.php and edit the lines:

14:
$photoCaption = htmlentities(JText::_(' ').' <b>'.$row->title.'</b>

', ENT_QUOTES, 'utf-8');
(the caption JText:: was replaced by a blank space ' '), and also the lines

26 and 27:
<span class="sig-pseudo-caption"><b><?php echo JText::_('Aumentar/Enlarge'); ?></b></span>
<span class="sig-caption"><?php echo JText::_('Aumentar/Enlarge'); ?></span>

(being 'your_text' whatever you want to be shown under the picture to enlarge it)

This way you get rid of the unwanted codewords.

I don't see and recent posts about this, and I wonder if there was a bettrer solution. It's not a matter of version, since I downloaded the plugin version 2.2 and I had the problems many people described here. Thanks for any news someone may have.

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

More
12 years 4 months ago #39424 by marioliveira
Thanks a lot, dchristof! I uninstalled the original version and replace it by yours I had downloaded, and everything works now. Plus, I copied the administrator/language files to the Portugfuese folder language, changed the captions to Portuguese and it works fine!

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

More
12 years 3 months ago #39425 by Dario

I had this problem and fixed it.
Referring to the J1.6 documentation (docs.joomla.org/API16:JPlugin/loadLanguage), the language file is returned using 'strlowercase'.

The language file names for SIG are:
en-GB.plg_content_jw_simpleImageGallery.ini &
en-GB.plg_content_jw_simpleImageGallery.sys.ini

Note the camel case. Referring to J1.6 documentation, J1.6 plugin::loadLanguage will return the lanuage file all in lower case, 'en-GB.plg_content_jw_simpleimagegallery.ini' and 'en-GB.plg_content_jw_simpleimagegallery.sys.ini'

On a Windows server, it doesn't matter because it is not case sensitive, but on a Linux server it is case sensitive. Hence the Linux server will not find the files.

So to fix it just rename the files to
en-GB.plg_content_jw_simpleimagegallery.ini
en-GB.plg_content_jw_simpleimagegallery.sys.ini

Simples!


Access your linux server and rename the en-GB.plg_content_jw_simpleImageGallery.ini for en-GB.plg_content_jw_simpleimagegallery.ini

and

en-GB.plg_content_jw_simpleImageGallery.sys.ini for en-GB.plg_content_jw_simpleimagegallery.sys.ini

The issue has been solved!

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

More
12 years 3 months ago #39426 by Joseph
Hi LukeDouglas,

I have already installed this plugin, how do I edit the file name inside my cPanel?

Regards,
Joseph

To JW Development Team:

Guys, this is such a simple fix as far as the JW_SIG_NAVTIP problem.  Go to your source files and rename "en-GB.plg_content_jw_simpleImageGallery.ini" to "en-GB.plg_content_jw_simpleimagegallery.ini" and "en-GB.plg_content_jw_simpleImageGallery.sys.ini" to "en-GB.plg_content_jw_simpleimagegallery.sys.ini".  Then re-zip the file and move to your download location.

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

More
12 years 3 months ago #39427 by Joseph
Thanks darknesskrad, it works for me.

Hello There^^

Some time ago i had the same problem, and now i have the answer to change "Click_to_enlarge" and remove "'JW_SIG_NAVTIP" from our images.

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


Powered by Kunena Forum