Ulala, did you stay here the whole night?
Ankom, the codes I provided are definetly for checkboxes, cause I took them right out of my LINKS and if you'd take a look, it's checkboxes I'm using.
Maybe I missed a step of installation somewhere, maybe I check it once again...
But anyway, the corrected codes for templates Eliot provided should be working. If I understand it right, for non templates you need to put a string equal to the output you want to show up. This string you set up in your global definition in site_html_templates.pl
The reason why you're getting only one language returned is that if there's a second language found in the string it's overwritten with the new "flag". I think you'll have to add the output to the string instead of overwritting it with something new - see the codes below, the changed thing is the bolded point:
if ($rec{'Sprache'}) {
$langimg = qq|<small class="date">|;
}
if ($rec{'Sprache'} =~ /D/i) {
$langimg .= qq|<img src="path/to/picture.gif">|;
}
if ($rec{'Sprache'} =~ /S/i) {
$langimg .= qq|<img src="path/to/picture.gif">|;
}
if ($rec{'Sprache'} =~ /A/i) {
$langimg .= qq|<img src="path/to/picture.gif">|;
}
if ($rec{'Sprache'} =~ /N/i) {
$langimg .= qq|<img src="path/to/picture.gif">|;
}
if ($rec{'Sprache'} =~ /E/i) {
$langimg .= qq|<img src="path/to/picture.gif">|;
}
if ($rec{'Sprache'}) {
$langimg .= qq|</small>|;
}
# End Show_Language MOD ----------------------------------Hope this will work. If you managed to show up already one flag then it should, I hope.
If not you can post experiences here.
Thanks a lot for setting up the non-template instructions, Eliot.
Denis
Ankom, the codes I provided are definetly for checkboxes, cause I took them right out of my LINKS and if you'd take a look, it's checkboxes I'm using.
Maybe I missed a step of installation somewhere, maybe I check it once again...
But anyway, the corrected codes for templates Eliot provided should be working. If I understand it right, for non templates you need to put a string equal to the output you want to show up. This string you set up in your global definition in site_html_templates.pl
The reason why you're getting only one language returned is that if there's a second language found in the string it's overwritten with the new "flag". I think you'll have to add the output to the string instead of overwritting it with something new - see the codes below, the changed thing is the bolded point:
Code:
# Show_Language MOD. Denis Campbell / Eliot Lee ------------- if ($rec{'Sprache'}) {
$langimg = qq|<small class="date">|;
}
if ($rec{'Sprache'} =~ /D/i) {
$langimg .= qq|<img src="path/to/picture.gif">|;
}
if ($rec{'Sprache'} =~ /S/i) {
$langimg .= qq|<img src="path/to/picture.gif">|;
}
if ($rec{'Sprache'} =~ /A/i) {
$langimg .= qq|<img src="path/to/picture.gif">|;
}
if ($rec{'Sprache'} =~ /N/i) {
$langimg .= qq|<img src="path/to/picture.gif">|;
}
if ($rec{'Sprache'} =~ /E/i) {
$langimg .= qq|<img src="path/to/picture.gif">|;
}
if ($rec{'Sprache'}) {
$langimg .= qq|</small>|;
}
# End Show_Language MOD ----------------------------------
If not you can post experiences here.
Thanks a lot for setting up the non-template instructions, Eliot.
Denis