- Posts: 5
COMMUNITY FORUM
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- Two different Captions and labels...
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.
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.
Two different Captions and labels...
- Thorgeir Valur Ellertsson
- Topic Author
- Offline
- New Member
Less
More
15 years 11 months ago #20459
by Thorgeir Valur Ellertsson
Two different Captions and labels... was created by Thorgeir Valur Ellertsson
Hi there, I just bought SIG-Pro and I am almost getting every thing to work but there is one major issue that I cant find a fix for. (Done searching for 4hours)
Is it possible to put a Caption on the thumbnail, but totally different image description when I click on the image. I thought I had seen this in the Demo, but there is no image description on the image it self.
I'm interested even if it needs some walkaround...
Best Reg. Þorgeir Valur Ellertsson - Iceland
Is it possible to put a Caption on the thumbnail, but totally different image description when I click on the image. I thought I had seen this in the Demo, but there is no image description on the image it self.
I'm interested even if it needs some walkaround...
Best Reg. Þorgeir Valur Ellertsson - Iceland
Please Log in or Create an account to join the conversation.
- Thorgeir Valur Ellertsson
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
15 years 11 months ago #20460
by Thorgeir Valur Ellertsson
Replied by Thorgeir Valur Ellertsson on topic Re: Two different Captions and labels...
Can some body please just tell me if this is posible...?
Best Reg. Thorgeir Valur
Best Reg. Thorgeir Valur
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
- Offline
- Platinum Member
Less
More
- Posts: 1188
15 years 11 months ago #20461
by JoomlaWorks Support Team
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks Support Team on topic Re: Two different Captions and labels...
Hi there!
It is possible, I remember that we have already post a hack about this
but I'm trying to find this post from this forum or from the FAQ section.
Thank you!
It is possible, I remember that we have already post a hack about this
but I'm trying to find this post from this forum or from the FAQ section.
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.
- Thorgeir Valur Ellertsson
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
15 years 11 months ago #20462
by Thorgeir Valur Ellertsson
Replied by Thorgeir Valur Ellertsson on topic Re: Two different Captions and labels...
Hi there, any news about this post?
I have been searching the forum but cant find anything.
I have been searching the forum but cant find anything.
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
- Offline
- Platinum Member
Less
More
- Posts: 1188
15 years 11 months ago #20463
by JoomlaWorks Support Team
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks Support Team on topic Re: Two different Captions and labels...
Well, I can't find the post me too...
I'll give the hack here
Open to edit the file sigpro.php
Go to the line 162 and replace the line
with the lines
After that go to the line 323 and replace the linewith
Line 325, replacewith
Line 327, replacewith
Line 346, replacewith
Line 352, replacewith
After all that, use the labels.txt as
Give it a try and come back to tell us if it's ok with you!
I'll give the hack here
Open to edit the file sigpro.php
Go to the line 162 and replace the line
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".trim(strtolower($temp[0])))] = $temp[1];
with the lines
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".trim(strtolower($temp[0])))]['thumb'] = $temp[1];
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".trim(strtolower($temp[0])))]['popup'] = $temp[2];
After that go to the line 323 and replace the line
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="") {
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['popup']!="") {
Line 325, replace
$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>';
$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])]['popup'],ENT_QUOTES).'</b></a>';
Line 327, replace
$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])]['popup'],ENT_QUOTES).'</b>';
Line 346, replace
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="") {
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['thumb']!="") {
Line 352, replace
$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])]['thumb'],ENT_QUOTES);
After all that, use the labels.txt as
imagename.jpg|label of the thumb|label of the popup
Give it a try and come back to tell us if it's ok with you!
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Thorgeir Valur Ellertsson
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
15 years 11 months ago #20464
by Thorgeir Valur Ellertsson
Replied by Thorgeir Valur Ellertsson on topic Re: Two different Captions and labels...
Line 352 was 351 for me, but after all the replacements, the comments works grate.
Now only thing left is to find out where I should put the UTF8 tag so I will get the Icelandic characters to show up on the thumbnail.
Thanx for your help
Now only thing left is to find out where I should put the UTF8 tag so I will get the Icelandic characters to show up on the thumbnail.
Thanx for your help
Please Log in or Create an account to join the conversation.
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- Two different Captions and labels...