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 
Messages posted by: casajump
Forum Index » Profile for casajump » Messages posted by casajump
Author Message
Ok I got it to work, but everytime I refresh the page, it adds another vote.

Why is that?

Thanks
Auron wrote: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.


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>
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
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!
 
Forum Index » Profile for casajump » Messages posted by casajump
Go to:   
Based on the open source JForum