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 
Help Embedding Poll  XML
Forum Index » Support Forum
Author Message
wirockstar
Newbie

Joined: 30/07/2004 18:28:00
Messages: 2
Offline

I'm really a novice...

I've created my first poll and I've gotten to the point where it says "To embed a poll into a webpage insert the code snippet from below:"

<?php
// Important! You have to include it before your html code
include_once "/u/htdocs/johnso5/pollphp - folder/db/poll_cookie.php";
?>

<html>
<body>
<?php
include_once "/u/htdocs/johnso5/pollphp - folder/db/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>


I'm working in Dreamweaver and I'd like the poll to be in a layer that I've put in the position I like. What do I do now? I tried paste HTML, I tried insert script. Neither worked. I'm sure this is some easy thing but I've never done it before.

Or, this just crossed my mind...am I doing it right but have to upload it first to see it correctly? I've only tried to preview it off my computer...

Help! I need this up by tomorrow!

THANKS!
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

You'll need to upload it to your server to test it.
PHP is a server-side based language so its not rendered or executed like
HTML and JavaScript are in your browser.

Also i've found DreamWeaver
(at least MX 2004) doesn't render the HTML code properly anyway so I usually
view my code in an actual browser. But I think it only does it with old parts
of HTML code that are deprecated.

One last thing make sure the page' extension is .php not .html/.htm

- Auron

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]
wirockstar
Newbie

Joined: 30/07/2004 18:28:00
Messages: 2
Offline

I got it... It was the page extension. Thanks a bunch!

www.johnsonrock.com

So far no problems simply pasting HTML through Dreamweaver...fingers crossed...
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

wirockstar wrote:I got it... It was the page extension. Thanks a bunch!

www.johnsonrock.com

So far no problems simply pasting HTML through Dreamweaver...fingers crossed...


Works fine for me, did a little test, no errors and vote was registered

- Auron

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]
Anonymous



hey its not working for me? why all I see when I upload it is

connect(); $php_poll = new pollcomment(); /* poll */ $php_poll->set_template_set("plain"); $php_poll->set_max_bar_length(125); $php_poll->set_max_bar_height(10); echo $php_poll->view_poll_result(1); /* poll comments */ $php_poll->set_template("poll_comment"); $php_poll->set_comments_per_page(5); $php_poll->set_date_format("d/m/Y H:i"); $php_poll->data_order_by("time","desc"); echo $php_poll->view_poll_comments(1); echo $php_poll->get_comment_pages(1); ?>

What am I doing wrong?
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Read the posts above if they don't solve your problem, then post again.

_ Auron

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]
Anonymous



is this installed correctly? here check it out

http://www.vwforce.com/polls[/url]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Looks like it. It only looks odd coz you've deleted the default polls that were setup at install.

_ Auron

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