PDA

View Full Version : vBSurvey v1.0


Zero Tolerance
11-15-2004, 10:00 PM
vBSurvey

What is it?
vBSurvey is a system in which you may create your own surveys on your forum. You create a survey and add questions to the survey, that people may answer if they wish.

Features

Forum Side
View All "Open" Surveys
Take Survey Don't have to complete all questions
View Survey Stats Only shows stats for questions the user has answered themself

Admin Side
Add A New Survey Input Survey Name Choose If Survey Is Open Or Closed
Control Surveys (Edit/Delete)
Add A New Question Choose which survey the question is for Input Question Name Input available options for question
Control Questions (Edit/Delete)



Install will take you hardly any time at all, and if your wanting to make surveys on your forum for whatever reason, ie: Members can vote for a decision which is uncertain between your staff. Then this is just great for that application.

Skin/DB/Phrase Modifications/Additions All Automatic

If you have a question please post below, enjoy :)

- Zero Tolerance

HiDeo
11-16-2004, 08:29 PM
Really nice job, thanks for releasing it ;)

rex_b
11-16-2004, 08:41 PM
very close to a quiz hack

Zero Tolerance
11-16-2004, 08:49 PM
very close to a quiz hack
I suppose a little modification and it could be a quiz hack really :P

- Zero Tolerance

Surtain23
11-16-2004, 09:42 PM
Great hack! Will be installing...

Koutaru
11-16-2004, 10:29 PM
Excellent work as usual Zero! :)

bendigo-tech
11-17-2004, 01:07 AM
Great job... thanks a lot!

alkatraz
11-17-2004, 02:28 AM
fantastic hack, VERY useful
thank you

Natch
11-17-2004, 04:03 AM
OMG!

Well done man... nice job!

Did you build it from the ground up, or did you customise a GPL package to talk to vB properly?

Zero Tolerance
11-17-2004, 04:06 AM
OMG!

Well done man... nice job!

Did you build it from the ground up, or did you customise a GPL package to talk to vB properly?
I have no idea what you meant by "or did you customise a GPL package to talk to vB properly?" .. either way, i made it from scratch =)

- Zero Tolerance

Skyline_GT
11-17-2004, 04:18 AM
oh my..
I like this!!

moley
11-17-2004, 04:58 AM
thanks a lot this should be a great addition

yinyang
11-17-2004, 07:55 AM
ok, i'm going to appear really noobish for asking this, but how is this different from the polling sytem?

Zero Tolerance
11-17-2004, 08:04 AM
ok, i'm going to appear really noobish for asking this, but how is this different from the polling sytem?
It is similar, but however it is seperate, and it can have multiple questions where as a poll would only have one question. And only administrators may control the Surveys.

But then you must ask yourself, what is a survey? A poll!

- Zero Tolerance

Cheertobi
11-17-2004, 11:43 AM
Hi,

great Hack, is it possible to view the stats, but only admins can see the usernames who voted?!

Regards,

Tobi

Polo
11-17-2004, 03:02 PM
will install ;)

AlexanderT
11-17-2004, 06:49 PM
I won't use this hack, but let me congratulate you... you got some real vB Hacking talent, ZT!

Freezerator
11-18-2004, 06:11 AM
Tnx, this is great that you maked this! :)

Tradjick
11-19-2004, 01:29 AM
Great idea! I always wished some extension to the "poll feature in vB". Thank you Zero Tolerance!!!

SaN-DeeP
11-19-2004, 04:50 AM
i was about to post a request for a survey modification :) you came out with it.
thanx for the efforts will test it and install ASAP :)


Regards,

draculanowaday
11-19-2004, 10:41 AM
hix. I did as you asked in readme file but i just recived a blank page.

Zero Tolerance
11-19-2004, 01:58 PM
hix. I did as you asked in readme file but i just recived a blank page.
The templates install on your default skin, change your default skin to another and run the skin install part again to add the templates on other skins you may have :)

- Zero Tolerance

alkatraz
11-19-2004, 08:01 PM
The templates install on your default skin, change your default skin to another and run the skin install part again to add the templates on other skins you may have :)

- Zero Tolerance
was just about to ask that, that worked for me

great script and installer! works perfectly (1 suggestion, add a selector for the vbstyle to modifiy)

thank you!!

Zero Tolerance
11-21-2004, 03:33 PM
was just about to ask that, that worked for me

