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: SevenofNine
Forum Index » Profile for SevenofNine » Messages posted by SevenofNine
Author Message
Wie wäre es denn mit der Variante :
Zeige Poll als demo 1 mit den kommentaren an ....
Und wenn gevotet wurde dann wie das ergebniss demo 1
auch wieder mit kommentaren.....

So hab ich das am start bei mir ......

Die *.php zum aufrufen sieht so aus

Ich habe auch 2 polls nebeneinander auf der seite

<?php
// Important! You have to include it before your html code
include_once "/home/xxx/name/pollphp/db/poll_cookie.php"; #was unterstrichen ist,ist der absolut pfad vom webspace also nicht www.ich.de
?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>(D)Um(m)frage</title>
</head>

<body>

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="50%"><center><?php

/* path */
$poll_path = "/home/17/wsmetald/pollphp/db";

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

$php_poll = new pollcomment();

/* poll */
$php_poll->set_template_set("template");
$php_poll->set_max_bar_length(125);
$php_poll->set_max_bar_height(10);
echo $php_poll->poll_process(4);

/* 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(4);
echo $php_poll->get_comment_pages(4);
?></center>
</td>

<td width="50%"><center><?php


/* path */


/* poll */
$php_poll->set_template_set("template");
$php_poll->set_max_bar_length(125);
$php_poll->set_max_bar_height(10);
echo $php_poll->poll_process(5);

/* 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(5);
echo $php_poll->get_comment_pages(5);

?>
</td>
</tr>
</table></center>

</body>

</html>


Ich hoffe ich konnte dir weiter helfen

Gruß
Seven
 
Forum Index » Profile for SevenofNine » Messages posted by SevenofNine
Go to:   
Based on the open source JForum