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 
How to get comments  XML
Forum Index » Support Forum
Author Message
René
Beginner
[Avatar]

Joined: 21/03/2004 14:12:11
Messages: 14
Offline

Hello.
I'm busy to put up my first poll.. It's the Advanced Poll 2.0.3
I am using this code:

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Poll</title>
</head>

<body>
<?php
include_once "c:/www/poll/textfile/booth.php";
echo $php_poll->poll_process(5);
?>
</body>

</html>

And now my poll works , but the comments i wrote myself or others don't show...
But i see them in my administraton

Please would you be so kind and help me ?

Thank you

I wish you have a very nice day
[Email]
René
Beginner
[Avatar]

Joined: 21/03/2004 14:12:11
Messages: 14
Offline

Ok after studying some more, i came to this :

my folder is on
C:/www/poll/db and
C:/www/poll/textfile


<Html>

<head>
<meta name=
"GENERATOR" content="Microsoft FrontPage 5.0">
<meta name=
"ProgId" content="FrontPage.Editor.Document">
<meta http-equiv=
"Content-Type" content="text/html; charset=windows-1252">
<title>
New Page 1</title>
</head>

<body>

<?php
include_once "c:/www/poll/textfile/booth.php";
echo $php_poll->poll_process(5);
?>


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

<?php

/* path */
$poll_path = "/www/poll/db";

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("plain");
$php_poll->set_max_bar_length(125);
$php_poll->set_max_bar_height(10);
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);

?>

</body>

</html>

I see the poll, and it works... but there is no comments on the site like the demo 2

My website give me this 1 error

Fatal error: Cannot redeclare class poll in c:\www\poll\db\include\class_poll.php on line 10

Please..... anyone.....?

I wish you have a very nice day
[Email]
René
Beginner
[Avatar]

Joined: 21/03/2004 14:12:11
Messages: 14
Offline

ok it's working

I wish you have a very nice day
[Email]
Anonymous



tell us how you made them working...
Anonymous



Can anyone shed some light on how you get comments to show up please.

I've read the instructions but still can't work it out.
Auron
Expert
[Avatar]

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

May help a bit...

http://proxy2.de/forum/viewtopic.php?t=3823

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