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 
comment in pop-up (Advanced Poll)  XML
Forum Index » Support Forum
Author Message
Anonymous



Hello,

Is it posible that I can show the comments in a pop-up screen, when people want to see the comments.

thanks !
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
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum