vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Reset Poll Votes? (https://vborg.vbsupport.ru/showthread.php?t=310690)

dj83 04-22-2014 07:39 PM

Reset Poll Votes?
 
Hello,

I am using vb 4.2.1 and i'm just wondering if there are any mods out there that would allow me to delete all votes from a poll so members can vote again?

tbworld 04-22-2014 08:51 PM

Quote:

Originally Posted by dj83 (Post 2494187)
I am using vb 4.2.1 and i'm just wondering if there are any mods out there that would allow me to delete all votes from a poll so members can vote again?

No MOD that I can find, but this is not difficult via the database. See table 'pollvote'. You can easily write a simple query to delete the poll votes for a poll once you know the ID. The ID can easily be found in table 'poll'.

This may not undo, and/or cause problems in statistical calculations so you will have to test carefully. Please make a backup of your database before making changes to your database or installing a new MOD.

Note(s)
1.) If you delete a 'poll' via the database you must also set the field 'pollid = 0' in the associated thread in 'thread' table. If you don't you will have a skeletal 'poll' left in the thread.
2.) The users last vote may still reside in the activity stream, depends on the pruning date. This is only a possible visual ambiquity, since even if you delete the poll on the thread the activity link will just point to the thread without an error. (Oops - Just remembered I added polls to the activity stream -- this is not a default feature on v4.2.1)


All times are GMT. The time now is 09:16 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.01142 seconds
  • Memory Usage 1,711KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete