Mon, 25 Nov 2024
Total Visits
35387178
Visitors today:
525
Main Menu
Home
Free Scripts
Forum
Guestbook
Repository
Contact
Our Sponsors
Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
Search
Hottest Topics
Member Listing
FAQ
Register
/
Login
????? Broken Graphic on mysql install of Advanced Poll
Forum Index
»
Support Forum
Author
Message
21/10/2002 04:42:49
Subject:
????? Broken Graphic on mysql install of Advanced Poll
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?
21/10/2002 04:55:12
Subject:
tad more info
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.
21/10/2002 18:20:18
Subject:
K got part of it
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:
Select a forum
General Discussion
Support Forum
German Forum
Advanced Guestbook Forum
Advanced Guestbook Modifications
Based on the open source
JForum