Bugs item #1876646, was opened at 2008-01-21 18:48
Message generated for change (Comment added) made by liedekef
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108956&aid=1876646&group_id=8956
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: User
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Andrew Hunt (blahblah29)
Assigned to: Nobody/Anonymous (nobody)
Summary: "sorry no questions" message
Initial Comment:
In running a little test survey after developing a custom CSS file, I noticed that there's no way to control the appearance of the message "Sorry, no questions for you to answer in this section" that appears if you have conditional questions that don't need to be answered by a certain user.
In my case, the message was appearing in black on a dark green background, making it practically illegible.
Here's my quick fix. Line 92 of /admin/include/function/survey_render.inc is what displays the message. I simply added a <P> tag with class "message" to make it read:
print(_('<p class="message">Sorry, no questions for you to answer in this section.</p>'));
That displays it with the same attributes that the messages at the top of the page have. You could also make a new class and define CSS specifically for it.
----------------------------------------------------------------------
>Comment By: Franky Van Liedekerke (liedekef)
Date: 2008-01-21 20:27
Message:
Logged In: YES
user_id=109671
Originator: NO
Fixed it by changing the code to:
if ($questions_shown==0) {
print "<p class=\"message\">";
print(_('Sorry, no questions for you to answer in this
section.'));
print "</p><br /><br />";
}
Franky
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108956&aid=1876646&group_id=8956
|