![]() |
vB Survey: Add a full-featured survey tool to your forum
1 Attachment(s)
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 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 |
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 |
thanks installed but will test it on a demo board first good work mate.
|
thank u very much , i will try it
|
it says iv already taken the survey ;s
|
Quote:
|
great idea, I may install this one on our forums :)
|
Great idea. I can not upload the template_c files and there is no link on my forum to the survey. Any ideas?
|
Good work
Thanks |
Quote:
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. |
When trying your demo I get this:
You have already completed the requested survey. When I never took one. ________ CHEVROLET KINGSWOOD ESTATE SPECIFICATIONS |
Quote:
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 |
Quote:
Demos look great! Looking forward to the new features. Thanks a lot :) |
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 :)
|
What new features are you preparing?
|
Quote:
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. |
They sound great! looking forward to that update :)
|
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.
|
Quote:
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. |
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? |
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) |
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. |
how to limit the number of times a user can take a survey?
|
Quote:
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"); |
Quote:
Quote:
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. |
Will see what others say, and then give it another go. Many thanks for prompt response.
Watching :) |
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 /> 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 /> Thanks! Rabbit |
how to sort results based on the total for each answer?
|
I downloaded it and there is no admin cp modual.
|
Quote:
Quote:
|
Quote:
|
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: Quote:
EDIT: When I wish to preview a Survey I already made, I'm getting: Quote:
|
Quote:
Quote:
Code:
if ($vbulletin->userinfo['userid']==0) { // override permissions for guests, since userid zero is messy Code:
if ($vbulletin->userinfo['userid']==1) { // override permissions for guests, since userid zero is messy 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"); |
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: Quote:
PPS, the "admincp" folder you added within the zip file is empty. |
pm me your site details and I will take a look.
|
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 |
Quote:
www.mysite.com/survey.php Thanks for the great mod. |
Quote:
Code:
<!-- Survey --> |
Quote:
|
Quote:
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 |
All times are GMT. The time now is 12:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|