Tue, 26 Nov 2024
Total Visits
35389874
Visitors today:
1051
Main Menu
Home
Free Scripts
Forum
Guestbook
Repository
Contact
Our Sponsors
Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
Search
Hottest Topics
Member Listing
FAQ
Register
/
Login
Thanks for a great poll script
Forum Index
»
Support Forum
Author
Message
09/02/2005 17:59:02
Subject:
Thanks for a great poll script
Anonymous
It took a bit of time but I finally got my poll script working. Thanks for a great script!
It's just in demo at the moment (still testing) but I added a link to a page listing past polls. You can see the test here:
http://www.media247.co.uk/skydigital/newindex2.php
Code for the list page (you can find it in demo_3.php) is below:
<?php /* path */ $poll_path = "your_poll_path"; 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"; require $poll_path."/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(125); $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("random"); } /* 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(); ?>
10/02/2005 16:40:25
Subject:
zorglub
Beginner
Joined: 10/02/2005 16:37:59
Messages: 5
Offline
how to diplay the comments and the comments forms like for demo_4 ??
10/02/2005 19:31:06
Subject:
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
zorglub wrote:
how to diplay the comments and the comments forms like for demo_4 ??
look at the demo polls and look at the code next to them.
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
Forum Index
»
Support Forum
Go to:
Select a forum
General Discussion
Support Forum
German Forum
Advanced Guestbook Forum
Advanced Guestbook Modifications
Based on the open source
JForum