vb.org Archive

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

TimberFloorAu 05-02-2009 11:48 PM

Instructions are incorrect:

In instructions above it says:

* Copy survey.php to your main forum directory
* Copy the survey directory into your forum directory (cannot change the directory name)

In instructions with hack, it says:

Copy survey.php to your main forum directory
Copy the survey directory below your forum directory (cannot change the directory name)

TimberFloorAu 05-03-2009 12:02 AM

We get errors.

Warning: require(survey/classes/main.class.php) [function.require]: failed to open stream: Permission denied in [path]/survey.php on line 8

Fatal error: require() [function.require]: Failed opening required 'survey/classes/main.class.php' (include_path='.:/usr/local/lib/php') in /home/oursite/public_html/forum/survey.php on line 8

Installed as per VB instruction set not your txt version with download.

jazz_aaf 05-03-2009 06:13 AM

how to limit the number of times a user can take a survey?

Spikeman 05-03-2009 03:45 PM

Quote:

Originally Posted by jazz_aaf (Post 1803434)
how to limit the number of times a user can take a survey?


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

Spikeman 05-03-2009 04:26 PM

Quote:

Originally Posted by TimberFloorAu (Post 1803337)
Instructions are incorrect:

In instructions above it says:

* Copy survey.php to your main forum directory
* Copy the survey directory into your forum directory (cannot change the directory name)

In instructions with hack, it says:

Copy survey.php to your main forum directory
Copy the survey directory below your forum directory (cannot change the directory name)

My bad will change file in download.

Quote:

Originally Posted by TimberFloorAu (Post 1803342)
We get errors.

Warning: require(survey/classes/main.class.php) [function.require]: failed to open stream: Permission denied in [path]/survey.php on line 8

Fatal error: require() [function.require]: Failed opening required 'survey/classes/main.class.php' (include_path='.:/usr/local/lib/php') in /home/oursite/public_html/forum/survey.php on line 8

Installed as per VB instruction set not your txt version with download.

1.This is caused by permissions
2.ensure that you set the permissions correctly
3.some servers will be a pain!, try a 777 chmod on the survey folder and included directories and file
4. Also verify that all files were uploaded, this has happened before when files were missing and it throws an error, this is normally caused by the server and not user/admin.

TimberFloorAu 05-03-2009 10:00 PM

Will see what others say, and then give it another go. Many thanks for prompt response.

Watching :)

silly rabbit 05-07-2009 12:13 AM

Spikeman, just wanted to say 'nice job', adaptation to vB, working great on 3.8.2

I added the "custom url" redirect at survey end back in, it seems to be working fine after limited testing. To accomplish in "\survey\templates\Default\edit_survey_properties. tpl":

Find:
Code:

<input type="radio" name="redirect_page" value="results"{$data.redirect_results}> Survey Results Page <span class="example">(Results Access should be Public)</span><br />
After Add:
Code:

<input type="radio" name="redirect_page" value="custom"{$data.redirect_custom}> Custom URL <span class="example">(If URL does not start with http:// or https://, it is assumed to be a relative URL from {$conf.html})</span><br />
        <div style="margin-left:20px">
          URL: <input type="text" name="redirect_page_text" value="{$data.redirect_page_text}" size="50" maxlength="255">

Everything else seems to be intact, working fine!

Thanks! Rabbit

jazz_aaf 05-08-2009 02:48 PM

how to sort results based on the total for each answer?

fred13 05-08-2009 07:02 PM

I downloaded it and there is no admin cp modual.

Spikeman 05-10-2009 04:35 PM

Quote:

Originally Posted by jazz_aaf (Post 1806996)
how to sort results based on the total for each answer?

I am looking into a better reporting module to break down results, which will be accessible in Admin CP

Quote:

Originally Posted by fred13 (Post 1807112)
I downloaded it and there is no admin cp modual.

go to Admin CP - vB options - Survey System Settings


All times are GMT. The time now is 12:17 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.01155 seconds
  • Memory Usage 1,742KB
  • 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)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