Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
Mr. Despair Posted May 17, 2010 Posted May 17, 2010 I have a simple suggestion. Hopefully it's nothing too difficult. :unsure: In a public poll, you get a blue star icon indicating the option you voted for. You don't get this indication for nonpublic polls. I think this icon should be shown regardless of whether it's a public poll or not. It also looks like it's not as simple as editing the template to do this:<if test="hasVoters:|:is_array( $choiceData['voters'] ) AND in_array( $this->memberData['member_id'], array_keys( $choiceData['voters'] ) )"> {parse replacement="your_vote"} </if> Well, if it is, someone let me know how to do it. :lol: Also, I was wondering, why is it that you cannot edit a poll's public or nonpublic state afterward? Is this because there were no public polls in older versions of IPB? I noticed that I can easily edit the poll_view_voters value in the database and it seems to work.
bfarber Posted May 17, 2010 Posted May 17, 2010 Also, I was wondering, why is it that you cannot edit a poll's public or nonpublic state afterward? Is this because there were no public polls in older versions of IPB? I noticed that I can easily edit the poll_view_voters value in the database and it seems to work. When designing the feature, we were concerned someone might make a non-public poll that had sensitive information, then arbitrarily change it to a public poll at a later point in time (all the while, the member's voting in the poll would be under the impression their votes would be private). For that reason, primarily, we opted to not let you change the status after the poll is started.
Mr. Despair Posted May 17, 2010 Author Posted May 17, 2010 When designing the feature, we were concerned someone might make a non-public poll that had sensitive information, then arbitrarily change it to a public poll at a later point in time (all the while, the member's voting in the poll would be under the impression their votes would be private). For that reason, primarily, we opted to not let you change the status after the poll is started. I see, depending on the kind of poll you're starting I guess that makes sense. I didn't really think about it from that perspective. :whistle: I'll probably try to set it as checked by default then. Any thoughts on the icon part? Or would there be a reason for why it doesn't show for nonpublic polls as well?
Mr. Despair Posted May 18, 2010 Author Posted May 18, 2010 After many hours of struggle, I was able to pinpoint what I needed to change to fix this. Luckily I was able to edit a hook so in the time being no file edits were required. The downside is the extra array data just to show this icon, I guess all is well now.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.