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: Anonymous
Forum Index » Profile for Anonymous » Messages posted by Anonymous
Author Message
Ich möchte gerne mehrere Poll zur Abstimmung bereitstellen, also habe ich mehre erstellt und sie dann mit:

<p><?php
$poll_path = "/vpserver/web/vps01136/www/poll/db";
require $poll_path."/include/config.inc.php";
require $poll_path."/include/$POLLDB[class]";
require $poll_path."/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();
$php_poll = new poll();
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(6);
?></p>
<p><?php
$poll_path = "/vpserver/web/vps01136/www/poll/db";
require $poll_path."/include/config.inc.php";
require $poll_path."/include/$POLLDB[class]";
require $poll_path."/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();
$php_poll = new poll();
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(4);
?>
<p><?php
$poll_path = "/vpserver/web/vps01136/www/poll/db";
require $poll_path."/include/config.inc.php";
require $poll_path."/include/$POLLDB[class]";
require $poll_path."/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();
$php_poll = new poll();
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(5);
?></p>

eingebunden, aber nur der erste Poll wird dargestellt. Und dann erscheint noch eine Fehlermeldung die man unter http://www.stronghold-game.net/index.php?site=poll besichtigen kann.

Was habe ich falsch gemacht???
It works.....THANX!!
Cuz I don't have a mysql database i use the guestbook 1.5... works nice, but can't I edit messages?

and my second question: I have translated everything to dutch, but how do I translate the message you get when you press send into dutch or is that impossible?? and the message you get when you forgot your name or else? where can i change that pages?
you can't use the SSI script in JS.

<SCRIPT>window.open("http://www.gatewayministries.co.uk/poll/poll_ssi.php?poll_id=5",......

create a new poll and save it as my_poll.php



and fix your stupid poll5.shtml

<SCRIPT>window.open("http://www.gatewayministries.co.uk/poll/my_poll.php?poll_id=5",......
your db settings are wrong.
ask your server admin
the poll must be a valid AND none-hidden one
please post the url where the poll is installed
DerSchlawiner wrote:
Habe gleiches Problem! Habe bereits

<?php require "poll_cookie.php"; ?>

sowie

<?php
include_once "...poll_cookie.php";
?>

versucht! Welches ist richtig?? Beide sind irgendwo in der hilfe angegeben!


der zweite php-code ist auf jeden fall falsch und müsste eine fehlermeldung ergeben. In der Regel sollte der komplette pfad stehen

z.B.
<?php
require "/usr/local/www/htdocs/poll/poll_cookie.php";
?>
versuch's mal mit

chdir("/home/meinedomain/www/cms/poll");

bevor du den poll einbindest.
1) hmm... wäre praktisch

2) und was soll das bringen ?
Anonymous wrote:
Gibt es auch die Möglichkeit den Poll mit einem Link einzufügen?

der auf die booth.php Datei linkt?

Ich brächte so 100 Polls... und das wäre dann 100 HTML Seiten die ich extra erstellen müßte... mit einem Link wäre ich da um einiges schneller, da nicht alle Pols auf der gleichen Seite sein soll...


Hoffentlich gibt es da ein Lösung?


Benutze einfach die Liste wie beim Demo 3:

http://www.proxy2.de/poll/demo_3.php
völliger quatsch!
muss must darauf achten, dass du die php-codes nicht mehrmals einbindest (require require $poll_path."/include/class_poll.php"; , usw.)
Create a new php page and copy the code from the demo.
e.g.

There are 2 scripts (log.pl and log2.pl)
Try the second one.
PHP version
 
Forum Index » Profile for Anonymous » Messages posted by Anonymous
Go to:   
Based on the open source JForum