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 
Poll works fine but....  XML
Forum Index » Support Forum
Author Message
René
Beginner
[Avatar]

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

Comments are not showing on my website

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]
Auron
Expert
[Avatar]

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



Try that. Before HTML means before it.

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]
René
Beginner
[Avatar]

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

Tnx and yes i know before is before, but i tried that too, and the error

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

is still there

I wish you have a very nice day
[Email]
Auron
Expert
[Avatar]

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



Try removing that line.
Also...



Why have you got the poll_process from the 'textfile' version while the
other is from the 'db' version? They may be confilcting with each other.

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]
René
Beginner
[Avatar]

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

i unzipped the file and i got poll/db and poll/textfile

so yes i am confused...

Code:
require $poll_path."/include/class_poll.php


Try removing that line.


Gives me:

Fatal error: Class pollcomment: Cannot inherit from undefined class poll in c:\www\poll\db\include\class_pollcomment.php on line 10

Also...

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

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


Why have you got the poll_process from the 'textfile' version while the
other is from the 'db' version? They may be confilcting with each other.


If i change those foldernames i get more errors

i use php 4 and mysql mysql-3.23.57-win

René

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

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

ok i deleted everything and i start over again

i dl zipfile phppoll

i unzip it now

i have 2 folders DB and TEXTFILE

wich one do i have to use (even if it seems that they can't do without eachother)

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 now

I wish you have a very nice day
[Email]
Auron
Expert
[Avatar]

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

René wrote:ok i deleted everything and i start over again

i dl zipfile phppoll

i unzip it now

i have 2 folders DB and TEXTFILE

wich one do i have to use (even if it seems that they can't do without eachother)


db = database ie MySQL
textfile = data in a text file (really?!?!)

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]
René
Beginner
[Avatar]

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

wow... that is what i call a very late answer.

And i don't understand what you mean by this...

But as it is solved, we don't need to proceed with this topic i guess...

tnx for your time and help.....

I wish you have a very nice day
[Email]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum