PDA

View Full Version : force users to reply to a poll thread before voting


influence
08-13-2005, 01:17 AM
I think this should be simple.

Is there anyway I can change the default poll system so that before a user attempt to vote on a poll, there should be a message saying "you must reply to this thread before replying" or if they attempt to click and vote on that particular vote, a error message should show up saying "You must reply to this thread before voting on this poll"

This seems like something simple and I hope someone can help me accomplish this modification.

thanks

Andreas
08-13-2005, 01:38 AM
Basically it's

select count(postid) from post, thread where post.userid=$bbuserinfo[userid] and thread.threadid=post.threadid and thread.pollid=$poll[pollid]

If this Query does return smth, the User hasreplied, otherwise he hasn't.

akanevsky
08-13-2005, 10:10 AM
I released a modification:

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