- Posts: 3
COMMUNITY FORUM
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.
Alt tag from labels.txt
- Maria Minopoli
- Topic Author
- Offline
- New Member
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="") {
$clickopen=$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])];
}else{
// show file name
$clickopen=$images[$a];
}
before the use of the variable $clickopen ... <img alt="'.$clickopen.' (line 345)
do you have a different way? (maybe more simple)
Thanks alessandro
Please Log in or Create an account to join the conversation.
- agitatator
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- agitatator
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- Maria Minopoli
- Topic Author
- Offline
- New Member
- Posts: 3
the file to modify is: jwsigpro.php
I just add this code:
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="") {
$clickopen=$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])];
}else{
$clickopen=$images[$a];
}
before the use of the variable $clickopen ... <img alt="'.$clickopen.' (line 665)
in this way you set a different value to variabile $clickopen.
without this modify the value of $clickopen is 'Click to open image!'
bye alessandro
Please Log in or Create an account to join the conversation.
- jethrodesign
- Offline
- New Member
- Posts: 10
So all Alt tags for images will now have the descriptions you set for each specific image in the labels.txt file for each folder, correct?
- What would happen if there were either - a) no description for a particular image in the labels.txt file; or b) no labels.txt file at all for a particular gallery?
- And, if you didn't want to create individual descriptions for a certain gallery, would there be a quick & easy way to set a global description for an entire gallery?
Thanks again for the creative solution. Hopefully it can get incorporated into the regular release.
Please Log in or Create an account to join the conversation.
- Maria Minopoli
- Topic Author
- Offline
- New Member
- Posts: 3
the example is in www.castelcicala.com/it/comfortable-suite
the labels.txt for the first group of images is:
alogo.jpg|donna taddea
bagno-con-jacuzzi.jpg|cosy bathroom with jacuzzi
bagno.jpg|bathroom with Jacuzzi and shower
...
and it works in all the situations:
YESSo all Alt tags for images will now have the descriptions you set for each specific image in the labels.txt file for each folder, correct?
- What would happen if there were either - a) no description for a particular image in the labels.txt file;
in this cas we have alt=""
or b) no labels.txt file at all for a particular gallery?
In this case the alt tag is the file name, it depends from the else case in the code of the modify
- And, if you didn't want to create individual descriptions for a certain gallery, would there be a quick & easy way to set a global description for an entire gallery?
yes it is simple... in this way $clickopen=$itemtitle;
Bye...very nice plugin
Please Log in or Create an account to join the conversation.