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: PollMaster
Forum Index » Profile for PollMaster » Messages posted by PollMaster
Author Message
This is PollMaster again, but for some reason I'm showing as 'Guest' even thought I've logged in. Go figure

I kept hacking around and got this to work AND display comments (note each occurrence of the number "6" is the number of the poll):

?php
/* Include this before your html code */
include "./poll_cookie.php";
?>
<html>
<head>
<title>My Poll</title>
</head>
<body>

<?php

/* path */
$poll_path = "/home/me/www/domain/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();

/* question */
//echo $php_poll->get_poll_question(6);


/* poll */
$php_poll->set_template_set("plain");
$php_poll->set_max_bar_length(125);
$php_poll->set_max_bar_height(10);
echo $php_poll->poll_process(6);


/* construct the form */
$php_poll->set_template("poll_form");
$php_poll->set_form_error(array(
"name" => "Please enter your name.",
// "email" => "You must specify your e-mail address.",
"message" => "You must specify a message."
));
$html_form = $php_poll->comment_process(6);


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

?>
</body>
</html>
<?
?>

Umh, such a nice program but when will there be ACCURATE, COMPLETE, DETAILED, STEP-BY-STEP DOCUMENTATION ???????????????????????????
I have the same problem, however on the Advanced Polls DEMO page, it clearly displays COMMENTS below the Poll (one example).

HELP US, SOMEONE ... PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thank You.
 
Forum Index » Profile for PollMaster » Messages posted by PollMaster
Go to:   
Based on the open source JForum