- 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.
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- How can I create a single line description thumbnail with multiple line pop up ?