great script and installer! works perfectly (1 suggestion, add a selector for the vbstyle to modifiy)

thank you!!
Yeah i will do that in future, stops confusion and extra work :)

- Zero Tolerance

Loki12
11-21-2004, 03:59 PM
Fantastic! Just what I needed....

Cheertobi
11-22-2004, 04:03 PM
Hi,

is it possible to view the stats, but only admins can see the usernames who voted?!

Regards,

Tobias

alkatraz
11-25-2004, 03:04 AM
Hi,

is it possible to view the stats, but only admins can see the usernames who voted?!

Regards,

Tobias
Beaten to the punch again!

Just discovered that my members can see who voted, I'd love an option for it to be visable to admins only.

Just wanted to mention again, this is a great hack for doing market research and R&D, thanks a ton!

akiy
11-25-2004, 03:39 AM
Just discovered that my members can see who voted, I'd love an option for it to be visable to admins only. It looks like you're going to have to modify the code as the table rows/cells that make up the "Who voted" row isn't template-ized.

Any way, here's one way to do this if you only want Administrators (usergroupid = 6) to see the stats:

Replace:
$Options .= "<tr>
<td width='80%' class='alt2'>{$opt['q']}</td>
<td width='20%' class='alt1' align='center'>This has had {$opt['votes']} vote(s)</td>
</tr>
<tr>
<td width='100%' class='alt1' colspan='2'><b>Who Voted:</b> {$thisVoted}</td>
</tr>
\n";
with:
$Options .= "<tr>
<td width='80%' class='alt2'>{$opt['q']}</td>
<td width='20%' class='alt1' align='center'>This has had {$opt['votes']} vote(s)</td>
</tr>";
if ($bbuserinfo[usergroupid] == 6) {
$Options .="<tr>
<td width='100%' class='alt1' colspan='2'><b>Who Voted:</b> {$thisVoted}</td>
</tr>
\n";
}
You can modify the "if" confitional to include more usergroupids (eg "if ($bbuserinfo[usergroupid] == 6 || $bbuserinfo[usergroupid] == 7)") if you want other usergroups to see the stats...

Hope that helps!

Cheertobi
11-25-2004, 09:24 AM
Hi,

@akiy
yep, found that out last night and worked great! Thanks for helping anyway.

Regards,

Tobias

alkatraz
11-25-2004, 08:55 PM
awesome! thx for the support

one problem in your fix tho
missing a } to close the if condition. added one after \n"; and it works great

akiy
11-26-2004, 12:47 AM
awesome! thx for the support

one problem in your fix tho
missing a } to close the if condition. added one after \n"; and it works great Oops -- indeed! I've edited the above post. Thanks for the sharp eye.

mcyates
11-26-2004, 04:02 PM
It would look better if the results where also in graph format like the polls in the messages.

Kagen
11-30-2004, 02:14 PM
make a quiz hack :D that'll increase some popularity there ZT u always had useful hacks :D

Imperial Fritz
11-30-2004, 10:33 PM
Great hack, installed, however:

My board is not english therefore I found the hack not easy for multilingual boards, i.e. I have to go into each file and translate the phrases, or better, replace the plain text with vbphrases, which should be done by the installer.

I'd like to see coloured bars showing the number of votes :)


edit: since I'm reworking all files to convert plain text into vbphrases, I can post them when I finish (but you'll have to do the phrase population yourselves).

Edric
12-06-2004, 02:17 PM
Does this hack work with VB 3.0.1? I'd like to implement it.

Edric
12-06-2004, 03:32 PM
Ignore my previous questions, it works well on 3.0.1 as well.

Edric
12-06-2004, 03:39 PM
It looks like you're going to have to modify the code as the table rows/cells that make up the "Who voted" row isn't template-ized.

Any way, here's one way to do this if you only want Administrators (usergroupid = 6) to see the stats:

Replace:
$Options .= "<tr>
<td width='80%' class='alt2'>{$opt['q']}</td>
<td width='20%' class='alt1' align='center'>This has had {$opt['votes']} vote(s)</td>
</tr>
<tr>
<td width='100%' class='alt1' colspan='2'><b>Who Voted:</b> {$thisVoted}</td>
</tr>
\n";
with:
$Options .= "<tr>
<td width='80%' class='alt2'>{$opt['q']}</td>
<td width='20%' class='alt1' align='center'>This has had {$opt['votes']} vote(s)</td>
</tr>";
if ($bbuserinfo[usergroupid] == 6) {
$Options .="<tr>
<td width='100%' class='alt1' colspan='2'><b>Who Voted:</b> {$thisVoted}</td>
</tr>
\n";
}
You can modify the "if" confitional to include more usergroupids (eg "if ($bbuserinfo[usergroupid] == 6 || $bbuserinfo[usergroupid] == 7)") if you want other usergroups to see the stats...

Hope that helps!


Where do you add/replace such code?

spence2
12-06-2004, 03:59 PM
With three of your hacks installed, ZT, my board's beginning to look like a tribute to your great coding!

Thank you so much for sharing your work.

You're aces.

akiy
12-06-2004, 05:30 PM
Where do you add/replace such code?
In vBSurvey.php.

Edric
12-07-2004, 11:09 AM
Ok, worked fine akiy, survey anonymous.

However it seemed that not everyone of my members can access the survey page, many get a blank page, for me and other members it works fine however, perfectly I would say. Any known related problem to this one?

SVTBlackLight01
12-07-2004, 07:15 PM
It looks like you haven't added the templates to all your styles.

gmarik
12-07-2004, 08:39 PM
A big one indeed!

Edric
12-08-2004, 08:42 AM
It looks like you haven't added the templates to all your styles.

Yes, thanks! I probably did it on the default style exclusively. I will try what you imply and report back with the results, most probably it wil work. :)

Edric
12-08-2004, 09:15 AM
Unfortunately it does not appear to work. My style sets are in a hierarchical structure therefore modifying the first should make it work. This is not so, it works perfectly fine with the style sets I modified in the first instance of installation however when I do the code changes in the template navbar of the main style set the results are the same.

Any ideas of what I am doing wrong?

The only template I see listed in the instruction text file is navbar, is that correct?

Edric
12-09-2004, 10:45 AM
I believe that I have to re-install the hack for it to work on all styles. In doing so, would I lose the surveys I created?

alzibub
12-11-2004, 04:54 PM
Think I will install this one - thanks for the code!

j_86
01-08-2005, 05:04 PM
This hack is VB 3.05 compatiable.

MikaK
01-11-2005, 01:52 PM
Interesting hack. Going to give it a try. *installs*

1) Would it be difficult to make the navbar survey link to show by the <if> conditional ie. the link would show only if a survey is active?

2) Would it be difficult to mod this further so that anyone (from allowed user groups) could add questions and the related options while anyone (again, from the alllowed groups) would be entitled to vote and view the stats?




=M=

lange
01-26-2005, 09:14 PM
I'll try it. Thanks.

MajorFm.com
01-30-2005, 04:18 PM
can this be made a bit more interesting e.g. we have all seen those chain mails that go round sayin how sexy are you or how much of a pimp are you, the user answers a series of questions then it tells the user how much % they are pimped out or something like that... this is useful for joke e-mails and marketing to increase traffic...

A good example of this can be seen at:
http://www.channel4.com/life/microsites/G/gayometer/gayometer.html

Intex
02-28-2005, 07:00 AM
Nice hack Zero_Telerance.

Is it possible to have a field where users can type in a response? This would be extremely useful and allow the admins to capture specific feedback that's not a menu choice as such.

vulture
03-28-2005, 02:06 PM
Nice hack Zero_Telerance.

Is it possible to have a field where users can type in a response? This would be extremely useful and allow the admins to capture specific feedback that's not a menu choice as such.

That, and would it be possible for multi-select checkboxes to capture responses with more than one answer?

CommunityZ
04-04-2005, 03:30 PM
How to uninstall this hacks?
http://YOURSITE.COM/FORUMS/admincp/install_vbsurvey.php
I need to uninstall all files,db,templates that install_vbsurvey.php altered.

mclark2112
04-11-2005, 06:22 PM
Is this limited to yes/no or multiple choice questions? T would like to add a text box field for addt'l comments.

Kihon Kata
04-16-2005, 03:39 PM
INSTALLED! How can I allow my users to do multiple answers? (check off more than one)

carolmyt
04-29-2005, 04:08 PM
I would like to second (third?) the request for a fill-in response option.

Zero Tolerance
04-30-2005, 04:05 AM
This mod is obsolete now really, my new quiz system can do what most of you are asking for and more: https://vborg.vbsupport.ru/showthread.php?t=80780

- Zero Tolerance