Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vB Survey: Add a full-featured survey tool to your forum Details »
vB Survey: Add a full-featured survey tool to your forum
Mod Version: 1.00, by tamarian (Member) tamarian is offline
Developer Last Online: Mar 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.0 Rating: (6 votes - 4.83 average) Installs: 183
Released: 14 Jun 2005 Last Update: 26 Aug 2005 Downloads: 228
Not Supported Template Edits Additional Files  

A 3.6.x version by spikeman is posted here:
http://www.vbulletin.org/forum/showthread.php?t=131650



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.

Application Features: See the UCCASS site for full details. After testing several survey apps, I find this one to be the best:

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:
o File changes: None
o DB changes: No changes, 19 new tables

Installation:
  • Unpack the included file
  • Copy vbsurvey_install.php to your admincp directory
  • Copy survey.php to your main forum directory
  • Copy the survey directory below your forum directory (cannot change the directory name)
  • run the vbsurvey_install.php script in the admincp directory
  • Go to AdminCP => vBulletin Options => vB Survey (UCCASS) and set the toptions for acess 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
Upgrade Instructions:
If you are upgrading from vB 3.0.x to vB 3.5 and already had this hack installed, all you need to do is download the zip file, and re-uploade all the files to over-write the old ones.

Added in v1.7.1 (August 26th, 2005
  • Hide edit menu if user not allowed to edit surveys.

Added in v1.7 (August 7th, 2005
  • Bug fix in editing answer types.

Added in v1.6 (June 12th, 2005
  • Upgraded for vB 3.5 beta
  • Upgrad instructions: If you already have vB Survey 1.5 installed, you just need to upload all files, but no need to run the upgrade script.

Added in v1.5 (June 7th, 2005
  • Added a new answer type R, for Regular Expressions (REGEX). This will allow new types to be defined for answers, with controlled format. If the question is required, users will receive an error messages, until they enter the proper format. If the question is optional, the users will only get an error if they try to answer the question, but with the wrong format.
    Note: You can disable REGEX type questions by editing the templates.
  • The Size of type 'S' (Sentence) can now be changed, and no longer hardcoded as 50 characters.
  • To upgrade, you will need to run the upgrade option in the installation script and re-upload all the files.

Added in v1.3 (June 5th, 2005
  • Added a new answer type D, for Dates. This will show 3 dropdown lists for day, month, year, to ensure a uniform formate for dates entered by the user, instead of a text box.
  • Fixed a bug in the anonymous message display. It would state survey is not anonymous, when it actually is.
  • To upgrade, just re-upload the files (classes and templates directories)


Added in v1.2 (June 4th, 2005)
  • Removed the "Previous page" button, if the page is the first page of a survey.
  • Answers in the new/edit answer page are sorted by the numeric value. This allows you to add a later value, but set the order higher, without re-editing the whole list to arrange it.
  • Fixed a bug in quotes and escapes in the answer types edit.
  • Upgrade instructions: Just re-upload the classes directory.

Added in v1.1 (June 4th, 2005)
  • Added anonymity option. This is decided when creating the survey. Once set, it cannot be changed. If the survey is not anonymous, users will see on the survey intro a message that they survey is not anonymous, and that their usernames will show in the results table. The results table will show the usernames and a link to their profile.
  • Added Hidden option: By default, all active surveys show up on the main page as available surveys. If you set the survey propert to hidden, the survey can still be active, but not show up for members. This can be useful if you want to email the link to a selected user group. Admins and the survey author will still be able to see hidden surveys.
  • Navbar update to list the various locations in the survey pages.
  • The previous version showed the "no permission" to guests. Now you can allow guests to view the surveys and results by putting usergoup 0 in the admin panel in usergroups who may see the results. But other priviliges will be ignored.
  • A couple of bug fixes
  • Upgrade instructions: Just re-upload all the files, including survey.php

Notes:
The "do not remove" comment on the copyright link in the footer is from the original UCCASS footer template. You may contac the original author, John W. Holmes, for permission to remove the copyright notice, he's willing to talk according to their support forum.

Please click Install if you have installed this mod.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	1.jpg
Views:	2622
Size:	192.6 KB
ID:	27046   Click image for larger version

Name:	2.jpg
Views:	2403
Size:	91.6 KB
ID:	27047   Click image for larger version

Name:	3.jpg
Views:	2540
Size:	140.1 KB
ID:	27048   Click image for larger version

Name:	4.jpg
Views:	2452
Size:	124.7 KB
ID:	27049  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Major Additions vB Survey: Add a full-featured survey tool to your forum Spikeman vBulletin 3.6 Add-ons 251 25 Sep 2015 05:00
vB Survey (UCCASS Survey app integration) tamarian vBulletin 3.0 Full Releases 101 31 Jul 2006 18:25

  #151  
Old 14 Feb 2006, 06:40
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Strat, I had the same error. It had to do with getting the permissions on the files right. It's a real PITA, especially if you use FTP Voyager. Hard to really chmod things.

Make sure that your folders are 755, and that ALL of your templates (.tpl files), in ALL of the various folders, are chmod 744.

It does work, and it's one hell of a tool. Impressive.
__________________
russbo.com
Reply With Quote
  #152  
Old 14 Feb 2006, 23:14
StuartDH StuartDH is offline
 
Join Date: Oct 2005
I've tried installing a couple times and have done everything in the install instructions, but I keep getting the error:

WARNING: Cannot find default template path. Expecting: /home/wildabou/public_html/forums/includes/survey/templates/Default

I've duplicated the survey folder to the above address and chmod 777, but still no luck...any ideas?

Cheers
Reply With Quote
  #153  
Old 14 Feb 2006, 23:45
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Originally Posted by StuartDH
I've tried installing a couple times and have done everything in the install instructions, but I keep getting the error:

WARNING: Cannot find default template path. Expecting: /home/wildabou/public_html/forums/includes/survey/templates/Default

I've duplicated the survey folder to the above address and chmod 777, but still no luck...any ideas?

Cheers
Stuart, did you upload the all the files in the Survey folder? The hack calls to those .tpl template files quite a bit, and those files have to be chmodded 744 so that they can be used.

Your folders can be 755, but all those template files in the default, etc folders have to be 744.

And why did you put the survey folder in forums/ includes/? As I remember, is should go in the forum folder (http://www.xxxxx.com/forum/survey/). Not in the includes folder.

Hope this helps. I got mine to work, after a while.
__________________
russbo.com
Reply With Quote
  #154  
Old 17 Feb 2006, 20:30
Frank Butcher Frank Butcher is offline
 
Join Date: Feb 2006
What is meant by "Copy the survey directory below your forum directory (cannot change the directory name)"
Reply With Quote
  #155  
Old 17 Feb 2006, 21:53
bashy bashy is offline
 
Join Date: Nov 2005
Hi

I have installed this

Installation went very well....
When i click on any links such as create, or view a example survey it just refreshes the page... The only thing i can see is the documentations when i click that link...
I have set all the permissions in the admincp
Any advice please?
I am running VB 3.5.3
__________________
Bashy

Bashys Place ~ Bashys Hosting
Reply With Quote
  #156  
Old 18 Feb 2006, 02:28
cmiller1014 cmiller1014 is offline
 
Join Date: May 2004
Anyone have luck on 3.5.3?
Reply With Quote
  #157  
Old 18 Feb 2006, 20:02
zweefer zweefer is offline
 
Join Date: Jan 2006
okay, I did a quick search, and found nothing, then an even quicker scan over the posts, and did not see my problem, so here goes...
When a member quits out of a survey and then goes back to retake/ finish the survey they can't. it says " You have quit answering this survey. Your answers were not saved." is there any way to change this so members who quit can re-take the survey?
Reply With Quote
  #158  
Old 19 Feb 2006, 10:58
StuartDH StuartDH is offline
 
Join Date: Oct 2005
Originally Posted by docvader
Stuart, did you upload the all the files in the Survey folder? The hack calls to those .tpl template files quite a bit, and those files have to be chmodded 744 so that they can be used.

Your folders can be 755, but all those template files in the default, etc folders have to be 744.

And why did you put the survey folder in forums/ includes/? As I remember, is should go in the forum folder (http://www.xxxxx.com/forum/survey/). Not in the includes folder.

Hope this helps. I got mine to work, after a while.
Hi docvader,

I uploaded all of the survey folder into the forums folder, but for some reason it seems to be looking for the templates etc in forums/includes/ ???

I just tried a fresh install, chmod -R 744 for the survey folder via the CLI, but it came up with the error:

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

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

Fatal error: main(): Failed opening required 'survey/classes/main.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wildabou/public_html/forums/survey.php on line 8

I then -R chmod the survey folder to 777 and haven't changed the content of any of the files, the error disappears, but it's still looking for the templates /includes.

Any ideas?

Last edited by StuartDH; 19 Feb 2006 at 11:06.
Reply With Quote
  #159  
Old 02 Mar 2006, 16:54
jaybolt jaybolt is offline
 
Join Date: Jun 2004
Originally Posted by StuartDH
Hi docvader,

I uploaded all of the survey folder into the forums folder, but for some reason it seems to be looking for the templates etc in forums/includes/ ???

I just tried a fresh install, chmod -R 744 for the survey folder via the CLI, but it came up with the error:

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

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

Fatal error: main(): Failed opening required 'survey/classes/main.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wildabou/public_html/forums/survey.php on line 8

I then -R chmod the survey folder to 777 and haven't changed the content of any of the files, the error disappears, but it's still looking for the templates /includes.

Any ideas?
I got the same error regarding template needing to be in the includes folder. I copied the survey folder in its entirity there, chmodded to 777 and it works.
__________________
Regards

Jay
____________________
YD Scuba Forums
Reply With Quote
  #160  
Old 02 Mar 2006, 17:30
DS MrSinister's Avatar
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Originally Posted by cmiller1014
Anyone have luck on 3.5.3?

yes and 3.5.4
Reply With Quote
  #161  
Old 02 Mar 2006, 20:17
klaush klaush is offline
 
Join Date: Oct 2005
Hi to ya all!

So the installation went fine. The page is showing but i have the same as bashy, i think, i click on "Create New Survey" and the page refreshes and thaīs it.

Even if i try to view the existing surveys: the page refreshes and thatīs it.

All permissions are set.

So who installed on 3.5.4?

Thanks for your help.
__________________
Greetings

Klaus
Reply With Quote
  #162  
Old 02 Mar 2006, 22:43
Frank Butcher Frank Butcher is offline
 
Join Date: Feb 2006
I get this message every time above the survey, any clues ?

Warning: Smarty error: problem writing './survey/smarty/templates_c/Default^available_surveys.tpl.' in /survey/smarty/Smarty.class.php on line 589
Reply With Quote
  #163  
Old 02 Mar 2006, 23:32
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by klaush
Hi to ya all!

So the installation went fine. The page is showing but i have the same as bashy, i think, i click on "Create New Survey" and the page refreshes and thaīs it.

Even if i try to view the existing surveys: the page refreshes and thatīs it.

All permissions are set.

So who installed on 3.5.4?

Thanks for your help.
Check your apache error logs. There may not be enough memory for PHP
Reply With Quote
  #164  
Old 02 Mar 2006, 23:33
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by Frank Butcher
I get this message every time above the survey, any clues ?

Warning: Smarty error: problem writing './survey/smarty/templates_c/Default^available_surveys.tpl.' in /survey/smarty/Smarty.class.php on line 589
Did you follow this step:

cd /path/to/main/forum
chown -R apache:apache survey
chmod -R 744 survey
Reply With Quote
  #165  
Old 02 Mar 2006, 23:44
klaush klaush is offline
 
Join Date: Oct 2005
Originally Posted by tamarian
Check your apache error logs. There may not be enough memory for PHP
The idea with the apache-log was not so bad! :-)

I found:

PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'survey/classes/main.class.php' (include_path='.:') in /home/www/xxx/xxxx/vbulletin/survey.php on line 8

So what is to do?

Any hint?

Thanks!
__________________
Greetings

Klaus
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:22.

Layout Options | Width: Wide Color: