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)

kypdurron 12-29-2001 01:36 AM

you mean the changes to Mysql DB?
I guess..do the following(prompt in limegreen,type commands in skyblue):

WARNING! TRY AT YOUR OWN RISK!

$mysql (you may have to do mysql -u <userid> -p, then type the admin password)
mysql>connect vbulletin; (or whatever the database is called)
mysql>TABLE pollvote ADD showvote TINYINT(1) DEFAULT "0" NOT NULL;

To verify it worked, do
mysql>select * from pollvote;
you should see something like:
+------------+--------+--------+---------------+--------------+-------------+
| pollvoteid | pollid | userid | votedate | voteoption | showvote |
+------------+--------+--------+----------------+----------+----------+
| 1 | 1 | 1 | 1009029051 | 3 | 0 |
+------------+--------+--------+------------+------------+----------+
mysql>exit;

Tommy Boy 01-02-2002 08:05 PM

Good hack, Konqueror. And nice catch, kypdurron!

BTW: I think you forgot to modify the "pollresults" template as well... ;)

SirSteve 01-12-2002 02:09 PM

Not sure why but if you choose not to make your vote public, it still shows up as if you choose yes...

kypdurron 01-12-2002 09:55 PM

SirSteve: make the modifications I suggested to fix this.

Basically, I added "AND SHOWVOTE=1" to the two lines shown above.

SirSteve 01-12-2002 11:55 PM

Thanks. That worked. However, look here:

http://www.sirstevesguide.com/vbport...oted&pollid=23

You don't have to be registered to vote so I think it's not showing the text because of that. Can you display the # of guests that votes? Like:

It was OK, but distribution continued to be a problem for me.:
JediTricks master jedi The Eradicator Guests (25 votes)

or something like that.

Lucky 01-13-2002 01:50 AM

Great Tool!

Thanks :)

trainer 01-20-2002 03:43 PM

great hack! this would be perfect for my site if it could be setup so only admins/supermods can see the results of who voted.

any ideas if that could be easily done?

thanks a pile

glenvw 02-11-2002 03:43 PM

This looks great.

Two questions:

Can it be set up so that the voter has no choice. That is I want all votes to be made public.

Also, I see talk about the fact that anyone can vote. Can it be set up so that only registered members can vote?

Thank you!

Glen

trainer 02-11-2002 06:32 PM

[QUOTE]Originally posted by glenvw
This looks great.

Two questions:

Can it be set up so that the voter has no choice. That is I want all votes to be made public.

Also, I see talk about the fact that anyone can vote. Can it be set up so that only registered members can vote?

Thank you!

Glen

Sufian 02-07-2003 10:14 PM

Great hack, it does what I need, however, I just want who voted and not the option they voted for..how can I modify this hack for that?


All times are GMT. The time now is 09:52 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.01222 seconds
  • Memory Usage 1,730KB
  • 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)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