Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Sakera's Hide Poll Results Details »»
Sakera's Hide Poll Results
Version: 1.5, by Sakera Sakera is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Category: End-User Options - Version: 4.1.8 Rating:
Released: 01-01-2010 Last Update: 12-10-2011 Installs: 175
DB Changes Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.


What is this?


This Modification lets your users hide poll results for everyone but Moderators and Administrators, and the thread owner himself. They can choose to hide the results forever, or to show them automatically when the thread is closed or hit timeout.

Please see attached screenshots to get an idea on how it works.


Features
- Hide poll results forever
- Hide poll results until poll is closed or poll hits timeout.
- Shows a notice to Users that see the results (Moderators, Admin and thread starter) that the results are hidden.
- Moderators and Admin's can change settings via 'Edit Poll'


Template Edits
All template edits are done automaticly when needed. Hopefully this doesn't break in situations with hacked templates, if so happens please notify me what hack caused the problem.


Version History:
  • 1.3 - First VB4 Release
  • 1.4 - 4.0.2 Release
  • 1.5 - 4.1.7 Release - Thanks to snoopytas
VB3 version of this hack: Click here.


Please click INSTALL if you use this hack.

Download Now

File Type: xml product-sakeras_hide_poll_results 1.4 PRE4.1.7.xml (11.8 KB, 62 views)
File Type: xml product-sakeras_hide_poll_results 1.5.xml (11.7 KB, 322 views)

Screenshots

File Type: jpg hidden.jpg (28.7 KB, 0 views)
File Type: jpg newpoll.jpg (71.3 KB, 0 views)
File Type: jpg results.jpg (17.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-03-2010, 04:16 AM
mitch84 mitch84 is offline
 
Join Date: Mar 2008
Location: france
Posts: 516
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good idea, installed, thx
Reply With Quote
  #3  
Old 01-03-2010, 09:32 AM
maximutt maximutt is offline
 
Join Date: Nov 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome Sakera! Thank you!

Is there a way to hide results from the thread starter as well? Basically, I'd like only Admin to see results. Even if it's putting a is_not_member conditional around a certain section of a template, any help you could give would be greatly appreciated.

One feature I'd like to request for any future updates would be the ability to hide/show results by usergroup(s).
Reply With Quote
  #4  
Old 01-03-2010, 11:52 AM
Sakera Sakera is offline
 
Join Date: May 2002
Location: Trondheim, Norway
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is simply a matter of removing

Code:
$vbulletin->userinfo['userid'] == $threadinfo['postuserid']
from the conditionals in some of the plugins, and the or separator of cource.

I do not have any imediate plans on extending this modification, other than fixing bugs etc. It's a simple construction put together to fit this exact need, and i think it's time vbulletin gave the poll system a little work instead of relying on a modification for such basic behaviour
Reply With Quote
  #5  
Old 01-03-2010, 03:49 PM
Veer Veer is offline
 
Join Date: Feb 2006
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sakera, thanks for the update.
Reply With Quote
  #6  
Old 01-06-2010, 01:48 PM
Drpepper99uk Drpepper99uk is offline
 
Join Date: Feb 2009
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Thomas,

Thanks for updating this mod, I really appreciate it as you know I use this mod a lot with my photography forums for my members to vote of which photo's they like best and having a cut off time period for voting and the results not shown till the end is great....why VB couldn't have this added themselves with 4.0 released is crazy!!!

Great work, Shame not all coders on here wish to updates their mods to support 4.0.

Mike.
Reply With Quote
  #7  
Old 01-14-2010, 02:36 PM
Sakera Sakera is offline
 
Join Date: May 2002
Location: Trondheim, Norway
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does everything work ok? Havent upgraded to v4 myself yet, so havent tested the modification properly myself
Reply With Quote
  #8  
Old 01-14-2010, 02:48 PM
Veer Veer is offline
 
Join Date: Feb 2006
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, works good on vb4 gold
Reply With Quote
  #9  
Old 01-19-2010, 11:42 PM
cooltechie cooltechie is offline
 
Join Date: Apr 2004
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't believe this is not included by default in vb4.

I tried to modify existing poll after installing mod but don't see option to hide results. Where should the settings be?
Reply With Quote
  #10  
Old 01-20-2010, 05:59 AM
ti07shadow ti07shadow is offline
 
Join Date: Apr 2008
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you should make it so after the vote is over or when you decide to, make it so you can make the results viewable..

What i want to do is make it so when I feel the vote is over or w/e I can use the edit poll function and uncheck the hide poll results and close the poll so users can see what the end result was. that way the poll remains private, yet at the end they can see the results.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05755 seconds
  • Memory Usage 2,320KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (5)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete