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 
????? Broken Graphic on mysql install of Advanced Poll  XML
Forum Index » Support Forum
Author Message
Anonymous



I have advanced poll installed and having a bit of a problem...

http://www.savhs.org/poll/test.php

You see the round graphic is broke when using the graphic interface in advanded poll and you never get a option to actually vote.

Here is the source code I am using


<?php
/* Include this before your html code */
include "./poll_cookie.php";
?>

<?php

/* path */
$poll_path = "/var/www/savhs/poll";

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

$php_poll = new pollcomment();

/* poll */
$php_poll->set_template_set("graphic");
echo $php_poll->view_poll_result(1);


/* poll comments */
$php_poll->set_template("poll_comment");
$php_poll->set_comments_per_page(5);
$php_poll->set_date_format("d/m/Y H:i");
$php_poll->data_order_by("time","desc");
echo $php_poll->view_poll_comments(1);
echo $php_poll->get_comment_pages(1);

?>

Anyone tell me what I am doing wrong?
Anonymous



Please note in the Advance Poll zip file I dloaded there is no demo_6.php and demo-5.php does not actually display the polls. I have re-dloaded and re-installed Advanced Poll and still get the same error.
Anonymous



I due to may ignorance of php found out the problem with not being able to vote ...

echo $php_poll->view_poll_result(1); this line caused it just to show results...

echo $php_poll->poll_process(1); is what was needed to let me vote.

the graphic display I can only assume is a BUG. It does work on another system with the text version installed instead of a mysql database.

Hope this helps somone in the future ...
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum