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
|
|
|
Author |
Message |
27/01/2004 01:40:54
|
Anonymous
|
I created a poll.
1. But now after I have the poll loaded, how do I change the format to a different template?
2. When I create a poll, how do i "select" which template I want to use for the poll? As far as I know you can't. Is the "deault" template alwats the "current" template?
kkiely @ aol.com
|
|
28/01/2004 03:25:13
|
pmonahan
Beginner
Joined: 23/01/2004 03:47:28
Messages: 13
Offline
|
It's quite simple actually. You just add one line of code to your page as in the one of the examples below:
$php_poll->set_template_set("popup");
or
$php_poll->set_template_set("simple");
or
$php_poll->set_template_set("plain");
etc....
You already know how to insert the code into your existing page or into a new page (remember must have a .php extension)
Here is what that code probably looks like in your stand-alone page:
?>
<html>
<body>
<?php
include_once "/local/home/username/yourdomanin.com/poll/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>
Here's what it would look like if you use the "popup" template by adding the one line of code
?>
<html>
<body>
<?php
include_once "/local/home/username/yourdomain.com/poll/booth.php";
$php_poll->set_template_set("popup");
echo $php_poll->poll_process(4);
?>
</body>
</html>
Hope this helps
Peter
[/b]
|
|
|
|
|
|
Based on the open source JForum
|