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 
Messages posted by: Jack A
Forum Index » Profile for Jack A » Messages posted by Jack A
Author Message
I believe many people would want to combine the list and the comments option, that is why I raise the question again.


1. admin > choose your poll > make sure "Allow comments" is checked in the lower right of the page for that poll
2. To show all the Comments below your poll on your page after a vote has been cast, you need to do this, found in the setup instructions, referring to the instructions you see after you first install the app, not the readme.txt, although it may be there as well:

Advanced Poll also support comments:

For comments to work, you must have checked off the "allow comments" box when creating your poll. If you did that, then there will automatically be a link to add a comment to a poll just using the process_poll command. However, the comments will not be displayed anywhere (besides in the admin area), unless you add some more PHP code: <?php
include_once "/booth.php"; # don't use this again if you already have it on the page somewhere.
$php_poll->set_template("poll_comment"); # required to switch to comment mode!
$php_poll->set_comments_per_page(5); # maximum comments to show per page.
$php_poll->set_date_format("d/m/Y H:i"); # how to display the time stamp on comments.
$php_poll->data_order_by("time","desc"); # how to sort the comments. (show oldest first with ("time","asc"))
echo $php_poll->view_poll_comments(ID#); # displays the comments for poll ID#.
echo $php_poll->get_comment_pages(ID#); # displays "next page","last page" thing when you have lots of comments.
?>


If you have modified the php scripts, I'm not sure the above will work. In that case, I would replace your modifications with the original scripts and try it.
so they can match a custom styled poll template?
 
Forum Index » Profile for Jack A » Messages posted by Jack A
Go to:   
Based on the open source JForum