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 
Advanced poll show all  XML
Forum Index » Support Forum
Author Message
Anonymous



Is it possible to make a custom page called archives or so, to allow users to see all past polls?
Anonymous



I want to know that 2!
Auron
Expert
[Avatar]

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

yes in short.

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]
Remi Sture
Newbie

Joined: 06/11/2002 17:53:21
Messages: 4
Offline

<?php

require "poll/include/config.inc.php";
require "poll/include/$POLLDB[class]";
require "poll/include/class_poll.php";
require "poll/include/class_pollcomment.php";
require "poll/include/class_plist.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();

$php_poll = new plist();

/* poll */
$php_poll->set_template_set("plain");
$php_poll->set_max_bar_length(200);
$php_poll->set_max_bar_height(10);
if (isset($HTTP_GET_VARS['poll_id'])) {
echo $php_poll->poll_process($HTTP_GET_VARS['poll_id']);
} else {
echo $php_poll->poll_process("newest");
}

/* poll list */
$php_poll->set_template("poll_list");
$php_poll->set_date_format("d/m/Y");
echo $php_poll->view_poll_list();
echo $php_poll->get_list_pages();

?>
[WWW]
Anonymous



I have created about 20 polls and want to divide them into different categories.

For example. If the polls are money related, then it would appear in money.php, if the polls are sports related, then it would appear in sports.php, etc. etc.

I know there is a view all list.. but can Iselectively show which polls to appear on a specific page.

/* poll list */
$php_poll->set_template("poll_list");
$php_poll->set_date_format("m/d/Y");
echo $php_poll->view_poll_list();
echo $php_poll->get_list_pages();


thanks,

Mike
climber
Newbie

Joined: 05/01/2004 02:50:46
Messages: 1
Offline

so you can't use the standard format???

<?php require "../../poll/booth.php"; echo $php_poll->view_poll_result(5); ?>

I'd like to use it in different places on the same page to display multiple polls? it doesn't seem to work for me...

climber

climber
http://www.neclimbs.com
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum