PDA

View Full Version : Show Thread Enhancements - Sakera's Hide Poll Results


Sakera
04-29-2007, 10:00 PM
What is this?

I looked around for a hack to hide poll results, but didn't find any hack that suited my needs, and let users hide results for specific polls.

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:[/size]
1.0 BETA - First beta release
1.1 - Fixed bug: "The results are hidden for everyone but ..." text showed for owner and moderators even if the results where not hidden.
1.2 - Fixed bug: Bug showing voters when it was a public poll. Bug with clear.gif revealing poll status.




Please click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=146115) if you use this hack.

tanyeri24
04-30-2007, 06:28 PM
you are the king! best work ever in the last days..

FreshFroot
04-30-2007, 06:31 PM
nice hack.. there is a hide poll hack.. but it doesn't have the extra features like yours. Good work on the hack :) Keep it up! :D

Sofia
04-30-2007, 07:47 PM
Thanks a lot for this hack :)

lovelypk
04-30-2007, 09:17 PM
looks good.

zeroxphilez
04-30-2007, 09:28 PM
will install it.:)

talenak
05-07-2007, 07:32 PM
Yay, Thanks!

henners
05-10-2007, 08:16 AM
installed, great idea!

ra7al
05-10-2007, 08:31 AM
i liked it

great job

** INSTALL **

Sakera
05-23-2007, 04:47 PM
Confirmed working with 3.6.7

simple_john
06-09-2007, 08:59 PM
great addition...

thanks

Skedoozy
06-12-2007, 11:33 PM
So I have this installed and no matter what settings I use it still has the "The results are hidden for everyone but Administrators, Moderators and thread starter." at the top of any poll I post, even if I have it set Always show results. I don't see it at the top of any one else's posted polls though.

o0Hubba0o
06-13-2007, 02:25 AM
This sounds like a mod I could use for sure. There was a mod put out in an older version of vB that made a user post in the thread before they could vote, if that could be added to this it would be even better.

As it is I'll have to install this one this weekend.

Sakera
06-13-2007, 02:33 PM
So I have this installed and no matter what settings I use it still has the "The results are hidden for everyone but Administrators, Moderators and thread starter." at the top of any poll I post, even if I have it set Always show results. I don't see it at the top of any one else's posted polls though.


Thanks. There was a small error in the script that now should be corrected. Please re-download the script, and update.

CMGU
06-13-2007, 02:35 PM
Thanks excellent hack

Shana
06-15-2007, 03:31 AM
Unable to add cookies, header already sent.
File: /hermes/web09/b2488/pow.djmessiah12/htdocs/knightsofmaple/forum/showthread.php(636) : eval()'d code
Line: 6

FuzzyWuzzy22
06-25-2007, 05:50 AM
I see a "1" or "2" depending on the hide option i picked.

Its above the forum logo when viewing hidden forum results

ahmednadir
06-25-2007, 05:55 AM
great kack.....installed

Sakera
06-25-2007, 01:33 PM
I see a "1" or "2" depending on the hide option i picked.

Its above the forum logo when viewing hidden forum results

Fixed. Re-download and re-install :)

FuzzyWuzzy22
06-25-2007, 04:12 PM
thanks very much :)

Freezerator
08-28-2007, 07:27 AM
Great hack, only your please click install link links to another hack :)

Dr.H
09-02-2007, 03:39 PM
This hack looks perfict. Is there a way to install it into 3.5?

edytwinky
09-05-2007, 12:57 AM
Works great!

MagpieTear
09-19-2007, 11:41 PM
Just the ticket for my Bike of the Month poll! :up:

oicyu8chu
09-20-2007, 04:30 PM
Thanks a lot. Works great on 3.6.8.

Choo

Sakera
09-20-2007, 04:33 PM
Great hack, only your please click install link links to another hack :)


:o:o:o

Thanks, fixed :)

MagpieTear
10-15-2007, 11:35 AM
Silly question, It hides the results within the poll itself, but they're still showing in the "Current Poll" sidebar. Is this a result of a bad installation or do I need to reconfigure the current poll sidebar somehow?

Artes_Marciales
11-18-2007, 06:04 PM
Excellent hack!!
Thanks :)

letsjoy
12-02-2007, 05:53 PM
Imported that product sucessfull but

but nothing happed ?

and nothing in vBulletin Options? ??

any clue ?

letsjoy
12-04-2007, 07:09 PM
any support here ??????

Sakera
12-04-2007, 07:21 PM
There aren't any options in the control panel if thats what you mean. What version of vBulletin do you have, and what other modifications do you have installed? Is the hack enabled?

And can i have a link to where you tried to install it?

letsjoy
12-08-2007, 10:20 PM
I mean its not working n how it works...

I have (vBulletin 3.6.7 PL1)

remaining things are fine i have vbseo, awards like mods etc

its enabled,

link: http://forum.chatdd.com

Thanks

letsjoy
12-12-2007, 11:24 PM
waiting for reply :)

joeycano
12-13-2007, 02:55 AM
Question, Does this hack allow users to (1) only hide poll results or does it allow users to (2) make a poll and hide poll results.

Sakera
12-13-2007, 02:51 PM
It allows users to make a poll AND hide poll results...

(if i understood your question correctly:))

joeycano
12-14-2007, 12:23 AM
Wow, just want I am lookin for! Anyone have a live demo I can glance at???

kylek
12-30-2007, 05:31 PM
Can this be set so only admins can hide and view poll results? Or not allow regular members to use this? Otherwise it looks exactly what we were looking for.

letsjoy
12-30-2007, 07:21 PM
thnx ur passport added

Sakera
12-31-2007, 08:54 AM
Can this be set so only admins can hide and view poll results? Or not allow regular members to use this? Otherwise it looks exactly what we were looking for.

With a few modifications yes. If you are familiar with php you can do this easy, or i can help you. But later this new year! Just contact me via pm the second week of newyear :)

Keesa
01-03-2008, 12:26 AM
This thing has possibly killed my server...

does it pull queries from showthread.php?

My host shut me down and this is the only new thing I installed.

I r not happy nau.

Uninstalling.

Sakera
01-03-2008, 09:00 AM
This addon doesn't add any queries, it only utilises vBulletin's own functions to add and withdraw info from the database together with the rest of the poll data.. Not a single extra query.

It does use one extra str_replace for each loading of a poll, but this is not very significant, and is not the reason why you get shut down.

Get the reason from your host why you got shutdown before thinking this addon is the reason.

thanks,

Thomas

chinch
01-12-2008, 02:52 AM
excellent mod.

any way to hide the line counting voters to all but mod/admins?

Voters: 2. You have already voted on this poll

rwoscott
01-13-2008, 04:53 AM
*Installed.

joeycano
01-14-2008, 05:37 PM
Does this work with 3.6.8???

Sakera
01-14-2008, 08:17 PM
Yes, i see no reason it shouldn't. I havent installed 3.6.8 myself thought. Waiting for 3.7...

HaCaoChien
02-21-2008, 11:52 AM
Thanks for a very good hack.

Veer
02-23-2008, 04:02 PM
Thanks, working fine on 3.7.0 beta 5 :)

MMChrisS
03-03-2008, 05:47 PM
100th install and it works like a charm.

Running 3.6.8 as well...

Gemilang
03-06-2008, 12:14 PM
Just installed this hack, works most excellently.

I have a very small request: if would be great if this can be restricted for admins' and mods' use only. Is this workable? :)

richTV
03-07-2008, 04:57 AM
Just installed this hack, works most excellently.

I have a very small request: if would be great if this can be restricted for admins' and mods' use only. Is this workable? :)

hi !

i'd request this option too please. :)

or at least an option for certain Usergroups.

tnx!

*clicked installed for later use*

Morphie
03-14-2008, 07:07 PM
After installing the hack I've been experiencing problems when creating polls, they get reassigned to already existing threads instead of the new thread I was creating.

Mazinger
04-03-2008, 07:15 AM
How to make results appear for admins only?

dbaez2
04-24-2008, 08:58 PM
excellent hack, but i'd also like to know if there is a way to restrict it so only admins can view results (and not moderators).

snowman872
07-12-2008, 08:33 PM
Has anyone tested this with 3.72? Does it work OK? Will there be any further updates?

Keesa
07-13-2008, 02:45 AM
Installed. I agree with everyone else that if only admins could see results, that would be über cool.

Sakera
07-13-2008, 07:53 AM
I am using this with 3.72 myself, and it's working as it should.

I have planned an update, but as of summer -> vacation .. etc. no time.
So lets see when the summer is finished if i get some spare time for this one... ;)

Thomas

IvyKeepMommy
07-19-2008, 08:31 PM
Definitely interested in this when only the Admins can see :)

pool76
07-22-2008, 04:42 AM
Thank you my members are thrilled - as am I at the cessation of their whining!

katriders
09-23-2008, 08:54 PM
I have this installed on version 3.7.3, but it looks like there is still an "indication" of who is winning.... a green spacer of some sort appears.

