Editing Poll

Mavric

Yoda
Some oddities with making the votes in a poll public or not.

It appears that if you don't make a poll public when it is created, you can't go back and make it public. However, if you make it public at first, you can edit it to make the votes not public.

None of that is a particularly big deal other than I meant to make the poll in this thread public but didn't and now I can't change it. Is it possible for someone to change it behind the scenes?

 
Unfortunately, the only way to do it is to directly touch the database and edit the tables. IP.Board doesn't offer a feature to allow it to be done through any other means. I don't have access to the database to do that; Dave might have access for it.

 
Another Poll question:

Is there a setting for if a thread is flagged for new content just because someone votes in a Poll? I don't know if we want to change it but it is a little odd that it gets flagged for that. All of the sudden an older thread will show new content.

Someone asked about this with the Polls I was looking to do in the Recruiting forums.

 
Yes, we can do that. It's done on a per-forum basis. Do you want it disabled so that a vote doesn't "bump" the poll topic?

Opps - spoke too soon. It turns out that we CAN disable poll bumping - but that only works when topics are sorted by date. And it's set up to disallow poll bumping already for all the forums.

 
Last edited by a moderator:
Yeah, it doesn't bump the poll - it stays in the order based on the last actual post. But the icon on the left of the topic title changes to highlighted in red so it looks like there is a new post but all it was was a vote. The odd thing is they are highlighted at first but if you look at the other thread such that you've looked at all the threads that actually have a new post, it will un-highlight the poll thread that only has the new vote.

Anyway, it's not a big deal. I just thought I'd ask if there was an option to shut it off.

 
Just browing the IP.Board site and the issue of whether a vote should make a thread show as new content is a bit of a discussion.

I did find this. Not sure if this is anything we even want to attempt but this guy makes it sound possible.

There is two options here, for those who want to change it. Either comment out the full update statement, so neither last_vote or last_post updates when a vote is added. This is the simplest solution.

If you however want last_vote to be updated, then you have to also change this file: www/admin/applications/forums/sources/classes/topics.php

Find:

/* Check against it */
if ( $topic['poll_state'] AND ( $topic['last_vote'] > $topic['last_post'] ) )
{
$topic['_hasUnread'] = ( $lastMarked < $topic['last_vote'] ) ? true : false;
}
else
{
$topic['_hasUnread'] = ( $lastMarked < $topic['last_post'] ) ? true : false;
}
Replace with: (Comment out the if/else statement and just paste what's inside the else below it)

/* Check against it */
/* HW_CUSTOM do not mark polls as unread when they have new votes
if ( $topic['poll_state'] AND ( $topic['last_vote'] > $topic['last_post'] ) )
{
$topic['_hasUnread'] = ( $lastMarked < $topic['last_vote'] ) ? true : false;
}
else
{
$topic['_hasUnread'] = ( $lastMarked < $topic['last_post'] ) ? true : false;
} */
$topic['_hasUnread'] = ( $lastMarked < $topic['last_post'] ) ? true : false;
 
Back
Top