vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Hide Poll Results (https://vborg.vbsupport.ru/showthread.php?t=98957)

Chris M 10-20-2005 10:00 PM

Hide Poll Results
 
[high]Installation Instructions[/high]

Step 1: Upload the .xml file to the Product Manager
Step 2: Click [high]INSTALL[/high]:D

Requested by: https://vborg.vbsupport.ru/showthread.php?t=95019 (mrsbuzzy, 68 Z-28 & 1996 328ti)

[high]What does this Plugin do?[/high]

Basically, this will disable poll results from showing from everyone :devious:

[high]Are there any screenshots?[/high]

See my next post :)

[high]Version History:[/high]

1.0.0: First release
1.0.1: Added more functionality (Results shown when poll is closed, hidden while open); Corrected 3 bugs (2 phrases in the added template, pollresult_voted now cached in cache_templates) ; 1 template edit / overwrite required (pollresult_voted) to add new phrases;
1.0.2: Fixed another bug - Should allow you to vote on unvoted polls now :p
1.0.3: Fixed bug that unregistered users can see poll results

Chris

Chris M 10-21-2005 04:24 PM

[high]Screenshot[/high]

See attached :)

Chris

nexialys 10-21-2005 04:50 PM

kinda like something that will be used for HotM here.. lol

EDIT: would be good to add the TEXT in a <phrase> so we don't have any problem with translations.. :)

trancetopia 10-21-2005 05:01 PM

If a poll has been selected to close after x days, is there an option to to hide the results until the poll has been closed? If not, would this be easy to do?

Chris M 10-21-2005 05:10 PM

This is simply to hide polls - I plan to expand the functionality to perform more detailed instructions at a later date;

These will include:

- Hide poll until closing date
- Hide poll from specific usergroups
- Hide poll in specific forums

:)

Chris

trancetopia 10-21-2005 05:21 PM

Cheers Chris, sounds like exactly what I'm after - I'll wait until the later release.

Can I make a request - I'm not sure if this plugin is the right place for this but do you think it would be possible to add the ability to put a check in to close the thread if the poll has closed.

This may be out of scope of what this plugin does but thought I'd ask :)

Chris M 10-21-2005 05:32 PM

I'll consider adding it since it is to do with poll functionality :)

Chris

trancetopia 10-21-2005 05:55 PM

You are da man Chris... Really looking forward to this plugin now :)

Bad Bunny 10-21-2005 06:07 PM

Quote:

Originally Posted by Chris M
This is simply to hide polls - I plan to expand the functionality to perform more detailed instructions at a later date;

These will include:

- Hide poll until closing date
- Hide poll from specific usergroups
- Hide poll in specific forums

:)

Chris

That sounds great. It's a unique idea, and with the added functionality it will be great.

Chris M 10-21-2005 06:32 PM

I've already completed the first request - Now when the poll is closed, it will display the results and all the information previously forced into submission :)

My next update will be to add forum-specific and usergroup-specific controls and the ability to enable/disable all 3 new functionalities if you do not need them; I will then look into auto-closing threads after polls have closed :)

Chris

trancetopia 10-21-2005 10:36 PM

Quote:

Originally Posted by Chris M
I've already completed the first request - Now when the poll is closed, it will display the results and all the information previously forced into submission :)

My next update will be to add forum-specific and usergroup-specific controls and the ability to enable/disable all 3 new functionalities if you do not need them; I will then look into auto-closing threads after polls have closed :)

Chris

What can I say, you never find this service anywhere else. Thanks Chris, I'm off to install now.

Looking forward to the auto close feature :) This is going to be perfect for my room 101 forum :D

Another thought with the auto close feature, it would be great, no - it would be absolutely fantastic if a final post could be created before it was closed with a custom title and content that could be changed in the ACP somewhere.

I'm starting to feel guilty for taking up your time.

trancetopia 10-21-2005 10:42 PM

Chris - I just installed and have a problem. All of the polls in the forum have the following message regardless of if I have voted or not:

Thank you for Voting on this poll. The results will be announced shortly!

trancetopia 10-21-2005 10:44 PM

If it helps for debugging, the test poll I made was set to close in 2 days.

Update: Just changed the poll to 0 days but it stays the same so my 2 day bug theory is out the window :)

Another update: This only seems to not work for newly created polls

Chris M 10-21-2005 11:04 PM

Hrm I shall look into it - I only tested on a test-board so I couldn't check it didn't work elsewhere :p

I'll change it to a "BETA" hack until I resolve it lol :p

Chris

trancetopia 10-21-2005 11:07 PM

lol no probs, thanks Chris. Looking forward to the fix :)

Chris M 10-21-2005 11:11 PM

Ok it should be fixed now :)

Try the new attachment :p

Chris

steven s 10-22-2005 02:23 AM

This is cool but. . .
Unregistered guests can see the results.

Chris M 10-22-2005 11:13 AM

Quote:

Originally Posted by 1996 328ti
This is cool but. . .
Unregistered guests can see the results.

Indeed they could - I have corrected this in the latest version, 1.0.3 :)

Chris

Snake 10-22-2005 11:46 AM

Sweet, was looking for this. Thanks.

trancetopia 10-22-2005 01:16 PM

It's working a treat now Chris, many thanks. Hope you'll be able to add that auto closure feature ;)

Chris M 10-22-2005 01:44 PM

Glad it's working :) Next are forum-specific permissions - When I do usergroups it'll be an Extension, meh :p

Chris

steven s 10-25-2005 02:22 AM

What about hiding from unregistered guests.
Right now someone not logged in sees 'Thanks for Voting '

Chris M 10-25-2005 02:35 AM

In the [high]showthread_post_start[/high] plugin, change:
PHP Code:

if ($showvotedtemplate) {
    if (
$pollinfo['active']) {
        unset(
$poll);
        eval(
'$poll = "' fetch_template('pollresult_voted') . '";');
    }


to:
PHP Code:

if ($showvotedtemplate) {
    if (
$pollinfo['active']) {
        unset(
$poll);
        if (
$vbulletin->userinfo['userid']) {
            eval(
'$poll = "' fetch_template('pollresult_voted') . '";');
        } else {
            
$poll '';
        }
    }


That should work :)

Chris

steven s 10-25-2005 02:46 AM

Quote:

Originally Posted by Chris M
That should work :)

Certainly did, thanks!

Chris M 10-25-2005 02:48 AM

Your welcome :)

Chris

68 Z-28 10-26-2005 06:53 AM

This will be good for now. For the board I admin on the hide polls in specific forums would be AWESOME. This way I could just turn off the poll results in the "Truck of the month" forum where polls and voting take place.

Also, is it possible to add it where the poll starter can choose to hide the results or not? In previous versions, you'd just click a box, and the results would be hidden, reguardless of forum or usergroup(only forum mod, super mod, or admin could see results).

Thanks for gettin this done.

msgotit 10-28-2005 05:38 PM

This is awesome! Another thing to look at is having the option to turn it off. I know that takes a little more and probably a table edit, but sometimes I would like to hide it, others I would like to show it.

Great job!!

Simms 10-30-2005 05:06 PM

Awesome...been waiting for this. Installed and working, but like those above, I would *love* to have the option of whether I wanted the results hidden or not depending on the thread.

Either way, thanks!

Hurricane 10-31-2005 01:21 PM

Chris M, for hints and ideas, see my old (3.0.X) hack or even look back to the 2.X by Firefly and Scott MacVicar.

https://vborg.vbsupport.ru/showthread.php?p=496898

It may give you ideas on how to add the ability to select the hide.

68 Z-28 11-07-2005 03:07 AM

Any updates? :)

GamerzWorld 11-10-2005 08:25 PM

Quote:

Originally Posted by Chris M
I've already completed the first request - Now when the poll is closed, it will display the results and all the information previously forced into submission :)

My next update will be to add forum-specific and usergroup-specific controls and the ability to enable/disable all 3 new functionalities if you do not need them; I will then look into auto-closing threads after polls have closed :)

Chris

Any news :surprised:

68 Z-28 11-16-2005 02:39 AM

Patiently waiting. :)

chikkoo 11-25-2005 04:46 AM

I used this hack earlier in 3.0.7 it worked perfectly. But now with 3.5.1 it's giving me two problems

1) It hides the result of all existing polls in my forum. Whereas the earlier one was hiding the one poll I specify, because I want to leave result of some other polls to public.

2) Earlier after voing too the poll options used to display with '0' votes, and mentioning I have already voted. Not it's saying thanks, but not displaying the poll options. Is it the way it is functioning? I wish I poll options are displayed even after voting. I only want to hide the POLL RESULT of a Specific Poll, until the Closing.

Is it possible??

shoppingtelly 11-26-2005 02:45 PM

I would definetly make great use of this if it could be made to only hide results in a specific forum. :nervous:

chikkoo 12-06-2005 10:43 AM

No reply from anyone for long time.

Now, I am forced to Remove this Mod from my forum,
because it is not only hiding the poll I want, but also
hiding all the polls currently open, that I don't want.

Guys, Is it the way it work?

djnth 12-10-2005 04:35 AM

Does this mod work with v3.03?? Is it supposed to hide all polls or only polls that you choose to hide? Also when the poll closes the results are shown correct?

Thanks for the nice mod!!

steven s 12-10-2005 10:40 AM

Quote:

Originally Posted by djnth
Does this mod work with v3.03?? Is it supposed to hide all polls or only polls that you choose to hide? Also when the poll closes the results are shown correct?

Thanks for the nice mod!!

It hides all polls and only works with 3.5.x. BTW- You should be running 3.0.11.

Chris M 12-10-2005 01:17 PM

I will update this sometime in the week to make the following:

Hidden via usergroup permissions: If you have no usergroup permissions you can't see it until it closes
Hidden via forum selection: If you select to hide poll results in a particular forum they will be hidden to those who cannot see them
Hidden per poll: You can select each individual poll regardless of forum settings and hide it - Users with viewing permissions (i.e. Admins mostly) can view the results before it closes...

Chris

djnth 12-10-2005 02:06 PM

Nice!! Thanks for putting your time into this...you rock!!



Quote:

Originally Posted by Chris M
I will update this sometime in the week to make the following:

Hidden via usergroup permissions: If you have no usergroup permissions you can't see it until it closes
Hidden via forum selection: If you select to hide poll results in a particular forum they will be hidden to those who cannot see them
Hidden per poll: You can select each individual poll regardless of forum settings and hide it - Users with viewing permissions (i.e. Admins mostly) can view the results before it closes...

Chris


chikkoo 12-10-2005 02:55 PM

Thanks Thanks Thanks a Lot Chris M. I appreciate your valuable time & energy in this Mod.

BTW, in 3.0.x the options used to be viewable to all, but not the number of votes. Only Admin can view the votes/results. It was a good & easy. Think about it.

Quote:

Originally Posted by Chris M
I will update this sometime in the week to make the following:

Hidden via usergroup permissions: If you have no usergroup permissions you can't see it until it closes
Hidden via forum selection: If you select to hide poll results in a particular forum they will be hidden to those who cannot see them
Hidden per poll: You can select each individual poll regardless of forum settings and hide it - Users with viewing permissions (i.e. Admins mostly) can view the results before it closes...

Chris



All times are GMT. The time now is 04:45 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.01305 seconds
  • Memory Usage 1,829KB
  • 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
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete