![]() |
No problem, I'm sure many others had (or would have) the same question- it was completely logical.
|
Great add-on! :up:
If it was possible in the Gold edition to select on a per-poll basis if the poll should have the unvote function, I'd buy it in a heartbeat. That's really the only feature I need besides the basics. Like a little checkbox (default on or off depending on settings) by the make poll public and multiple choice boxes. I don't know how hard to code that would be, but it would be an awesome addition I think. :) |
Thanks for the feedback Nerror. It is a pain to code that kind of checkbox but I will try to add it (to the gold version) at some point. Please watch the Gold thread for updates on the issue.
|
Nice. Been looking for something like this.
My only qualm, and it's really a tiny one: While we have a way to adjust what color the link is, we have no way to change the color when that link is hovered on. My links change color a bit on my forums when a user passes over them (Specifically, to a slightly lighter shade of blue). Any way to set this? The obvious solution was to try to force #bop5unvote_linkhover via additional.css, but that didn't quite work. :) |
Add this line as well:
Code:
#bop5unvote_link:hover {color:red;} Change red to any color or code you want. |
Ah, so I was close, but no cigar.
Thanks a bunch for that info though. :) |
wonderful! Just what I was looking for, 5 stars.
|
I just found out that you can unvote closed polls.
Could that be changed so that you can unvote on running polls only? When a poll is closed there is no use to unvote. But it can confuse people when users delete their vote on a voted and closed topic. Edit: Sorry mate. Didn't really test this right. Normal users can't delete their vote on a closed poll. I just could with my administrator account. Please ignore this request. |
OK, I did some digging.
The plugin "Unvote Option", that shows the link to unvote, is bases on the "$pollinfo['active']" variable that is pulled from the database. The problem is that this variable is only set from 1 (active) to 0 (not active) if you close a poll manually. When the poll is closed because the timeout is reached, this value is NOT changed. So a lot of polls are closed for voting, because the start time of the poll plus the timeout is reached, but appear still active for this hack. I've corrected this problem on my board by not checking the active state, but to calculate if the time() is smaller than the timeline plus the timeout. See this code (red and fat are my changes): Code:
global $vbulletin; The $pollinfo['timeout'] is set in days. That's why I convert it to seconds. $pollactive is the date/time now in Unix timestamp. $pollinfo['dateline'] is the date/time that the poll is created, also a Unix timestamp. If you want to use this code, be my guest. |
OK, just found out that I forgot one possibility.
When the timeout is set to 0 (never close the poll) and the poll is closed manually, this doesn't work. Because I've let the $pollinfo['active'] out of the equation and $pollactive == $polltimeout (cause $polltimeout = 0). Have to figure out a workaround. When I solved this, I'll be back. Not much time right now..... |
All times are GMT. The time now is 02:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|