PDA

View Full Version : Major Additions - vB Survey: Add a full-featured survey tool to your forum


Spikeman
04-25-2009, 10:00 PM
What this hack does:

This hack will add a full featured survey application system to your forum. You can survey your members opinions on various topics, or allow usergroups to create their own surveys.

Credits: John W. Holmes: Author of UCCASS Survey.
tamarian (https://vborg.vbsupport.ru/member.php?u=188) who initially released this hack for vB3.0 - 3.5 before I ported it to 3.6 - 3.8 outstanding work by him.

Application Features: See the UCCASS site for full details.

http://www.bigredspark.com/survey.html

The UCCASS offers some advanced features such as branching conditionals (allows hiding/displaying questions based on specific answers), result filtrations and much more.

Integration features:
Replaced authentication with VB's user database
Set permissions per usergroup, for admin/edit/create/take and view results priviliges.
Replaced config files with vB admin settings
Applied vB style to the UCCASS templates (it uses Smarty)

vB Survey added features: (some will be ported back to UCCASS)
Added anonymity option. If a survey is not anonymous, members can see how other members answered.
Added Hide/unhide survey option. This is useful to send surveys to specific users or usergroups.
Added Date answer types (D), with dropdown lists for day, month, year to ensure correct date entry.
Added REGEX control for new answer types, to control the answer format.
Added size control for single like text answers and REGEX answers.

Liscense: The original UCCASS Survey application is released under a modified GPL Liscense (Aferro GPL) : http://www.bigredspark.com/survey/license.txt (or look under the /docs directory in the zip file)

Installation difficulty:
2 mins, all done via product file.

Installation:

* Unpack the included file
* Copy survey.php to your main forum directory
* Copy the survey directory into your forum directory (cannot change the directory name)
* Install the Product-Survey.xml
* The product file will also install all data for the 2 default surveys to get you started.
* Go to AdminCP => vBulletin Options => Survey System Options - and set the options for access and other settings
* If you get permission errors, change file permissions for the survey directory and its contents to 744, and the owner/group to apache:apache (or, some servers are setup to nobody:nobody):

cd /path/to/main/forum

chown -R apache:apache survey

chmod -R 744 survey

Notes:

1. The "do not remove" comment on the copyright link in the footer is from the original UCCASS footer template. You may contact the original author, John W. Holmes, for permission to remove the copyright notice, he's willing to talk according to their support forum.
2. If you use FTP to upload the survey directory, you might have problems with subdirectories under /survey/smarty/template_c due to the directory names with % signs. In this case, you can delete all the directories under template_c (but not the template_c directory itself). Those subdirectories will be recreated automatically when the templates are read.


Please click Install if you have installed this mod.


1. All tables, templates, phrases etc are installed via product file.
2. Support for wol has been added.
3. Some bugs fixed with the UCCASS system

I would grateful if you did click Install if you use it. Remember you only get notified of updates if you Install

Demo Here :- http://www.beta-tester.co.uk/iphone/survey.php please note the Demo may have restrictions as it is a live board. You may or may not be able to test the survey as a guest, this will not affect your sites as generally why would you want guests taking a survey on your site, you would never get a true survey result, I have only enabled this on my board so as to get the ball rolling and you guys can see it. you should all be able to see results page though.

If you have the older 3.5 Hack installed you MUST uninstall that before installing 3.8

Translations:-
Arabic - patch developer (https://vborg.vbsupport.ru/member.php?u=200875)

Spikeman
04-26-2009, 08:25 PM
If you are using my previous 3.6 version do not upgrade at this time, there are no significant changes, only to the installation script for 3.8 compatability. More features will be coming soon at which time a post will be made on the 3.6 script to make you aware.

Translations:- This is not as simple as just changing phrases in vBulletin as almost all phrases are coded into the smarty templates. Therefore individual packages will be listed, you can then download your appropriate languge.

Anyone wanting to help in translations pm me

Arabic :- Completed

pein87
04-26-2009, 08:38 PM
thanks installed but will test it on a demo board first good work mate.

yahoooh
04-26-2009, 10:13 PM
thank u very much , i will try it

silvermerc
04-26-2009, 10:54 PM
it says iv already taken the survey ;s

Spikeman
04-27-2009, 02:00 AM
it says iv already taken the survey ;s

I assume you are talking about the Demo Board? It is difficult to set up a demo board for guests to post as this is not how a survey is conducted, so it can be a bit hit and miss on the demo, Most demo users should be able to take the survey but all should be able to view results.

Brandon Sheley
04-27-2009, 02:00 AM
great idea, I may install this one on our forums :)

Creative Liquid
04-27-2009, 06:09 AM
Great idea. I can not upload the template_c files and there is no link on my forum to the survey. Any ideas?

vibedream
04-27-2009, 09:36 AM
Good work
Thanks

Spikeman
04-27-2009, 09:39 AM
Great idea. I can not upload the template_c files and there is no link on my forum to the survey. Any ideas?


1. Go to the location of survey.php example http://www.yourdomain.com/forums/survey.php

2. If you use FTP to upload the survey directory, you might have problems with subdirectories under /survey/smarty/template_c due to the directory names with % signs. In this case, you can delete all the directories under template_c (but not the template_c directory itself). Those subdirectories will be recreated automatically when the templates are read.

Sweeks
04-27-2009, 11:00 AM
When trying your demo I get this:

You have already completed the requested survey.

When I never took one.
________
CHEVROLET KINGSWOOD ESTATE SPECIFICATIONS (http://www.chevy-wiki.com/wiki/Chevrolet_Kingswood_Estate)

Spikeman
04-27-2009, 11:28 AM
When trying your demo I get this:

You have already completed the requested survey.

When I never took one.

It is difficult to set up a demo board for guests to post as this is not how a survey is conducted, so it can be a bit hit and miss on the demo, Most demo users should be able to take the survey but all should be able to view results.

The only real way around this to to register and take survey, but I do not want anyone registering on my site just to play with a demo also registering will only let you take a survey once!

Edit Just put a temp hack in place so you should not get the You have already completed the requested survey statement

vbboarder
04-27-2009, 04:18 PM
If you are using my previous 3.6 version do not upgrade at this time, there are no significant changes, only to the installation script for 3.8 compatability. More features will be coming soon at which time a post will be made on the 3.6 script to make you aware.



Demos look great! Looking forward to the new features. Thanks a lot :)

Hornstar
04-28-2009, 04:34 AM
yeah I think this would be really great to use to get some feedback on a new event I plan to run on my site soon :)

Alfa1
04-28-2009, 09:45 AM
What new features are you preparing?

Spikeman
04-28-2009, 10:01 AM
What new features are you preparing?

I am looking into a number of possibilities right now,

1. Insert pre made survey modules, eg..surveys on sports, computing, etc... so user can download a pre made survey and insert into the survey hack, surveys can be time consuming to setup, so i will try to make some base files that will require minimun input by the survey owners.

2. Integrate available surveys into threads, with options to show stats, ACP configurable.

3. vBa CMPS modules - Latest - random etc..


These are some ideas that i have been working on, any more let me know & will see what can be done.

Hornstar
05-01-2009, 06:33 AM
They sound great! looking forward to that update :)

jazz_aaf
05-02-2009, 05:04 AM
problem with adding arabic text under windows-1256 encoding. It writes well to the database, but display blank space when trying to read from the dbase. Any solution for this problem? Our forum uses windows-1256 instead of utf-8 to display arabic.

Spikeman
05-02-2009, 10:45 AM
problem with adding arabic text under windows-1256 encoding. It writes well to the database, but display blank space when trying to read from the dbase. Any solution for this problem? Our forum uses windows-1256 instead of utf-8 to display arabic.
Are you using the arabic version or English? I can take a look into this and see if there is a workable fix, its not something I have come across before.

To read arabic from mysql through php

1) The field containing the arabic text should have Charset utf8 collation utf8_unicode_ci
2) In the page where you want to read this field
a)set the charset of the page to windows-1256
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
b) After establishing the connection to the MySQL write this two lines
mysql_query("SET NAMES cp1256");
mysql_query("set characer set cp1256");

let me see if I can work this in.

jazz_aaf
05-02-2009, 09:33 PM
thanks for the reply. I am using the arabic version. I managed to fix it by removing the htmlentities part of the safestring class.

Anyway to have a MM answer type with a limit number of answers? For example, to present the user with a question having 10 answers and limit his choice to 3 choices only?

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
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.


$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
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.

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.t pl":

Find:
<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:
<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
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

I downloaded it and there is no admin cp modual.

go to Admin CP - vB options - Survey System Settings

Spikeman
05-10-2009, 04:38 PM
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.t pl":

Find:
<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:
<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

Fixed in next release

Skyrider
05-23-2009, 02:56 PM
When I click on values, I get:
The requested URL /display_answers.php was not found on this server.

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.

EDIT:
When I wish to preview a Survey I already made, I'm getting:
You have already completed the requested survey.

I love this plugin btw, thanks!

Spikeman
05-23-2009, 04:58 PM
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.

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.


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:-


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.



$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

Skyrider
05-23-2009, 06:26 PM
Thanks, I'll try. But I'm sorry, display_answers.php is not in the zip file you uploaded on this thread. I checked both.

EDIT:
Just edited survey.php and changed the 0 setting to 1 (even tried copy/pasting), and I still get:
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.
And yes, I checked "Available Survey", for registered people there is 1 available. I also added everyone within the usergroup list to the allow to take survey list.

PPS, the "admincp" folder you added within the zip file is empty.

Spikeman
05-27-2009, 09:17 AM
pm me your site details and I will take a look.

Nadeemjp
05-27-2009, 11:18 AM
wonderful mod.
installed and nominated for MOM.

please tell me what code should i add in the navbar to have this option display there as [survey]

thanx

BlackJacket
06-01-2009, 08:30 PM
pm me your site details and I will take a look.

Could i install this outside my forum directory?

www.mysite.com/survey.php

Thanks for the great mod.

Spikeman
06-02-2009, 12:56 AM
please tell me what code should i add in the navbar to have this option display there as [survey]



Add this to your navbar template where you want it to appear


<!-- Survey -->
<td class="vbmenu_control"><a href="survey.php$session[sessionurl_q]" rel="nofollow">Survey</a></td>
<!-- / Survey -->

Spikeman
06-02-2009, 01:05 AM
Could i install this outside my forum directory?

www.mysite.com/survey.php



I have not tested it, however you will need to change the variables in survey.php to begin with and take it from there. If you need help on the changes let me know.

Spikeman
06-02-2009, 01:20 AM
When I click on values, I get:
The requested URL /display_answers.php was not found on this server.



My bad i just re read this! There is no display_answers.php nor should there be, so I do not know how you are getting this as I cannot replicate the error.

Can you go to my demo and see if you get the same error from my board. http://www.beta-tester.co.uk/iphone/survey.php

BlackJacket
06-02-2009, 02:51 AM
I have not tested it, however you will need to change the variables in survey.php to begin with and take it from there. If you need help on the changes let me know.

I need help with the changes, lol. :)

PM what you need. :) Thank you so much for your help. It is greatly appreciated!

Nadeemjp
06-02-2009, 09:06 AM
Add this to your navbar template where you want it to appear


<!-- Survey -->
<td class="vbmenu_control"><a href="survey.php$session[sessionurl_q]" rel="nofollow">Survey</a></td>
<!-- / Survey -->


thank you very much for the help:)

Spikeman
06-02-2009, 09:07 AM
I need help with the changes, lol. :)

PM what you need. :) Thank you so much for your help. It is greatly appreciated!

PM sent

Spinball
06-03-2009, 11:53 AM
Is it possible to embed the survey results within a post? Or below it?

Spikeman
06-03-2009, 06:00 PM
Is it possible to embed the survey results within a post? Or below it?


I am looking into making the results available within the ACP, also auto creation of thread when new surveys are posted allowing for a much greater control over permissions, users can then access the survey link from the thread with the inclusion of an invite system for greater control (for Example) invite 100, 200 random users to take survey over a specified time period.

These are just my thoughts, I have some code that is already done its just all a time factor ;)

Spinball
06-03-2009, 06:58 PM
Interesting, thanks. I ask for a specific reason. We need to implement a survey to accompany a thread about a specific product. We need to display the survey results in that thread. When people take the survey they are first asked whether they own the product. If they do, then they take the next step which is 5 questions on what they think about the product, each a rating 1 to 5. Simple enough. The results of the ratings need to be displayed in the format of average scores (total scores divided by the number of responders) and a graphic score bar (as per your demo) for each question.

There are several products, each with their own thread and survey. All the surveys are roughly the same.

Can we do this - or will we soon - with this mod?
Thanks

Pottsy
06-03-2009, 08:12 PM
Spikeman,

Thanks for a great mod - using the version for 3.6 on vb 3.7.2 with vbseo.

On the text results page, the next and previous buttons don't work - they give a 406 error. There were some random characters in the URL if, when removed, caused it to work. I changed results_text.tpl from:

{section name="prev" loop=1 show=$button.previous}
<input type="submit" name="prev" value="&lt;&lt;&nbsp;Previous Page">&nbsp;
{/section}

{section name="next" loop=1 show=$button.next}
<input type="submit" name="next" value="Next Page&nbsp;&gt;&gt;">
{/section}


to

{section name="prev" loop=1 show=$button.previous}
<input type="submit" name="prev" value="Previous Page">&nbsp;
{/section}

{section name="next" loop=1 show=$button.next}
<input type="submit" name="next" value="Next Page">
{/section}


And this seems to have fixed it.

socalsoccer
06-04-2009, 04:10 AM
I get this error when trying to view the answers in edit mode The requested URL /forum/display_answers.php was not found on this server.

I noticed you admin directory you have for upload is empty. Could you please post the correct admin directory for upload.

thanks

andreamarucci
06-04-2009, 11:30 AM
There's a problem with accented characters. If I insert a question using accented chars and save the question, all the question's text disappear. If I type, for example, perch? when I save the question, this text disappear, but if I type perche' everything works fine.

How can I fix this?

Spikeman
06-05-2009, 07:12 AM
Interesting, thanks. I ask for a specific reason. We need to implement a survey to accompany a thread about a specific product. We need to display the survey results in that thread. When people take the survey they are first asked whether they own the product. If they do, then they take the next step which is 5 questions on what they think about the product, each a rating 1 to 5. Simple enough. The results of the ratings need to be displayed in the format of average scores (total scores divided by the number of responders) and a graphic score bar (as per your demo) for each question.

There are several products, each with their own thread and survey. All the surveys are roughly the same.

Can we do this - or will we soon - with this mod?
Thanks

I am hoping to accomplish something along those lines, not sure I can give you a time frame for this but it has always been something that I wanted vBsurvey to do, so its up there on the list.

Spikeman,

Thanks for a great mod - using the version for 3.6 on vb 3.7.2 with vbseo.

On the text results page, the next and previous buttons don't work - they give a 406 error. There were some random characters in the URL if, when removed, caused it to work. I changed results_text.tpl from:

{section name="prev" loop=1 show=$button.previous}
<input type="submit" name="prev" value="&lt;&lt;&nbsp;Previous Page">&nbsp;
{/section}

{section name="next" loop=1 show=$button.next}
<input type="submit" name="next" value="Next Page&nbsp;&gt;&gt;">
{/section}


to

{section name="prev" loop=1 show=$button.previous}
<input type="submit" name="prev" value="Previous Page">&nbsp;
{/section}

{section name="next" loop=1 show=$button.next}
<input type="submit" name="next" value="Next Page">
{/section}


And this seems to have fixed it.

Corrected in next version

I get this error when trying to view the answers in edit mode The requested URL /forum/display_answers.php was not found on this server.

I noticed you admin directory you have for upload is empty. Could you please post the correct admin directory for upload.

thanks

display_answers.php is not a file within vBsurvey, this was reported earlier and i am trying to get that fixed...

The admin directory, is empty it was originally in there for structure and I forgot to remove it, it will be used when I add the new features.

There's a problem with accented characters. If I insert a question using accented chars and save the question, all the question's text disappear. If I type, for example, perch? when I save the question, this text disappear, but if I type perche' everything works fine.

How can I fix this?

I will take a look into this, and get back to you.

socalsoccer
06-06-2009, 02:05 PM
Thanks Spikeman. To be more detailed I get this error The requested URL /forum/display_answers.php was not found on this server. when I click on values.

Webmaster961
06-14-2009, 07:22 PM
I seem to have run into a problem while using this survey plugin. As of right now, the survey page is just a blank, white page. That's it; nothing else.

http://www.totalgamingnetwork.com/main/survey.php

I managed to create a survey just fine and had people take it. I came back this morning and the entire page is white. Last night the survey was also saying requested questions weren't answered on pages I had already successfully completed (sending me back to those pages from a later page).

Spinball
06-22-2009, 07:43 AM
Hi, I sent you a PM asking whether you would do some enhancements sooner rather than later if I paid you. Can you let me know whether this is possible, please?

Spinball
06-27-2009, 08:40 PM
Bit quiet round here.
FYI I managed to do it. Survey results in a post - see the attachment.
A request and a question.

Can we specify that once the survey is complete, we can redirect to a specific URL rather than the survey home or the results?

Also is there a way to display a thank you page once the survey is complete?
I used the None question type for now, but it displays in the answers, which is not ideal.

Thanks

Spinball
06-30-2009, 08:15 AM
Can we specify that once the survey is complete, we can redirect to a specific URL rather than the survey home or the results?
Found the answer to this myself. Edit the survey_survey table and enter the URL of the target page into the redirect_page field of the survey in question.
Needs to be in the Edit Survey Properties page though, otherwise if you try to save edits, there are problems.

Also the Limited HTML option doesn't seem to work for questions.

Spikeman
07-02-2009, 10:50 AM
@spinball have PM you

Also is there a way to display a thank you page once the survey is complete?


Yes this is doable, standard or maybe a customised option through ACP? To be added with redirect to show results?

Spikeman
07-02-2009, 11:06 AM
I seem to have run into a problem while using this survey plugin. As of right now, the survey page is just a blank, white page. That's it; nothing else.

http://www.totalgamingnetwork.com/main/survey.php

I managed to create a survey just fine and had people take it. I came back this morning and the entire page is white. Last night the survey was also saying requested questions weren't answered on pages I had already successfully completed (sending me back to those pages from a later page).

Is this still an issue or is it now working?

Spinball
07-02-2009, 01:55 PM
@spinball have PM you



Yes this is doable, standard or maybe a customised option through ACP? To be added with redirect to show results?

Actually you know, though we need a custom page facility for the redirect, I would still like to thank people before we get there. I am having to have a dedicated 'NONE' type question to display thanks to people before they hit the finish button. Kind of messes up the results.
I would like to have a general 'message' type question which does not get added to the results.

tandy
07-11-2009, 06:47 AM
There's a problem with accented characters. If I insert a question using accented chars and save the question, all the question's text disappear. If I type, for example, perch? when I save the question, this text disappear, but if I type perche' everything works fine.

How can I fix this?
I have the same problem, only with french characters like ?, ? and ?.

tandy
07-11-2009, 04:57 PM
There's a problem with accented characters. If I insert a question using accented chars and save the question, all the question's text disappear. If I type, for example, perch? when I save the question, this text disappear, but if I type perche' everything works fine.

How can I fix this?
I found the solution.
You have to edit "safestring.class.php" in the classes folder and change "utf-8" with "iso-8859-1" at lines 142 and 158.

joe1989
07-13-2009, 05:45 PM
There is no vbsurvey_install.php in the admincp folder. In the readme included, it does not mention this file, but the readme contained in an html document within the uploads says there should be a vbsurvey_install.php file. This file is non-existent. I tried to install it thinking this file was no longer needed, but it doesn't work, so I assume that file is, in fact, needed. My VB Options window does have all the options, and I am able to configure the options, but then what? There's nothing else in admincp, and there is nothing on the forum pages, either. I'm guessing the .zip file is missing something...

Spinball
07-13-2009, 05:58 PM
There is no vbsurvey_install.php in the admincp folder. In the readme included, it does not mention this file, but the readme contained in an html document within the uploads says there should be a vbsurvey_install.php file. This file is non-existent. I tried to install it thinking this file was no longer needed, but it doesn't work, so I assume that file is, in fact, needed. My VB Options window does have all the options, and I am able to configure the options, but then what? There's nothing else in admincp, and there is nothing on the forum pages, either. I'm guessing the .zip file is missing something...

Have you tried going to http://www.yourforum.com/forum/survey.php ?

tandy
07-20-2009, 10:39 AM
For those who search for french default.
If you want to activate the Hidden survey feature, just leave a note.
Try at your own risk, its going well for vb 3.8.3
102269

Kayden
08-19-2009, 10:15 PM
There's nothing in the 'acp' folder?

Miras
08-20-2009, 06:48 PM
hi,

installed as the instructions told, but getting this error:
WARNING: Cannot find default template path. Expecting: C:\Inetpub\wwwroot/survey/templates/Default

structure for the page is:
c
- inetpub
-- wwwroot
--- DNW
---- forum
----- survey
http://www.dieneuewelt.de/forum/survey.php

ZexTasy
10-04-2009, 04:30 PM
Installed and working! Only thing is that usergroup settings only work on primary and not secondary usergroups which give some problems where I want user to be able to answer for one usergroup and someone has this usergroup as secondary ...

kushal
10-21-2009, 02:52 PM
Survey working fine. Though when I try exporting the result in table or csv, the column headers do get exported but without the values.

Can you tell me why this would happen?

kushal
10-22-2009, 03:13 AM
Replace GREATEST with COALESCE in classes/special_results.class (6 replaces)

And it solved the problem.

Front Range 4x4
10-31-2009, 05:00 PM
There is no vbsurvey_install.php in the admincp folder.

