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 
Poll template  XML
Forum Index » Support Forum
Author Message
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
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]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum