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 
Adv. Poll>how to include posted comments?  XML
Forum Index » Support Forum
Author Message
pompo
Newbie

Joined: 05/06/2004 22:03:33
Messages: 3
Offline

Is there any way to include the posted comments automatically via the admin panel?

Like: http://proxy2.de/poll/demo_4.php

I've tried everything I could but I cannot do it at all!


Thanks in advance
fro your help

Pompo
Auron
Expert
[Avatar]

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

/* 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);

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]
pompo
Newbie

Joined: 05/06/2004 22:03:33
Messages: 3
Offline

Hi There
I've downloaded your text files from your
site but I can;t even read them,,,,I'm on a mac
os9.1 What app should I use to read the files
correctly? The text is al garbled...

If I copy the php code you've posted how should I put it in there?
I'm php *ignorant*
The file where the poll is:

<?php
// Important! You have to include it before your html code
include_once "/homepages/41/d99558919/htdocs/phppolls/db/poll_cookie.php";
?>

<html>
<body>
<?php
include_once "/homepages/41/d99558919/htdocs/phppolls/db/booth.php";
echo $php_poll->poll_process(2);
?>
<p>&nbsp;</p>
</body>
</html>

Thanks so much

Pompo
Auron
Expert
[Avatar]

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

<?php
// Important! You have to include it before your html code
include_once "/homepages/41/d99558919/htdocs/phppolls/db/poll_cookie.php";
?>

<html>
<body>
<?php
include_once "/homepages/41/d99558919/htdocs/phppolls/db/booth.php";
echo $php_poll->poll_process(2);

/* 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);
?>
<p>&nbsp;</p>
</body>
</html>

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]
pompo
Newbie

Joined: 05/06/2004 22:03:33
Messages: 3
Offline

Hi there
Once I added the comment you suggested I get this error:

Fatal error: Call to undefined function: set_template() in /homepages/41/d99558919/htdocs/phppolls/advancedpolls.php on line 29


this is line 29:
$php_poll->set_template("poll_comment");

Have any idea?

Thankz

Pompo
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum