Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[HTL] and [Normal] Hide Poll Results Details »»
[HTL] and [Normal] Hide Poll Results
Version: 1.1, by Hurricane Hurricane is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 04-06-2004 Last Update: 04-04-2005 Installs: 35
DB Changes
 
No support by the author.

Hide Poll Results
Version: V1.1
vB-version: 3.0.7
Developer: Glenn H. Shelton III
Install difficulty: Medium
File edits: 12
Template edits: 3



History & Hack Information
==========================
First of all, MAJOR credit goes to Firefly and Scott MacVicar for the original creation of this hack in VB2.

I attempted to just port this over to VB3, but that did not quite happen. Most of it was rewritten, but I could not have done it without the VB2 hack as a guide.

What is Hide Poll Results ver 1?
This hack allows you to choose whether or not you want the results of your poll displayed while the polls are open. It only allows the original poll poster, admins and mods of that form to view the results of the poll and none of the regular users. They can only view the poll if the poll is closed either by a admin/mod or the poll ends.

Testing
=======
Tested on vBulletin 3.0.0 Gold, across multiple hacked and unhacked installations.
Updated For vBulletin 3.0.7 on 04/05/2005

Thanks to
=========
Firefly and Scott MacVicar for the original VB2 version and the idea.
68 Z-28 for making the request for a VB3 version.
Boofo for telling me to make it happen.
pjk for the changes to the pollresults_table TEMPLATE

About me
========
This is my first public hack release. It seems all the good ideas for VB2 had already been done by the time I got there. I am not new to php and MySQL however and I hope this is not my last release.



HACK INSTALLATION DETAILS:
Files modified for this Hack:
poll.php
showthread.php

Templates modified for this Hack:
editpoll
newpoll
pollresults_table

DB Tables modified for this Hack:
poll

New DB columns for this Hack:
hidepoll


HACK UPGRADE DETAILS:
See the install file for the sections of:
Poll.php
FIND: (Around Line 677)

showthread.php
FIND: (Around Line 653)

pollresults_table TEMPLATE

No other changes were made from V1 to V1.1

Support is available in this thread only.

As always, if you install, please click the install button.

Thanks!

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 04-07-2004, 02:24 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent job! Clicking install.
Reply With Quote
  #3  
Old 04-14-2004, 12:56 PM
Chris Blount Chris Blount is offline
 
Join Date: Mar 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, we may have found a possible bug.

We created some polls and checked the "Hide results" checkbox AND the checkbox labeled "Make votes public: Displays all users who voted, and what choice they voted for".

All users cannot see the results but some of our users have reported that they can see the usernames of who voted in the polls while the polls are still open.

I really don't know if there is anything you can do about this but I thought I would report it anyway in case you have some idea why it is happening.
Reply With Quote
  #4  
Old 04-14-2004, 02:06 PM
Hurricane Hurricane is offline
 
Join Date: Feb 2002
Location: Central Florida
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris Blount
Okay, we may have found a possible bug.

We created some polls and checked the "Hide results" checkbox AND the checkbox labeled "Make votes public: Displays all users who voted, and what choice they voted for".

All users cannot see the results but some of our users have reported that they can see the usernames of who voted in the polls while the polls are still open.

I really don't know if there is anything you can do about this but I thought I would report it anyway in case you have some idea why it is happening.

That is not really a bug. You have just turned on 2 features. It is like telling it not to tell you how many times the light has been turned on, but show me who turned it on.

These 2 should not be used together.
Reply With Quote
  #5  
Old 05-18-2004, 10:27 AM
ZeroZone ZeroZone is offline
 
Join Date: Jan 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What should I modify to allow only admin to use this poll's option (hide result)?
Reply With Quote
  #6  
Old 10-26-2004, 07:09 AM
TheMusicMan's Avatar
TheMusicMan TheMusicMan is offline
 
Join Date: Oct 2002
Location: South Wales
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ZeroZone
What should I modify to allow only admin to use this poll's option (hide result)?
Has anyone installed and tested this hack on vB303...?
Reply With Quote
  #7  
Old 10-26-2004, 04:32 PM
TheMusicMan's Avatar
TheMusicMan TheMusicMan is offline
 
Join Date: Oct 2002
Location: South Wales
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hide Poll Results hack works with vB3.0.3

Today Colin F installed this hack firstly on my vB3.0.3 development/test board and it all worked OK. He then installed it onto my live www site here. It works fine.

The Hide Poll Results hack works 100% error free and though I am sure there are many good coders/developers on here, I can thoroughly recommend that anyone wanting any Mod installed you should really contact Colin F. His standard of work is superb, his customer relation skills are excellent, and he's a totally cool chap too.

He will certainly have all of my mod work... cheers Colin...
Reply With Quote
  #8  
Old 10-26-2004, 04:55 PM
HiDeo's Avatar
HiDeo HiDeo is offline
 
Join Date: Oct 2003
Posts: 306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this hack
Reply With Quote
  #9  
Old 11-02-2004, 11:04 AM
JamesFrost JamesFrost is offline
 
Join Date: Feb 2003
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great - is there a non HTL version?
Reply With Quote
  #10  
Old 11-02-2004, 11:05 AM
JamesFrost JamesFrost is offline
 
Join Date: Feb 2003
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JamesFrost
Looks great - is there a non HTL version?
ignore me - just read the readme
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 10:11 PM.


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.04500 seconds
  • Memory Usage 2,309KB
  • 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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_postinfo_query
  • fetch_postinfo
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete