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
  #22  
Old 07-06-2005, 04:59 AM
zoomforce zoomforce is offline
 
Join Date: Mar 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey quick thing.. im totally new to php and SQL (dinasour from the CGI days) and have no idea how to enter the SQL table thing, i know this is a total newbie thing but is there an easy way to do it? do i do it from Vbulletin or through Cpanel?
Reply With Quote
  #23  
Old 07-06-2005, 05:46 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can run a SQL-command from your AdminCP->Import & Maintenance->Execute SQL Query.

If you don't see the above option, add your userid in the ./includes/config.php to the $canrunqueries variable.

Alternativly you can use something like phpMyAdmin if your host provides that.
Reply With Quote
  #24  
Old 07-06-2005, 05:54 AM
zoomforce zoomforce is offline
 
Join Date: Mar 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah i saw the Execute SQL Query option adn i went straight for it but i press it and it says i dont have permission, i will try and add my userid to the config file that should fix that. Thanks Marco.
Reply With Quote
  #25  
Old 07-06-2005, 07:32 AM
rapcriminals rapcriminals is offline
 
Join Date: Feb 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice installs...this will go great with my rap battle system hack.
Reply With Quote
  #26  
Old 07-23-2005, 10:22 AM
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Location: Libya
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack, everything goes ok, but when the poll is ended by time it still hidden, but if I close it manually it appears.

I want the results shows aotumaicaly when the poll time is end
Reply With Quote
  #27  
Old 08-14-2005, 06:50 AM
chikkoo chikkoo is offline
 
Join Date: Mar 2005
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a very nice hack, I have been using this in 3.0.7,
but now I am using 3.5.0 and I am really handicapped without this.
Anybody converting this Mod for 3.5.0???
Reply With Quote
  #28  
Old 08-14-2005, 12:13 PM
Hurricane Hurricane is offline
 
Join Date: Feb 2002
Location: Central Florida
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not yet running 3.5.0, but I will install it on my test server and see what I can come up with for you.
Reply With Quote
  #29  
Old 08-16-2005, 04:38 AM
ERuiz ERuiz is offline
 
Join Date: Feb 2005
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheMusicMan
I have also found a bug in this....

I installed onto vB303 which works fine except that when using vBadvanced and one has a random poll pulled into the portal page... if you have chosen to hide the results of this poll that is displayed on portal, you still see the bitmap and hence users can see the results of a poll which should be hidden.
Yup! I have the same problem. What needs to be done so that the poll displayed on the vbAdvanced home page does not display the results. Thanks in advance.
Reply With Quote
  #30  
Old 08-28-2005, 03:55 PM
chefsache chefsache is offline
 
Join Date: Jul 2005
Location: Germany
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi @all,

great job, thanks!! I click install... :squareeyed:

But my user could see the results before they vote...
Where is the mistake....i checked the installation
and every modifications is all right...

Thanks
chefsache
Reply With Quote
  #31  
Old 08-31-2005, 09:47 AM
chefsache chefsache is offline
 
Join Date: Jul 2005
Location: Germany
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi @ all...

No ideas?
Wich part can i check again for this problem?

Thanks a lot
Andreas
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 04:20 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.04750 seconds
  • Memory Usage 2,302KB
  • 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
  • (1)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • 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