Okay, thanks for taking an interest in my problems!
I have set up two sample surveys to illustrate a few issues. The version for both is limesurvey190plus-build9160-20100929:
The first survey is at
areaf.rdos.bc.ca/foo/index.php?sid=95218&lang=en. It is built on the "Basic" template that shipped with the above-noted LimeSurvey package. There are three issues:
First, the label for the comment is wonky. I fix this in qanda.php by adding a break near line 2378 (denoted with
):
<p class="comment">
<label for="answer'.$ia[1].'comment">'.$hint_comment.':[b]<BR>[/b]</label>
<textarea class="textarea" name="'.$ia[1].'comment" id="answer'.$ia[1].'comment" rows="'.floor($tarows).'" cols="50" >';
// --> END NEW FEATURE - SAVE
if (isset($_SESSION[$fname2]) && $_SESSION[$fname2])
{
$answer .= str_replace("\\", "", $_SESSION[$fname2]);
}
$answer .= '</textarea>
</p>
Second, my original problem is an "other" box that is unresponsive to changes in template.css. In this example, the text box resizes appropriately to 500px. So I am thinking the problem must be with my other template.
Third, a minor quibble with the ranking tool. The "receiving" text boxes on the right do not resize properly. It is not much of an issue in this example but is a real problem when the items are much longer (most of the text is truncated).
I fix this by changing qanda.php by adding the "bolded" line below (it is missing in the original qanda.php). I am not sure why it is missing--without it no sizing occurs.
if (isset($maxselectlength) && $maxselectlength > 60)
{
$ranklist = str_replace("<input class=\"text\"", "<input size='60' class='text'", $ranklist);
$answer .= "</tr>\n<tr>\n"
. "\t<td align='left' class='output'>\n"
. "\t<table border='0' cellspacing='1' cellpadding='0'>\n"
. "\t<tr><td></td><td><strong>".$clang->gT("Your Ranking").":</strong></td></tr>\n";
}
else
{
[b]$ranklist = str_replace("<input class=\"text\"", "<input size='" . $maxselectlength . "' class='text'", $ranklist);[/b]
$answer .= "\t<td style=\"text-align:left; white-space:nowrap;\" class=\"rank output\">\n"
. "\t<table border='0' cellspacing='1' cellpadding='0'>\n"
. "\t<tr><td></td><td><strong>".$clang->gT("Your Ranking").":</strong></td></tr>\n";
}
The second survey is at:
areaf.rdos.bc.ca/foo/index.php?sid=27546&lang=en
It is identical except that it uses a template I have had kicking around for a year or two. The template is based on "Basic". The second survey has all the problems of the first except that the "other" box for the list is unresponsive to changes in template.css.
Any help would be greatly appreciated.
/M