Here are this week's most popular ideas about LimeSurvey.
Final or thanks message in closed surveys
Written by filhocf the 2 Feb 12 at 14:58.
Global category: Logic & Conditions.
New
When we need to close a survey, can expire or close it.
In both cases, to show a message explain the end of survey and saying some thing like a "thanks by interesting".
Solution #1:
Allow setting advanced setup variables in the config.php.
For instance, if someone needs to override the $publicurl value, it has to be done in the config-defaults.php. When a user creates their config.php, they might have all the information they need to set the $publicurl, yet they cannot set the value in the config.php.
By updating the config-defaults.php to first check if the variable has been set, we can keep the user's version of the variable and set a default if needed.
$publicurl = isset($publicurl) ? $publicurl : "$rooturl";
Of course there are several ways to do this same logic.
With the code above, if a user were to set a value for $publicurl in their config.php, it would not be overwritten by the config-defaults.php. If the user does not set the value manually, the value will still be set to the default value.
For instance, if someone needs to override the $publicurl value, it has to be done in the config-defaults.php. When a user creates their config.php, they might have all the information they need to set the $publicurl, yet they cannot set the value in the config.php.
By updating the config-defaults.php to first check if the variable has been set, we can keep the user's version of the variable and set a default if needed.
$publicurl = isset($publicurl) ? $publicurl : "$rooturl";
Of course there are several ways to do this same logic.
With the code above, if a user were to set a value for $publicurl in their config.php, it would not be overwritten by the config-defaults.php. If the user does not set the value manually, the value will still be set to the default value.