vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vB Survey: Add a full-featured survey tool to your forum (https://vborg.vbsupport.ru/showthread.php?t=131650)

ivps-Samuel 11-29-2006 03:41 PM

Hello,

I added usergroup 1 (Guest/Not Logged In) to answer survey questions but it still seems to require login when the survey is clicked on.

Any ideas?

Spikeman 11-29-2006 05:21 PM

Quote:

Originally Posted by ivps-Samuel (Post 1128133)
Hello,

I added usergroup 1 (Guest/Not Logged In) to answer survey questions but it still seems to require login when the survey is clicked on.

Any ideas?

Please remember the point of a survey is to compile data across a given site to a set of people, however allowing guests the oppurtunity to take the survey would surely make for different results as they could retake the survey many times, therefore throwing your results out. That said here is what you need.

Find this code 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;

You will need to change it to some like this:
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;

Once you have changed that you will need to allow guests to take survey more than once, otherwise guests will be informed that they have already taken the survey, so

Find this line in survey/classes/survey.class.php around line 127 either delete or comment the line out.
Code:

if($check === ALREADY_COMPLETED) eval(print_standard_error("You have already completed the requested survey.", 0));
That should do it.

Datenpapst 12-01-2006 07:30 AM

I have got a problem with the survey. Its not showing the results afert I answered the questions. Dont know why :(

Spikeman 12-01-2006 02:39 PM

Quote:

Originally Posted by Datenpapst (Post 1129255)
I have got a problem with the survey. Its not showing the results afert I answered the questions. Dont know why :(

Does this happen to all results you are trying to view or is this a new error? have you seen results before? what mySQL version are you running?

Antivirus 12-03-2006 02:50 PM

If i were to install the previous version on my vb 3.5.x boards, then upgraded vb to latest version (3.6.x), how much does upgrading this hack to the 3.6 version entail? I didnt see ay instructions for upgrading. is it simply an overwrite of the included files, or are there db changes, etc... does previous survey data get overwritten?

Spikeman 12-03-2006 07:41 PM

Quote:

Originally Posted by Antivirus (Post 1130851)
If i were to install the previous version on my vb 3.5.x boards, then upgraded vb to latest version (3.6.x), how much does upgrading this hack to the 3.6 version entail? I didnt see ay instructions for upgrading. is it simply an overwrite of the included files, or are there db changes, etc... does previous survey data get overwritten?

This is not an upgrade from the previous releases, It is a new install, you must uninstall old version. When you upgrade to 3.6 some tables and some fields that were present in vB 3.5 were removed that were needed to allow the previous version of this hack to function. That said if you take a backup of your survey data you should be able to import it back into the new survey as no changes have been made to the Survey Tables.

Installing this hack is a 2 minute job

Antivirus 12-04-2006 01:48 PM

Quote:

Originally Posted by Spikeman (Post 1131094)
It is a new install, you must uninstall old version.

so there is an uninstall script with the old version?

Thanks :)

Spikeman 12-04-2006 01:54 PM

Quote:

Originally Posted by Antivirus (Post 1131603)
so there is an uninstall script with the old version?

Thanks :)

Yes just load up the previous install script and chose option to uninstall.

Antivirus 12-05-2006 05:43 PM

okie, thanks for clarifying.

nanaimobar 12-09-2006 11:58 PM

Installation went smoothly, hooks and vBulletin Options updated perfectly, but admincp shows no changes and no vbSurvey section is visible anywhere.

Suggestions?


All times are GMT. The time now is 10:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01557 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete