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 
Script help for Advanced Poll 2.04  XML
Forum Index » Support Forum
Author Message
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!
Auron
Expert
[Avatar]

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)
[Email] [WWW]
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
Auron
Expert
[Avatar]

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)
[Email] [WWW]
casajump
Newbie

Joined: 21/03/2006 19:01:03
Messages: 4
Offline

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
Expert
[Avatar]

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)
[Email] [WWW]
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
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum