vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBSurvey v1.0 (https://vborg.vbsupport.ru/showthread.php?t=71834)

Zero Tolerance 11-15-2004 10:00 PM

vBSurvey v1.0
 
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

Quote:

Originally Posted by rex_b
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

Quote:

Originally Posted by Natch
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

Quote:

Originally Posted by yinyang
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

Quote:

Originally Posted by draculanowaday
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

Quote:

Originally Posted by Zero Tolerance
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

Quote:

Originally Posted by alkatraz
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

Quote:

Originally Posted by Cheertobi
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

Quote:

Originally Posted by alkatraz
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:
Code:

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

                $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

Quote:

Originally Posted by alkatraz
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

Quote:

Originally Posted by akiy
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:
Code:

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

                $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

Quote:

Originally Posted by Edric
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?


All times are GMT. The time now is 08:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01486 seconds
  • Memory Usage 1,823KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete