abidan
Offline
Posts: 102
|
 |
« Reply #75 on: February 27, 2009, 04:48:00 PM » |
|
I set it to e_none and the messages are still there?
|
|
|
|
|
Logged
|
|
|
|
abidan
Offline
Posts: 102
|
 |
« Reply #76 on: February 27, 2009, 04:56:28 PM » |
|
I tired changing settings in preferences to all the differnet options and no matter what they are set to i always get this error? I have another website baker site running on the same environment and have no problems with the module?
|
|
|
|
|
Logged
|
|
|
|
bibby
Offline
Posts: 14
|
 |
« Reply #77 on: March 02, 2009, 01:59:25 AM » |
|
Did you ever find an answer to your question? I'm looking to do the same thing.
|
|
|
|
|
Logged
|
|
|
|
abidan
Offline
Posts: 102
|
 |
« Reply #78 on: March 02, 2009, 10:35:07 AM » |
|
Nope I have not heard anything? Is there anyone out there who can help us with the problems with this module?
|
|
|
|
|
Logged
|
|
|
|
aldus
Offline
Posts: 1238
|
 |
« Reply #79 on: March 02, 2009, 12:12:39 PM » |
|
Nope I have not heard anything? Is there anyone out there who can help us with the problems with this module?
Some of the warnings are descripte/discussed just one page before - also some nessesary codechanges. Maybe you want to try the attached inofficial //bugfix// 1.1.1 - the warnings should dissapear ... Please tell if it works ... Regards Aldus apologize for this ugly english ...
|
|
|
|
|
Logged
|
|
|
|
fsuk
Offline
Posts: 127
|
 |
« Reply #80 on: April 19, 2009, 03:23:41 PM » |
|
A few things im going to look at changing. Make it easire to chose the score image (file list) Remove time block and replace with number of votes per user. (With the option to record username instead of IP) Prevent the user from hitting refresh to log another vote.
|
|
|
|
|
Logged
|
You say deviant like its a bad thing...
|
|
|
KEnik
Offline
Posts: 24
|
 |
« Reply #81 on: October 21, 2009, 04:42:34 PM » |
|
Hello, I need to set UP this module to check User_id but if I add to line $user_id=$wb->get_user_id(); $database->query("INSERT INTO ".TABLE_PREFIX."mod_polls_votes SET `vote_ip` = '" . $ip . "',`poll_id` = '" . $poll_id . "', `vote_datum` = '" . $date_time . "',`user_id` = '" . $user_id . "' ");
work but not check where I must add checking user ID (and how) Thank you I try it 3. hours and nothing works  Only simple change all $ip > $user_id works
|
|
|
|
|
Logged
|
|
|
|
Turskis
Offline
Posts: 50
|
 |
« Reply #82 on: January 07, 2010, 10:08:06 AM » |
|
If user presses the vote button before selecting any answer, voting is disappeared.
Has anyone seen the same problem?
|
|
|
|
|
Logged
|
|
|
|
Turskis
Offline
Posts: 50
|
 |
« Reply #83 on: January 19, 2010, 09:47:04 AM » |
|
To prevent the problem, how could i mark some of the options marked by default?
|
|
|
|
|
Logged
|
|
|
|
pieterb
Offline
Posts: 46
|
 |
« Reply #84 on: May 09, 2010, 07:48:18 PM » |
|
Hi everybody,
I'm using the poll module on a website and want to add two different polls to a single page. But when I do this (I can add an extra section and add a poll there), it doesn't record the votes per poll. It actually doesn't record any vote whatsoever. So when I click results, I get 0 votes for all the options.
I am putting it up on a hidden page (it's not ready yet and it's on a production site), so maybe it's a problem with that. But if it's not, does anyone know if it's possible to add more than one poll to a page?
I am using version 2.8 of the CMS.
|
|
|
|
|
Logged
|
|
|
|
creativecat
Offline
Posts: 78
|
 |
« Reply #85 on: June 14, 2010, 11:25:52 AM » |
|
Hi:-) First of all: Thank you for that small module. Now I have less work;-) Could it be, that you forgot to include the header and footer in the view.php? If you put some information into the backend to the header/footer-section the information won't be shown in the frontend. I added those two lines: $poll_header = $poll_data['header']; $poll_footer = $poll_data['footer']; ...and print them later in the skript: echo $poll_header; echo $poll; echo $poll_footer;
|
|
|
|
|
Logged
|
|
|
|
babsy
Offline
Posts: 322
|
 |
« Reply #86 on: September 28, 2010, 02:08:15 PM » |
|
Hi  just a weird problem with the poll... do any of you have any idea.. why the % does not show 100% altogehter it shows 96%... is there some change i can make  so it is 100%
|
|
|
|
|
Logged
|
|
|
|
aldus
Offline
Posts: 1238
|
 |
« Reply #87 on: September 28, 2010, 02:45:57 PM » |
|
Hm Just for a quick test within wb2.8 and module version 1.1.1 from AMASP i can't see what's going wrong: still working as expected. Wb-Version? Module-Version? Any testpage to view?
Kind regards Aldus
|
|
|
|
|
Logged
|
|
|
|
weiry
Offline
Posts: 92
|
 |
« Reply #88 on: December 15, 2010, 10:07:28 AM » |
|
It would appear as though this module still needs a little work. If you click Show Votes, there is no way to get back to the poll to put your vote in. So perhaps disable this function or have it so it only show you the results after you have cast your vote or have the ability to go back. Even if you refresh it treats you like you have already voted and just shows the results.
@creativecat was quite correct and when I put in the missing code, the header & footer showed up so ty.
I have seen other similar modules online where the voting results opens in a new window, perhaps might not be such a bad idea.
|
|
|
|
|
Logged
|
|
|
|
Turskis
Offline
Posts: 50
|
 |
« Reply #89 on: February 22, 2011, 09:59:05 AM » |
|
I added javasript back-code to view.php. Only problem is that it also ads this when you have already voted. if(($datapoll) || ($show_poll)) { # If allready voted or requested show results $options = explode(",", $poll_data['poll_keuzes']); # Split options and scores $scores = explode(",", $poll_data['poll_scores']); $option = count($options)-1; $votes = array_sum($scores); # Count the votes and show them $results = $poll_data['poll_stelling']."<br /><br />"; $results .= "<p>"; $num2=0; for($i = 0;$i <= $option; $i++) { # Loop through results $results .= $options[$i] . "<br />"; if ($votes>0) { // $num = (int) ($scores[$i] / ($votes/100)) ;
$num = (round (($scores[$i] / ($votes/100)),2)) ; $num2=$num2+$num; //echo $num."<br>"; } else { $num=0; } $results .= "<img src=\"".$txt_picture."\" width=\"" . $num . "\" height=\"10\" /> " . $num . "% - ".$scores[$i]; $results .= "<br /><br />"; } $results .= "</p>"; $results .= $txt_voted . $votes .' - '. $num2."%<br /><br /><a href=\"javascript: history.go(-1)\">Back</a>"; echo $results; }
|
|
|
|
|
Logged
|
|
|
|
noname8
Offline
Posts: 75
|
 |
« Reply #90 on: October 18, 2011, 09:28:36 AM » |
|
If this is the poll module from http://www.websitebakers.com/pages/modules/interaction/poll.phpit has issues with security ( IF THE WB $database->query does not sanitase, i don't know) puts post data directly into the query. Or does the wb has some kind of mechanism not to allow sql injection pass trough?
|
|
|
|
|
Logged
|
|
|
|
|