Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
15/12/2002 22:21:15
|
Anonymous
|
Hello,
Is it posible that I can show the comments in a pop-up screen, when people want to see the comments.
thanks !
|
|
10/05/2003 06:17:52
|
Anonymous
|
All that is necessary is use the default code as provided with the example on "demo 1" the third poll.
Then edit popup.php with the following entries:
After the line saying:
include "./booth.php";
Insert the following:
include "./include/class_pollcomment.php";
Then after:
<?php
$php_poll->set_template_set("popup");
if (isset($poll_ident) && isset($action)) {
$php_poll->set_max_bar_length(110);
echo $php_poll->poll_process($poll_ident);
}
Insert the following:
$php_poll = new pollcomment();
$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($poll_ident);
echo $php_poll->get_comment_pages($poll_ident);
That's it Just save the page and view your poll. It will show up just below the poll results. If there is no comments section shown, then there is probably none posted yet. Post one and then refresh the results window.
Hope it works for everyone! Dan
|
|
|
|
|
|
Based on the open source JForum
|