99
i got the module up in my production
just want to submit some bugs/feature request:
PROBLEM:1. the same as reported by jdseymour, after submitting a question it will redirect me
out from the survey module admin
2. i got a problem in the error message display for survey submission, if we have ever submitted the survey. the error message is posted on the top of the page (instead of in the body of the site). i found that it is due to the XOOPS 2.0.7 version i use (in 2.0.9.2 version it works fine). since you're busy skiing
, i try to fix it myself and found the following changes (in form.php) fixed the issue:
include '../../mainfile.php';
$myts =& MyTextSanitizer::getInstance();
$form_handler =& xoops_getmodulehandler('form', 'survey');
$form =& $form_handler->get($_REQUEST['id']);
if (!is_object($form)) {
redirect_header(XOOPS_URL, 3, _MA_SV_ERR_FORMNOEXIST);
}
elseif (!$form->isAccessibleByUser()) {
include XOOPS_ROOT_PATH."/header.php";
echo $form->getHtmlErrors();
include XOOPS_ROOT_PATH."/footer.php";
//redirect_header(XOOPS_URL, 3, $form->getHtmlErrors());
}
else {
$xoopsOption['template_main'] = 'survey.html';
include XOOPS_ROOT_PATH."/header.php";
$form->loadElements();
$form->assign(&$xoopsTpl);
include XOOPS_ROOT_PATH."/footer.php";
}
basically what i did is moving the "$xoopsOption['template_main'] = 'survey.html';" code to the bottom.
FEATURE REQUESTS1. Can we add
Country for the Personal data question (since the internet has made us gone beyond our own country, we should have the 'country' as our survey will go beyond the country
)
2. Can we expose the
Survey Date (
the start & end date) in the survey page and survey list page? So we can show when the survey will expire?
thanks a million.