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 
Advanced Poll comments  XML
Forum Index » Support Forum
Author Message
Anonymous



Hey there,
where should the comments from a poll be displayed, I just wrote one, and I can see it in my database but nowhere on the page
Now I left out the php include cookie "thing", but that shouldn't be the problem, should it?
Hawkslayer
Beginner

Joined: 26/10/2002 16:00:35
Messages: 42
Location: Georgia USA
Offline

You can read the comments in ADMIN.

Hawkslayer

http://www.fuchsialand.co.uk
[WWW] [ICQ]
Anonymous



Too bad, I thought that everybody could read it Well that's life I guess Thanks anyway.
PollMaster
Newbie

Joined: 08/02/2003 10:19:25
Messages: 2
Offline

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.
Anonymous



OK...I culled this off the proxy.de DEMO website & stuck it into my HTML/php page and changed the Poll # to the Poll I have up:

/* 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(2);
echo $php_poll->get_comment_pages(2);

Here's what I got:

Fatal error: Call to undefined function: set_template() in /home/myusername/www/mydir/myfile.php on line 18

Advanced Poll is a great program, but the documentation SUCKS!!!
PollMaster
Newbie

Joined: 08/02/2003 10:19:25
Messages: 2
Offline

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 ???????????????????????????
Anonymous



I did what you said and these are the errors I got

Warning: main(/home/MY SITE/public_html/poll//include/config.inc.php) [function.main]: failed to create stream: No such file or directory in /home/MYSITE/public_html/newpoll.php on line 125

Fatal error: main() [function.main]: Failed opening required '/home/MYSITE/public_html/poll//include/config.inc.php' (include_path='.:/usr/local/lib/php') in /home/MYSITE/public_html/newpoll.php on line 125

ANY help would be appreciated!
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

If you look at your code there is a opening < bracket missing don't know if thats it but you can get rid of the template bit if your using the template set called default otherwise change it to the name of the template set your using. NAd whats with the <? and ?> bits on the end?!?!?!?

Also with it sayig file not there either you haven't uploaded it or the root to it is wrong. Again also whats with the double slash bit? Not needed.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum