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: Ulrich
Forum Index » Profile for Ulrich » Messages posted by Ulrich
Author Message
You can see how to do a bunch of different things by pointing your browser to demo_1.php (also 2, 3 and 4) in the /poll/ directory.

It's a great program! If it only shipped with a few sentences more documentation ...
I'm also using the text version, and I can't figure out how to do it either. Also, what help file?
Go to:

http://www.proxy2.de/forum/viewtopic.php?t=1668
Got it working! Found the code to insert on the page in another post.

Don't understand though why the distribution doesn't include an explanation of what to put on the page to make the poll show up.
Thanks for the response!

It's still not working. I put:

<?php
include "/www/hm/j/jkalb/poll/poll_cookie.php";
?>

in before all html coding, and stuck

<?php
/* path */
$poll_path = "/www/hm/j/jkalb/poll";
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();
/* the first poll */
echo $php_poll->poll_process(1);
/* the second poll */
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(2);
/* the third poll */
$php_poll->set_template_set("popup");
if ($php_poll->is_valid_poll_id(3)) {
echo $php_poll->display_poll(3);
}
?>

in the body of the page that is to include the poll. The page has the *.php suffix. Then when I go to the page in my browser it stops loading at the point where the second code snippet appears.

Any ideas?
Mine doesn't work either. I've enabled PHP. Two questions:

1. In

<?php
/* Include this before your html code */
include "./poll_cookie.php";
?>

do you substitute the relative path to poll_cookie.php for "./poll_cookie.php"?

2. The script text seems to be set up for the db version. What do you use for the textfile version? I've looked and can't find anything in the files I downloaded.

Thanks!
 
Forum Index » Profile for Ulrich » Messages posted by Ulrich
Go to:   
Based on the open source JForum