Quote:
Originally Posted by StarBuG
Hi
I need to know where to define the background for the survey itself and the results page.
My forum uses a background image but on long surveys this breaks the design, so I need to replace it with a color. Can i ask where you normally define the image?
|
vBsurvey uses smarty templates that are located at survey/templates/Default there is also the vbsurvey template within the style manager if you have added your background as a custom style. However your default color that is defined within vB should be displayed?
Quote:
Originally Posted by StarBuG
Also it seems that guests can't take the survey, even though I have set permissions to allow usergroup 1 (not registered) to take surveys.
|
If you take a look in survey.php
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
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;
That should work