Author |
Message |
21/03/2006 19:04:50
|
casajump
Newbie
Joined: 21/03/2006 19:01:03
Messages: 4
Offline
|
Everything installed correctly and creating a poll is working, however, I can't seem to get the right code to make the poll appear on my website.
My website is http://www.pcwargaming.com
what should my code look like to include a simple poll on there?
Thanks for your help!
|
|
21/03/2006 19:08:41
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Have a look at the demo on this site or go to your poll's admin panel then the last option on the menu at the top (far right) you should get some example code to use with the full path to the poll files already filled in.
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
21/03/2006 19:25:14
|
casajump
Newbie
Joined: 21/03/2006 19:01:03
Messages: 4
Offline
|
Auron wrote:Have a look at the demo on this site or go to your poll's admin panel then the last option on the menu at the top (far right) you should get some example code to use with the full path to the poll files already filled in.
you mean all this script is already correct?
<?php
// Important! You have to include it before your html code
include_once "/homepages/25/d158218381/htdocs/poll/poll_cookie.php";
?>
<html>
<body>
<?php
include_once "/homepages/25/d158218381/htdocs/poll/booth.php";
echo $php_poll->poll_process(7);
?>
</body>
</html>
I thought there would be a reference to my website somewhere in there.
Thanks
|
|
21/03/2006 20:22:57
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
nope, it goes from your site's root directory.
you could use http://www.yoursite.com/poll/booth.php if you wanted.
but its easier to use the one it gives you.
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
21/03/2006 20:35:55
|
casajump
Newbie
Joined: 21/03/2006 19:01:03
Messages: 4
Offline
|
so this should work now?
<?php
// Important! You have to include it before your html code
include_once "http://www.pcwargaming.com/poll/poll_cookie.php";
?>
<html>
<body>
<?php
include_once "http://www.pcwargaming.com/poll/booth.php";
echo $php_poll->poll_process(7);
?>
</body>
</html>
|
|
22/03/2006 02:25:58
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
ah, my bad, i meant yes the code u posted a couple of posts above will work but it does not need the http://... bit. I meant you could use that instead of the one the poll admin panel gives.
sorry for not explaining it more clearly.
- both pieces of code you posted WILL work.
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
22/03/2006 20:59:41
|
casajump
Newbie
Joined: 21/03/2006 19:01:03
Messages: 4
Offline
|
Ok I got it to work, but everytime I refresh the page, it adds another vote.
Why is that?
Thanks
|
|
|