TMM-TT
10-27-2008, 05:54 AM
I have this installed on version 3.7.3, but it looks like there is still an "indication" of who is winning.... a green spacer of some sort appears.

This is how it looks like to me (yes, it's swedish). It looks good to me actually... Or did you mean the green bars there?


http://www.tornevall.net/storage/files/1225062000/1225090102_pollres.jpg

Mimirswell
11-02-2008, 05:20 PM
I've come across a view bugs with this hack so far. The first is, if you have the pollid and the the poll is set to hidden but is a public poll, you can see everyone who voted and thus can tell what the results are even though the actual number is obscured.

The second one is a bit more interesting:
http://i45.photobucket.com/albums/f56/mimirswell/example.jpg

If you mouse over the poll, you get the reverse order of the results. So Yes in that poll has zero votes (so the bar extends to the end), No has 11 of 14 (and therefore is the shortest) and abstain has 3 votes and therefore is the second shortest. It's not exact but it gives you sufficient information to tell whose winning, how close someone is being second, etc.

Sakera
11-02-2008, 05:41 PM
Thanks for the heads up Mimirswell.

Will fix the errors and upload a new version

Sakera
11-02-2008, 06:07 PM
Thanks for the heads up Mimirswell.

Will fix the errors and upload a new version

I've uploaded a bug fix - v2 to resolve above errors.

Mimirswell
11-02-2008, 06:46 PM
Excellent. I can confirm that the clear.gif fix works.

Charles_1
11-08-2008, 06:19 PM
Installed. I agree with everyone else that if only admins could see results, that would be ?ber cool.
I agree. I installed it and it works great, but restriction only for admins would be really useful. Sakera, please, tell us how to do it ;-).

Sakera
11-09-2008, 05:39 PM
You have to remove mod's ability to edit the poll.

Because even if i remove the result view from moderators, they can edit the poll to get the results that way.

When their access to edit the poll is removed, the results view also will be gone, i believe ;)

409industries
12-04-2008, 05:10 PM
Excellent mod... 5 stars! Thank you... this was exactly what I was looking for.

dolphin678
12-04-2008, 06:49 PM
installed in 3.7.3 PL1 and is working OK

Gemilang
12-08-2008, 07:35 AM
I would like to have this mod such as it only allows admins and moderators to use it, and not regular members.

How do I do this? :)

Jinovich
12-08-2008, 11:19 PM
How could I make this so only admins can have the option to hide the results? I have tried loads of different ways and no way has worked.

bitwise2000
12-17-2008, 03:56 PM
Anyone install this successfully on 3.7?

Sakera
12-17-2008, 04:01 PM
I can confirm that it works 100% on 3.7.

Sonyuserforum
01-09-2009, 08:37 AM
Anyone installed this successfully on 3.8.0 Gold?

gauravseth
01-15-2009, 07:55 PM
Thanks. Worked like a charm.


You have to remove mod's ability to edit the poll.

Because even if i remove the result view from moderators, they can edit the poll to get the results that way.

When their access to edit the poll is removed, the results view also will be gone, i believe ;)

Keesa
01-25-2009, 04:17 AM
Anyone installed this successfully on 3.8.0 Gold?

I did and it works just fine so far.

:up:

viper357
05-01-2009, 07:24 AM
I have this installed and running for a few months now, but I have just realised that vbadvanced does not hide the results, it shows it as a normal poll, how do I correct this?

stunod
05-12-2009, 03:10 AM
I have read through each question to see if anyone was have the same problem with vbadvanced and it was on the last page, just my luck!

I am looking for a fix for this as well. Anyone have or know of one?

Thanks,
Adam

gnatster
07-01-2009, 03:08 PM
Works in 3.8.3 with vBadvanced installed

Marked as installed...

seannnr
08-06-2009, 02:56 PM
Looks to be a great hack, I'm excited to install it on 3.7.4. Can you tell me what templates it edits? I have other templates edited and can't have those changes overwritten - does it only edit the Poll Templates group?

viper357
08-06-2009, 03:27 PM
I have this installed and running for a few months now, but I have just realised that vbadvanced does not hide the results, it shows it as a normal poll, how do I correct this?
Help with this please.

Hurricane
09-07-2009, 05:11 PM
As the author of this hack for version 3.0 I thank you for creating this one. I don't have a constant need for this hack, but when I do need it, it is nice to have.

For the record, I too have the issue with vbadvanced, but I just turned off the poll module until my polls are over. (I only use this once or twice a year.)

viper357
09-07-2009, 06:50 PM
I have this installed and running for a few months now, but I have just realised that vbadvanced does not hide the results, it shows it as a normal poll, how do I correct this?
bump

Sakera
09-07-2009, 10:06 PM
I am sorry, I don't have vBadvanced installed, and i don't have the time to spare to do the job. Maybe Someone with vBadvanced and some coding knowledge can take a look at the problem, and reply to me, then i can update the hack.

Thomas

airboss
09-09-2009, 04:57 PM
Will this work with V 3.8?

pianetadown
10-23-2009, 08:36 PM
Thanks it's good with the 3.8.4 too!

TheMic
11-02-2009, 08:19 AM
very very perfect!!! thanks!

Charles_1
11-13-2009, 05:44 PM
This hack is very useful but I have request regarding one issue.

Creating new poll is OK but when author, mod or admin edit the poll, setting from this hack dissapears, results are visible to everyone and there is no way to set it again, only delete the poll and create new one :-(. When the poll is edited, in the form of its settings are not 3 radio buttons from this hack like when is creating new one.

Sakera, do you know how to correct this please? Our moderators would be really grateful :-).

Veer
11-25-2009, 12:14 PM
Any update for 4.0?

Sakera
11-25-2009, 02:00 PM
There will be, but i'm not giving a time estimate. It will be done as soon as i upgrade my vb to v4, i've bought it but not set a date i will start testing/upgrading.

Veer
11-25-2009, 11:26 PM
There will be, but i'm not giving a time estimate. It will be done as soon as i upgrade my vb to v4, i've bought it but not set a date i will start testing/upgrading.
Thanks mate, good luck.

maximutt
11-26-2009, 10:25 AM
Awesome to hear, Sakera!

I love this mod!

Veer
11-30-2009, 08:55 AM
Will wait for vb4 version.

taylorpiano
12-20-2009, 10:10 PM
I need this mod too for photo contests.
Does this allow you to put code inside the text block?

I asked this same question over on Vbulletin.com and was directed to this thread.

Here is my problem, when I run the weekly photo contests since March on an older version of VB, think 2.3, I use the polls in VB to create them.
The poll post shows a thumbnail of each of the 6 finalists and users can click on the thumb to see a larger version before they choose to vote.

Thing is now that we have moved to a new server, upgraded all the software, the thumbnails in all the previous polls or any current polls I try to create do not show up.
Here is a link
http://www.bytephoto.com/forums/showthread.php?t=6976


Here is the code I have have always used in the past just by pasting it in the text box of each poll choice.

<a href="#" onclick="window.open ('/photopost/data/947/11221POTW-Finalist-2009-10-41.jpg','','width=624, height=946')"><img src="/photopost/data/947/11221POTW-Finalist-2009-10-41-thumb.jpg"></a>

How can I get this code to work or what do I need to change to have it work.

Also, when we reveal the results at the end of the week, I only need the counts per picture and the total votes. I don't want the users to see who voted for who.
Although this could expose those voting for themselves LOL, I still dont think its a good idea to reveal all the users choices. It could really create some hard feelings amongst the photographers.

viper357
12-21-2009, 06:16 AM
I just use normal BB code to show images in my polls,
http://www.marineaquariumsa.com/calendar/1a.jpg
Works fine, see here http://www.marineaquariumsa.com/showthread.php?t=13605

Sakera
12-21-2009, 02:04 PM
Also, when we reveal the results at the end of the week, I only need the counts per picture and the total votes. I don't want the users to see who voted for who.
Although this could expose those voting for themselves LOL, I still dont think its a good idea to reveal all the users choices. It could really create some hard feelings amongst the photographers.

No problem to use bbcode img as stated in previous post.

Make sure to uncheck "public poll" ten the voters woun't be revealed.

taylorpiano
12-21-2009, 08:52 PM
But I need the thumbnail to show next to the voting and only the large version once someone clicks on the thumbnail.
The code above [ img ]http://www.marineaquariumsa.com/calendar/1a.jpg[ /img ] will only show a large version or the thumbnail.
This is what I have used in the past onclick="window.open

I added spaces above to the code so the code would show and not the thumbnail
What happens when I reveal the poll? I only need them to see the count, not the people who voted.

Sakera
01-02-2010, 09:51 PM
VB4 version released

https://vborg.vbsupport.ru/showthread.php?t=231976

otto
10-02-2010, 06:31 PM
Hello,

great Hack - and works fine with vb 3.8.4 and vbadvanced. Thanks!

testerv
10-01-2012, 08:47 PM
I hope this works for 3.8.7.