There's nothing in the 'acp' folder?

Same here. :(

jonah1892
11-30-2009, 07:39 AM
I seem to have run into a problem while using this survey plugin. As of right now, the survey page is just a blank, white page. That's it; nothing else.

http://www.totalgamingnetwork.com/main/survey.php

I managed to create a survey just fine and had people take it. I came back this morning and the entire page is white. Last night the survey was also saying requested questions weren't answered on pages I had already successfully completed (sending me back to those pages from a later page).

similar problem, installed the system but when i go to survey.php i get a white blank screen, did you manage to get yours fixed?

elz3abi M.D
12-06-2009, 03:03 AM
How can I add new surveys?

Scalemotorcars
12-11-2009, 07:59 PM
Works perfectly.

Only flaw Ive found is a little problem with the layout in the results page but since for my site only Admins see it then its really no big deal.

Thanks for this great site tool.

Nominated... :up:

Edit. Layout issue is in FF only IE and Google chrome look fine to me.

Bernd Glasstett
12-13-2009, 07:59 PM
I am currently translating the tool into german, and I am pretty far.

However something came up: Whatever you do, of you insert an "Umlaut" i.e. the title won't be saved. That is a bug, which needs immediate attention, or else the translation I am doing is senseless.

xyzmary2001
12-14-2009, 12:54 PM
I installed and have this problem...

1. In case I let survey on CHMOD on 755 I get this:

WARNING: Compiled template directory is not writable (./survey/smarty/templates_c). Please refer to the installation document for instructions.

2. In case I change to CHMOD 744, I get this:

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

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/share/php5:/usr/share/php') in /var/www/www.forum.com/htdocs/forum/survey.php on line 8

3. I must add that I cannot change the name of the user or of the group - I have no idea why, but I don't have access.


Thanks!

Scalemotorcars
12-15-2009, 01:41 PM
I installed and have this problem...

1. In case I let survey on CHMOD on 755 I get this:

WARNING: Compiled template directory is not writable (./survey/smarty/templates_c). Please refer to the installation document for instructions.

2. In case I change to CHMOD 744, I get this:

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

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/share/php5:/usr/share/php') in /var/www/www.anime-empire.ro/htdocs/forum/survey.php on line 8

3. I must add that I cannot change the name of the user or of the group - I have no idea why, but I don't have access.

Please, can someone help me with this.

Also, there is no .php file in the admin cp directory from the zip and have no idea how to set a new survey.

I find this mod very nice and helpful, it would be sad to have no chance to use it.

Thanks!


Why not set it to 777? I know it leaves it open but shouldn't that clear up this problem.

As for no .php file in the admincp. I had the same thing and installed it anyway. Works perfectly. I think that may be a left over folder from an earlier version.

xyzmary2001
12-18-2009, 08:06 AM
Thank you so much. Indeed, this solves the issue, I don't know why I didn't think about it earlier.

Alfa1
12-20-2009, 12:13 AM
I see this author has not been online for half a year. It would be great to have this ported to vb4 CMS.

Scalemotorcars
06-08-2010, 11:42 PM
Ill 2nd that. It would be nice to have ported to 4.0.+

deadlySniper
06-13-2010, 01:47 AM
Is there suppose to be anything in the admincp folder for this hack? I have nothing in it.

Bergler
09-19-2010, 08:17 PM
Any chance of getting this to work with 4.0 ??

bestword
09-25-2010, 06:41 AM
would it have a 4.x version?

Manoel J?nior
09-25-2010, 09:39 PM
Other DEMO?

Bergler
09-29-2010, 11:03 PM
Anyone want to convert this to 4.0.X?

Bergler
10-04-2010, 02:49 PM
Maybe those who are also interested, we could get together split the cost and get someone to convert it to 4.X.X. for us?

Eric
10-05-2010, 01:37 PM
Well,


Liscense: The original UCCASS Survey application is released under a modified GPL Liscense (Aferro GPL) : http://www.bigredspark.com/survey/license.txt (or look under the /docs directory in the zip file)

Which would mean this port is also under the Aferro GPL, so someone could update & release for vB 4 if they so choose.

Bergler
10-11-2010, 06:25 AM
Well,



Which would mean this port is also under the Aferro GPL, so someone could update & release for vB 4 if they so choose.

Anyone? Anyone. :)

begin
10-13-2010, 09:21 AM
looking this for 4+ , anyone help me ?

jcard
10-25-2010, 09:47 PM
bummer - not compatible with 4.x - thought my needs were answered, and than dashed....

