mxgs
Results 1 - 2 of 2
bymxgs, December 7, 2009
hi
if anyone is interested, i've implemented a little tweak to shorten the list names. maybe the value it's set to could be made part of the module params?
this is the hack:
before the line outputting the tag html:
$html .= "\n\t" . $t . "";
i've inserted a call to a function:
if (strlen($t) > 20) {
$t = truncstring($t, 20);
$t = $t."...";
}
where 20 is my chosen numbers of characters after which i wanted 3 dots "..."
i've placed the function truncstring() right after the ending of the selectList() function (which reads
" return $html;
}"
):
function truncstring($string, $length){
settype($string, 'string');
settype($length, 'integer');
for($a = 0; $a
if anyone is interested, i've implemented a little tweak to shorten the list names. maybe the value it's set to could be made part of the module params?
this is the hack:
before the line outputting the tag html:
$html .= "\n\t" . $t . "";
i've inserted a call to a function:
if (strlen($t) > 20) {
$t = truncstring($t, 20);
$t = $t."...";
}
where 20 is my chosen numbers of characters after which i wanted 3 dots "..."
i've placed the function truncstring() right after the ending of the selectList() function (which reads
" return $html;
}"
):
function truncstring($string, $length){
settype($string, 'string');
settype($length, 'integer');
for($a = 0; $a
Owner's reply
Thanks Max, your efforts are appreciated.
bymxgs, August 24, 2009
I've tried many so-called png fixes, but the only one still working perfectly fine for me (without breaking layouts etc) is Supersleight (http://24ways.org/2007/supersleight-transparent-png-in-ie6).
just upload the javascript to your template, together with the x.gif transparent gif, put conditional comments to call up the javascript, et voilà, it works a charm.
just upload the javascript to your template, together with the x.gif transparent gif, put conditional comments to call up the javascript, et voilà, it works a charm.


