[Phpslash-trackers] [ phpslash-Bugs-592395 ] Problem with votes
Brought to you by:
joestewart,
nhruby
From: SourceForge.net <no...@so...> - 2004-10-23 13:51:36
|
Bugs item #592395, was opened at 2002-08-07 20:07 Message generated for change (Settings changed) made by joestewart You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110566&aid=592395&group_id=10566 >Category: poll Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with votes Initial Comment: Hey, all! During one of my sessions where I invent new curse words (trying to fix phpslash to work the way I want it) I noticed that the polls are interfering with the way stories are submitted. (Possibly other places as well). In pollDisplay.tpl there is a line <input type=hidden name=submit value="vote"> Every class that switches depending on a submit button will possibly (if it's later in the HTML ?) see this instead of the value of the submit button they're linked to. This causes some forms on the same page to malfunction (not do anything at all - since the value they see is "vote" and not "edit" or "new" or whatever). The quick fix to this problem is to change the above mentioned line to (in pollDisplay.tpl): <input type=hidden name=pollSubmit value="vote"> and poll.php (line 47) to: switch ($ary['pollSubmit']) { I am not sure if this is the 0.65 version (since I'm not really sure which version I'm running any more (hybrid 0.66 ?;o) and I'm too tired to check with CVS. In any case it should be fixed. Thanks for a great job done! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-04-23 13:11 Message: Logged In: NO Is this possibly why in my version (0.7.1) which had exactly the same problem, a user would occasionally post a comment and see a blank page as opposed to the redirect? I have added this fix and will be able to post the results in a couple of days... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110566&aid=592395&group_id=10566 |