Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

 
 
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
  #42  
Old 11-12-2011, 08:20 PM
Littlerocket Littlerocket is offline
 
Join Date: Dec 2006
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snoopytas View Post
Here is a version updated for 4.1.7

Published as per OP Re-usable code

BTW: It worked for me because we had modified it for our site. This is a generic 4.1.7 version.
Thanks for that, and the PM!
Reply With Quote
  #43  
Old 11-21-2011, 03:35 PM
GONUMBER6's Avatar
GONUMBER6 GONUMBER6 is offline
 
Join Date: Jan 2010
Location: Sunny Arizona
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working in 4.1.8 do you think the 4.1.7 will work?

EDIT: Yes, it worked.
Reply With Quote
  #44  
Old 12-07-2011, 12:56 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The hack works for 4.1.8 using my code -- https://vborg.vbsupport.ru/showpost....6&postcount=38

Kym
Reply With Quote
  #45  
Old 12-10-2011, 10:33 PM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way that you can set only certain usergroups to have the ability to create a poll that hides the results? I want to be able to do it as admin, but not allow others.
Reply With Quote
  #46  
Old 12-11-2011, 07:50 AM
Sakera Sakera is offline
 
Join Date: May 2002
Location: Trondheim, Norway
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Vissa, no this was not build in to the original code. Would have to be done as custom plugin code, put isn't too advanced.
Reply With Quote
  #47  
Old 12-11-2011, 08:13 PM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm had a PM dialogue with Sakera ... he will post my 4.1.7+ code in the main product header :up:
Reply With Quote
Благодарность от:
Sakera
  #48  
Old 01-04-2012, 05:12 PM
compuminus compuminus is offline
 
Join Date: Apr 2008
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The version 4.1.7/1.5 update breaks forum rendering for me. I had to uninstall and then re-install the older version. I see that a <ul class="checkradio group"> tag was added without a corresponding </ul> closing tag...could this be the problem?
Reply With Quote
  #49  
Old 01-04-2012, 10:37 PM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The UL tag is closed, have a look at the code.
Something else must be happening.
It works fine for me on 4.1.8 (and did on 4.1.7).

BTW the code is <ul class="group checkradio rightcol"> -- check what was downloaded?
Reply With Quote
  #50  
Old 01-13-2012, 08:32 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When view the poll with results hidden the text the results are hidden is not lined up with the poll option, but are offset down from it. I've checked this on firefox, IE, and chrome with 4.1.8. Aside from that it works great.

EDIT: It would also be nice if the results are hidden text was shown only once per poll instead of once per option.
Reply With Quote
  #51  
Old 01-30-2012, 03:50 PM
OcR Envy's Avatar
OcR Envy OcR Envy is offline
 
Join Date: May 2008
Location: Boston
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by texasteamplayer View Post
I like this. I suggest that you add the option "show results once a user has voted". that's a pretty common setting.

This is really what I am looking for as well. I looked at the code posted but I don't want to over write the other options I just want this option added. Let's see it!
Reply With Quote
 

Thread Tools

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:41 AM.


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.04997 seconds
  • Memory Usage 2,325KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete