1
salsailor
Polls allowing mulitple selections does not work!
  • 2002/7/15 9:02

  • salsailor

  • Just popping in

  • Posts: 3

  • Since: 2002/5/6 9


For a while, I was wondering why nobody votes on my new polls, it's a poll allows voting multiple choices. It just shows all zero. You can try with the current poll in xoops.org site now, it does not shown any votes.

2
Anonymous
Re: Polls allowing mulitple selections does not work!
  • 2002/7/15 10:01

  • Anonymous

  • Posts: 0

  • Since:


Tnx :o) Had probs myself but thought it was my ip or a cookie that was logged(since i posted it). For now i told the others, and will give it a look later on if noboby else does so before.

Tnx

3
Neon
Re: Polls allowing mulitple selections does not work!
  • 2002/7/15 11:53

  • Neon

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/2/8 6


Just tried the Polls on this site too and found they don't seem to be working either!!

4
Pitiless
Re: Polls allowing mulitple selections does not work!
  • 2002/7/15 18:10

  • Pitiless

  • Just popping in

  • Posts: 14

  • Since: 2002/5/16


It was happened after the update to 3.0.3

All another files are OK, only index.php occures this problems (my experiences)

Leave the updated files from fix 3.0.3 but take the index.php from fix 3.0.1

it means index.php in xoopspoll

5
onokazu
Re: Polls allowing mulitple selections does not work!
  • 2002/7/15 19:09

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Fixed now.

modules/xoopspoll/index.php

line 80
$voted_polls = (!empty($HTTP_COOKIE_VARS['voted_polls'])) ? $HTTP_COOKIE_VARS['voted_polls'] : array();

line 90
$poll->vote($HTTP_POST_VARS['option_id'], $REMOTE_ADDR, $xoopsUser->getVar("uid"));

line 100
$poll->vote($HTTP_POST_VARS['option_id'], $REMOTE_ADDR, $xoopsUser->getVar("uid"));


6
Anonymous
Re: Polls allowing mulitple selections does not work!
  • 2002/7/15 21:17

  • Anonymous

  • Posts: 0

  • Since:


Cool
been in bed all day..sick as a dog...

btw all those intval() you use, if those are just to define the type the value are, then you can use typecasting todo that too:

(int)$val
(bool)$val
etc..

7
jessop
Re: Polls allowing mulitple selections does not work!
  • 2003/6/2 7:56

  • jessop

  • Just popping in

  • Posts: 1

  • Since: 2003/6/2 7


Ua, maybe I got it wrong, it sure didn't look right. Could you post the old line and the new line so that I can insure that I am really working on the same line 80 etc? I assume that is the fault becuase it still doesn't work for me. Thanks
Jess

8
Ozyroy
Re: Polls allowing mulitple selections does not work!
  • 2003/10/12 7:32

  • Ozyroy

  • Just popping in

  • Posts: 13

  • Since: 2002/8/9 1


Guys I've struck the same problem with 1.3.10 and edited the /modules/xoopspoll/index.php as suggested [I only had to add $xoopsUser->getVar("uid")); to the end of line 100 - the rest was already done] but I can still only vote once after permitting multiple votes.

This was an old problem but it seems it still persists

Any further ideas???

9
Ozyroy
Re: Polls allowing mulitple selections does not work!
  • 2003/10/12 22:53

  • Ozyroy

  • Just popping in

  • Posts: 13

  • Since: 2002/8/9 1


OK .. have solved part of the problem and it had to do with how the user voted .. voting once and going back for the next vote wasn't permitted = 'You have already voted'

Now membership of my community can have mom, dad and the kidz from the same family as members all using the same PC.
If Dad votes now mom and the kidz get the message 'You have already voted'

I am not clicky with php coding so can someone tell me what to insert in /modules/xoopspoll/index.php which reflects the UID rather than the IP of the PC [REMOTE_ADDRESS] so that the whole family may vote.

Thanks

Login

Who's Online

163 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 163


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits