If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: Remi Sture
Forum Index » Profile for Remi Sture » Messages posted by Remi Sture
Author Message
Change this: to this: in "lang/norwegian.php"
Is it possible to get the total number of votes of all the polls on my page?

http://www.fyllingenfotball.no/poll.php

ex.

Total votes: 1230
Average per poll: 85
<?php

require "poll/include/config.inc.php";
require "poll/include/$POLLDB[class]";
require "poll/include/class_poll.php";
require "poll/include/class_pollcomment.php";
require "poll/include/class_plist.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();

$php_poll = new plist();

/* poll */
$php_poll->set_template_set("plain");
$php_poll->set_max_bar_length(200);
$php_poll->set_max_bar_height(10);
if (isset($HTTP_GET_VARS['poll_id'])) {
echo $php_poll->poll_process($HTTP_GET_VARS['poll_id']);
} else {
echo $php_poll->poll_process("newest");
}

/* poll list */
$php_poll->set_template("poll_list");
$php_poll->set_date_format("d/m/Y");
echo $php_poll->view_poll_list();
echo $php_poll->get_list_pages();

?>
What do I have to do so users can't vote more than once?
If one user makes a vote on monday, he/she can also make a vote on tuesday. Can somebody tell me what to do? I want the users only to vote once per poll.

- Remi Sture
FyllingenJunior.Com - Click to visit
 
Forum Index » Profile for Remi Sture » Messages posted by Remi Sture
Go to:   
Based on the open source JForum