Quote:
Originally Posted by FF|Skyrider
When I click on values, I get:
The requested URL /display_answers.php was not found on this server.
|
Check that that file has been uploaded to server.
Quote:
PS, I'm getting the error as a Guest:
The following surveys are available. Click on a link to begin taking the survey. Some surveys may be restricted to specific groups:
There are no surveys available at this time.
I did selected that the Guest usergroup can take surveys. Please make it IP locked, should solve some issues that you already took the survey.
|
If you take a look in survey.php, this will allow guests to take surveys.
Code:
if ($vbulletin->userinfo['userid']==0) { // override permissions for guests, since userid zero is messy
// They can only see the results, if allowed in the admincp settings
$vbulletin->userinfo['can_admin_surveys'] = 0;
$vbulletin->userinfo['can_take_surveys'] = 0;
$vbulletin->userinfo['can_create_surveys'] = 0;
$vbulletin->userinfo['can_edit_surveys'] = 0;change to
Change to:-
Code:
if ($vbulletin->userinfo['userid']==1) { // override permissions for guests, since userid zero is messy
// They can only see the results, if allowed in the admincp settings
$vbulletin->userinfo['can_admin_surveys'] = 0;
$vbulletin->userinfo['can_take_surveys'] = 1;
$vbulletin->userinfo['can_create_surveys'] = 0;
$vbulletin->userinfo['can_edit_surveys'] = 0;
This will allow surveys to be taken more than once.
Find this line in survey/classes/survey.class.php around line 129, comment these lines out.
Code:
$check = $this->_CheckAccess($sid,TAKE_PRIV,"survey.php?sid=$sid");
if($check === ALREADY_COMPLETED) eval(standard_error("You have already completed the requested survey."));
if (!$check) print_no_permission();
That should do it