Author |
Message |
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 17/06/2005 19:22:06
|
shawnmichaels
Beginner
Joined: 15/06/2005 00:20:01
Messages: 11
Offline
|
Hi,
I was wondering, if I have a poll that expires in 30 days, and then I create a new poll to automatically kick in when the other poll expires.
If I have it set to show the newest poll, would it show the newest poll after it expires, or when I create it?
How can I have it done to show a poll, and when it expires kick in to the next poll?
Here is my code
- <?php
-
-
- $poll_path = "/home/djshawnm/public_html/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();
-
-
- $php_poll->set_template_set("popup");
- echo $php_poll->poll_process("newest");
-
-
- ?>
Thanks
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 17/06/2005 23:29:33
|
Auron
Expert
![[Avatar]](/forum/images/avatar/13803940053f323eaa510a6.jpg)
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
I think when you put in newest it will use the latest created poll that it can and display that.
To set when a poll will expire from when it was created, you can edit the poll in the admin
area. I think the expire field in the number of days the poll will last.
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 18/06/2005 06:48:51
|
shawnmichaels
Beginner
Joined: 15/06/2005 00:20:01
Messages: 11
Offline
|
Hi there,
This is what I want to do:
If poll 17 is set to expire in 2 weeks, can poll 18 automatically kick in when poll 17 expires?
What happens when there is poll that expires and the is not another one set?
Thanks
|
|
|