bestword
10-27-2010, 01:29 AM
it can run under 4.x,but can't view result as table or Export Results to CSV(you will get a empty table or file)

to let it show in 4.x and do not report template error,you can do this change:

edit survey.php

find:

$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('vbsurvey') . '");');

replace them to:

$navbar = render_navbar_template(construct_navbits($navbits) );
$templater = vB_Template::create('vbsurvey');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('body', $body);
print_output($templater->render());

DonLKSAB
11-01-2010, 01:33 PM
Thanks Spikeman. To be more detailed I get this error The requested URL /forum/display_answers.php was not found on this server. when I click on values.

Did anyone solve this?
I have exactly the same problem :-(

Bergler
02-27-2011, 05:25 PM
Is anyone willing to covert this to 4.1.2? I would be will to pay someone, I really need this option. :)

Bergler
03-02-2011, 10:09 PM
Is anyone willing to covert this to 4.1.2? I would be will to pay someone, I really need this option. :)

Someone must be willing to convert to vb 4.1.2 for cash?

Lpspider
03-19-2011, 08:56 AM
Is it possible to enable it so the admin can see results from users?

For my survey needs I ask users a handful of questions where I need to know there identities... suggestions appreciated.

Bergler
03-30-2011, 05:25 AM
Is anyone willing to covert this to 4.1.2? I would be will to pay someone, I really need this option. :)

Sevo
04-29-2011, 02:29 AM
when I put in www.myboards.com/survey.php I get this

nput->clean_array_gpc('r', array( 'do' => TYPE_STR, 'sid' => TYPE_INT, 'aid' => TYPE_INT)); if (empty($vbulletin->GPC['do'])) $vbulletin->GPC['do'] = 'main'; $sid = intval($vbulletin->GPC['sid']); $navbits = array("survey.php?$session[sessionurl]" => 'Survey'); $vbulletin->userinfo['can_admin_surveys'] = in_array($bbuserinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_admin_groups'])); $vbulletin->userinfo['can_edit_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_edit_groups'])); $vbulletin->userinfo['can_create_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_create_groups'])); $vbulletin->userinfo['can_take_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_take_groups'])); $vbulletin->userinfo['can_view_survey_results'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_result_groups'])); 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; } if ($vbulletin->GPC['do'] == 'main'){ include('survey/classes/survey.class.php'); $navbits[''] = 'Available Surveys'; $survey = new UCCASS_Survey; $body = $survey->available_surveys(); } elseif ($vbulletin->GPC['do'] == 'take'){ include('survey/classes/survey.class.php'); $navbits[''] = 'Answer Survey'; $survey = new UCCASS_Survey; $body = $survey->take_survey($sid); } elseif ($vbulletin->GPC['do'] == 'results'){ include('survey/classes/results.class.php'); $navbits[''] = 'Survey Results'; $survey = new UCCASS_Results; $body = $survey->survey_results($sid); } elseif ($vbulletin->GPC['do'] == 'edit_survey'){ include('survey/classes/editsurvey.class.php'); $navbits[''] = 'Edit Survey'; $editSurvey = new UCCASS_EditSurvey; $body = $editSurvey->show($sid); } elseif ($vbulletin->GPC['do'] == 'filter'){ include('survey/classes/results.class.php'); $navbits[''] = 'Filter Results'; $survey = new UCCASS_Results; $body = $survey->filter($sid); } elseif ($vbulletin->GPC['do'] == 'display_answers'){ $navbits[''] = 'Display Answers'; $survey = new UCCASS_Main; $body = $survey->display_answers($sid); } elseif ($vbulletin->GPC['do'] == 'edit_answer'){ include('survey/classes/answertypes.class.php'); $navbits[''] = 'Edit Answer Types'; $aid = intval($vbulletin->GPC['aid']); $survey = new UCCASS_AnswerTypes; $body = $survey->edit_answer($sid,$aid); } elseif ($vbulletin->GPC['do'] == 'new_answer_type'){ include('survey/classes/answertypes.class.php'); $navbits[''] = 'New Answer Type'; $survey = new UCCASS_AnswerTypes; $body = $survey->new_answer_type($sid); } elseif ($vbulletin->GPC['do'] == 'new_survey'){ include('survey/classes/newsurvey.class.php'); $navbits[''] = 'New Survey'; $survey = new UCCASS_NewSurvey; $body = $survey->new_survey(); } elseif ($vbulletin->GPC['do'] == 'results_csv'){ include('survey/classes/special_results.class.php'); $et = $vbulletin->GPC['export_type']; $survey = new UCCASS_Special_Results; echo $survey->results_csv($sid,$et); exit; } elseif ($vbulletin->GPC['do'] == 'results_table'){ include('survey/classes/special_results.class.php'); $navbits[''] = 'Results Table'; $survey = new UCCASS_Special_Results; $body = $survey->results_table($sid); } else { include('survey/classes/survey.class.php'); $navbits[''] = 'Available Surveys'; $survey = new UCCASS_Survey; $body = $survey->available_surveys(); } $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('vbsurvey') . '");'); ?>




Any ideas what I have done wrong?

Lpspider
05-20-2011, 04:09 AM
I'm having a problem. On page two some members cannot progress to the next page - it just refreshes the current one. Any idea what might cause this?

Spinball
06-20-2011, 09:29 PM
Looks like there is no support for this mod.
But just in case...

I edited the results.tpl as the margin-left:25px; in there throws the table rows out of whack.
A very minor problem.

But then when I FTP'd the results.tpl up, I then get an error when trying to view results:
Warning: chmod() [function.chmod]: Operation not permitted in [path]/survey/smarty/Smarty.class.php on line 1454

Warning: require_once(SMARTY_CORE_DIRcore.load_plugins.php) [function.require-once]: failed to open stream: No such file or directory in [path]/survey/smarty/templates_c/Default^results.tpl on line 3

Fatal error: require_once() [function.require]: Failed opening required 'SMARTY_CORE_DIRcore.load_plugins.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/sites/avforums/public_html/forums/survey/smarty/templates_c/Default^results.tpl on line 3

Please help!

Alfa1
06-20-2011, 11:25 PM
Please port this to the CMS. The CMS is a much better place for surveys.

TheSpetsnaz
07-07-2011, 03:27 AM
Hey does this work the current version of Vbulletin?
4.1.x or so?

bentwood
09-05-2011, 03:54 PM
Please port this to the CMS. The CMS is a much better place for surveys.

What do you mean that the CMS is a better place? Does the CMS have this capability?

Sorry but I am new to the product.

imedic
10-28-2011, 07:10 AM
Survey working fine. Though when I try exporting the result in table or csv, the column headers do get exported but without the values.

Can you tell me why this would happen?

Replace GREATEST with COALESCE in classes/special_results.class (6 replaces)

And it solved the problem.


Man, you are the best! Many thanks.
Indeed results appear ONLY on your edit.

Spinball
03-02-2012, 05:23 PM
I assume there is no support for this mod?
Had the survey system running for a long while.
Today I duplicated the default template and edited a .tpl template file in the new template set.
When I chose that set for a survey and tried to take it, all I get is a blank screen.
Any ideas?

Alfa1
03-03-2012, 02:50 AM
Im afraid that this mod is unsupported.

Spinball
03-03-2012, 08:05 AM
Im afraid that this mod is unsupported.

Cool. I'll pay a coder to rewrite it, then.

Alfa1
03-03-2012, 11:09 AM
Wouldn't it be easier to create a survey system within vbulletin, instead of bridging UCCASS?

Tru2Chevy
05-09-2012, 08:40 PM
Just recently found this mod and installed it on my 3.8 board. Trying to setup a survey that any user who has the link can take, whether or not they are logged in. Has anyone else been successful in allowing unregistered users to access a survey?

In the ACP options I have the "Usergroups allowed to answer (take) surveys" option set to include #1, the Unregistered / Not Logged In usergroup, but when I log out and click the link for the survey I am just prompted to log in.

Any ideas?

- Justin

Simon Lloyd
05-10-2012, 10:37 AM
I need a little help with this, it's installed fine and i have had users take my first survey, however clicking on results as table simply shows me the questions in columns i dont see any usernames....etc

I've read 90% of the posts in this thread but dont see anyone with this issue, any ideas?

advancedgamerz
08-06-2012, 06:17 PM
do you have anything like this for 4.2

Ramsesx
11-08-2014, 01:23 PM
when I put in www.myboards.com/survey.php I get this





Any ideas what I have done wrong?
In survey.php replace in the first line:
<?
with
<?php

ozzy47
11-08-2014, 01:28 PM
In survey.php replace in the first line:
<?with
<?php

You do realize you are replying to a post that is over three years old, and that member has not been on in over a year? :)

Spinball
11-08-2014, 03:08 PM
Wow! My first thread update email from vb.org in years.