- Posts: 7
COMMUNITY FORUM
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- How can I create a single line description thumbnail with multiple line pop up ?
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.
How can I create a single line description thumbnail with multiple line pop up ?
- Grant Oliver
-
Topic Author
- Offline
- New Member
Does anyone have any idea how to create a single line description on the thumbnails but have a multiple line description on the pop up ?
Any assistance would be greatly appreciated.
Grant
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
-
- Offline
- Platinum Member
- Posts: 1188
Let's do that!
First of all let's create a new labels.txt file with the schema
image1.jpg|single line description for image1|multiple line description on the pop up<br>using the br to break the lines
image2.jpg|single line description for image2
After that open to edit the file plugin_jw_sigpro.php
and let's modify some lines to the next code!
Line 116
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".$temp[0])]['intro'] = $temp[1];
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".$temp[0])]['main'] = $temp[2];
Line 282
if ( $labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['main']!="" ) {
$html .= '<b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['main'],ENT_QUOTES).'</b>';
} else {
$html .= '<b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['intro'],ENT_QUOTES).'</b>';
}
Line 304
if ($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['intro']!="") {
and Line 310
$final_caption = htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['intro'],ENT_QUOTES);
Check it out and tell me if this is working for you! ;)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Grant Oliver
-
Topic Author
- Offline
- New Member
- Posts: 7
I`ll try it this evening and let you know how I get on.
Grant
Please Log in or Create an account to join the conversation.
- Jill Clarke
-
- Offline
- Junior Member
- Posts: 27
Jill
Please Log in or Create an account to join the conversation.
- DTLeo
-
- Offline
- New Member
- Posts: 1
Line numbers where not correct but give good indication of code to change
It is working. ;) Now I will start to rewrite/write my labels.txt for my site
Thanks
Leo
www.deceptiontours.nl
Please Log in or Create an account to join the conversation.
- Grant Oliver
-
Topic Author
- Offline
- New Member
- Posts: 7
Played around with it a bit more today and got it working perfectly
Thanks again,
Grant
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
-
- Offline
- Platinum Member
- Posts: 1188
Is this going to be standard functionality in the next version, which is due about now?
Jill
Probably will be include this in the next version! :)
In this version you can use only one sentence per image
and it will appear to the thumbnail and to the popup!
Thank you!
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- michelvana
-
- Offline
- New Member
- Posts: 2
Hi my friend!
Let's do that!
First of all let's create a new labels.txt file with the schemaand safe it as UTF-8!image1.jpg|single line description for image1|multiple line description on the pop up<br>using the br to break the lines image2.jpg|single line description for image2
After that open to edit the file plugin_jw_sigpro.php
and let's modify some lines to the next code!
Line 116$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".$temp[0])]['intro'] = $temp[1]; $labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".$temp[0])]['main'] = $temp[2];
Line 282if ( $labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['main']!="" ) { $html .= '<b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['main'],ENT_QUOTES).'</b>'; } else { $html .= '<b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['intro'],ENT_QUOTES).'</b>'; }
Line 304if ($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['intro']!="") {
and Line 310$final_caption = htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['intro'],ENT_QUOTES);
Check it out and tell me if this is working for you! ;)
Hi,
I am using Joomla 1.5 and as far as I can see in plugins > content or plugins > content > jwsigpro there is no file called "plugin_jw_sigpro.php". I would definetely like to use this solution. Any idea?
Regards,
Michel
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
-
- Offline
- Platinum Member
- Posts: 1188
We renamed the file plugin_jw_sigpro.php to jwsigpro.php for the joomla!1.5 version!
Thank you!
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- christina rice
-
- Offline
- New Member
- Posts: 1
thanks
Please Log in or Create an account to join the conversation.
- kimberley wesson
-
- Offline
- New Member
- Posts: 5
I am using v. 1.0.15
Thanks.
Please Log in or Create an account to join the conversation.
- boluak
-
- Offline
- New Member
- Posts: 9
Sorry for being dim, but where is this .php file? The only .php file I can find for simple gallery is sigpro_engine.php in the folder /public_html/cfc/mambots/content/plugin_jw_sigpro
I am using v. 1.0.15
Thanks.
according to vinikey in earlier post all you need to do for joomla 1.5 version is:
1. Open jwsigpro.php found in your \joomla!_root_folder\plugins\content [for you, that will be: /public_html/cfc/mambots/content/jwsigpro.php] with your favourite text editor, preferable one with good search functionality. (would be good If you make a backup)
2. On line 162, replace this string:
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".trim(strtolower($temp[0])))] = $temp[1];
With:
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".trim(strtolower($temp[0])))] ['intro']= $temp[1];
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".trim(strtolower($temp[0])))] ['main']= $temp[2];
Note your line numbers may have changed by now, search function of your editor would be usefull
3. On line 322 or find
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="") {
Replace with:
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['main']!="") {
4. On line 324 or find
$html .= '<a href=\''.$mosConfig_live_site.$rootfolder.$_images_dir_.'/'.$images[$a].'\' target=\'_blank\'><b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])],ENT_QUOTES).'</b></a>';
Replace with:
$html .= '<a href=\''.$mosConfig_live_site.$rootfolder.$_images_dir_.'/'.$images[$a].'\' target=\'_blank\'><b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['main'],ENT_QUOTES).'</b></a>';
5. On line 326, find
$html .= '<b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])],ENT_QUOTES).'</b>';
$html .= '<b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['main'],ENT_QUOTES).'</b>';
6. On line 345, find
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="") {
Replace with:
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['intro']!="") {
$final_caption = htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])],ENT_QUOTES);
$final_caption = htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['intro'],ENT_QUOTES);
That should do it! ;D
Please Log in or Create an account to join the conversation.
- Color Consult AB
-
- Offline
- New Member
- Posts: 16
Thanks
Jan Suhr
Stockholm, Sweden.
Please Log in or Create an account to join the conversation.
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- How can I create a single line description thumbnail with multiple line pop up ?