vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Who voted? (https://vborg.vbsupport.ru/showthread.php?t=33327)

Konqueror 12-17-2001 10:00 PM

Who voted? v1.1b

1.1b:
-----
Important bugfix thanks to kypdurron:
Votes did show up even when the voter chose not to make it public.
Added seperate instructions if you want all votes to be public.

1.1:
----
The hack now also works with multiple choice polls.
Displays a message when no public votes are found.

1.0a:
-----
Important bugfix. Somehow I forgot to include the database changes in the instructions.
If you've already installed version 1.0 please just run this MySQL query:
ALTER TABLE pollvote ADD showvote TINYINT(1) DEFAULT "0" NOT NULL;

1.0:
----
Initial release

This hack was requested at https://vborg.vbsupport.ru/showthrea...threadid=33239
Basically what this hack does is that it gives voters the option to select if their vote is to be made public. If they select yes, everyone can see what they voted for.
I'm not good at writing descriptions, so just go and have a look here:

http://www.stefanh3.f2s.com/hacks/whovoted/step1.jpg

http://www.stefanh3.f2s.com/hacks/whovoted/step2.jpg

http://www.stefanh3.f2s.com/hacks/whovoted/step3.jpg

Have fun! :)

LanciaStratos 12-18-2001 07:48 PM

Both me and my members thank you very much! Great hack! :D

Lesane 12-18-2001 08:00 PM

Thanks for the great hack Konqueror.

Tommy Boy 12-18-2001 08:04 PM

Excellent! :p

squawell 12-18-2001 11:00 PM

it's great!!

thankz~:D

Konqueror 12-19-2001 08:09 AM

Updated! Please everyone download the new instructions...

phase1 12-19-2001 05:11 PM

When I install this script and try to use it I get this error:
Fatal error: Call to undefined function: updateuserforum() in /hsphere/local/home/phase1/networking.phase1design.com/forums/poll.php on line 43

Anyone have a suggestion on how to fix, or does this script not work with old polls????

Konqueror 12-20-2001 08:09 AM

Updated version posted. This should also work for you now, phase1. :)

kypdurron 12-28-2001 06:57 PM

Great hack! one problem, however is that it doesn't work correctly.
It is displaying all votes, regardless of whether they are public or not.
I made the following additions to poll.php

PHP Code:

if ($votes $DB_site->query_first("SELECT pollid FROM pollvote
WHERE pollid='
$pollid' AND voteoption='$tmp'AND SHOWVOTE=1")) {
                     
$votes $DB_site->query("SELECT * FROM pollvote WHERE poll
id='
$pollid' AND voteoption='$tmp' AND SHOWVOTE=1 ORDER BY userid ASC"); 


atrl 12-29-2001 12:57 AM

I cant get the My SQL DB change right can anyone help by showing me a pic of what it should look like, im not sure of all the values? Please Help?


All times are GMT. The time now is 08:20 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
  • Page Generation 0.01174 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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