vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=83038

vB Survey: Add a full-featured survey tool to your forum
by tamarian
14 Jun 2005 01:58

5 Attachment(s)
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.

FleaBag 14 Jun 2005 16:42

Truly oustanding - I look forward to installing this! :D

Beermonster 14 Jun 2005 17:16

I'm sure I can find a use for this, thanks

BLykMik 03 Jul 2005 06:22

Anyone know why I'd get a:

"Call to a member function on a non-object Fatal error: Call to a member function on a non-object in /home/www/mydomain/forums/admincp/vbsurvey_install.php on line 20

Error?

Lines 15-23 look like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Marco van Herwaarden 03 Jul 2005 07:08

What vB version are you running?

BLykMik 03 Jul 2005 07:11

I'm running 3.0.7....

From reading the release notes, I was under the impression that the ability to support 3.5beta was *added*...

Will it not work at all on 3.0.7? Is there an older hack that I would install instead?

Marco van Herwaarden 03 Jul 2005 07:26

None of the vB3.5 hacks will work on 3.0.x.

There have been too many internal changes.

tamarian 03 Jul 2005 12:36

[QUOTE=BLykMik]I'm running 3.0.7..../QUOTE]

There is a version for 3.0.7:

http://www.vbulletin.org/forum/showt...threadid=82384

BLykMik 03 Jul 2005 15:43

Thanks... sorry for my confusion.

tamarian 03 Jul 2005 17:09

Quote:

Originally Posted by BLykMik
Thanks... sorry for my confusion.

No problem. Enjoy :)

BLykMik 04 Jul 2005 03:31

I have a question about the operation of the survey...

Actually, before I ask, is there vBulletin specific documentation anywhere?

I'm trying to figure out how to make surveys only visible (taking and viewing results) by specified groups.

tamarian 04 Jul 2005 04:11

Quote:

Originally Posted by BLykMik
I have a question about the operation of the survey...

Actually, before I ask, is there vBulletin specific documentation anywhere?

No, just the default UCCASS documentation. Anyone interested in writing vB-specific documentation is welcome :)

Quote:

I'm trying to figure out how to make surveys only visible (taking and viewing results) by specified groups.
That's available through the admincp, "can take survey" and "can view results" options.

Neutral Singh 10 Jul 2005 13:50

Dear tamarian, you are truly awesome, love your all hack/extensions. Gives me another reason to upgrade to vB 3.5!! :devious:

Great Work !!

Best Regards

Neutral Singh 10 Jul 2005 14:16

I have not checked, is there any option where the completed survey can be posted to thread so that members can comment on these surveys. That would be awesome is the answers could directly ported to a new thread or an already posted thread.

Regards

tamarian 10 Jul 2005 14:58

Quote:

Originally Posted by Neutral Singh
I have not checked, is there any option where the completed survey can be posted to thread so that members can comment on these surveys. That would be awesome is the answers could directly ported to a new thread or an already posted thread.

No, not yet. But it does make sense. Might be worth making it as an addon for those who would like it to behave like a regular poll thread on vB.


All times are GMT. The time now is 18:44.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.