PDA

View Full Version : Adv poll



Maddog
07-07-2005, 10:09 AM
Hi, question for the Great Pablo

trying to get the adv poll to work in BV ( from fantastico)

but get the poll to work, they to place this in the "body" ( tried in HTML BOX and in body)

all you get is
poll_process(4);

Displayed

<?php
include_once "http://www.easttilburyinfantschool.com/booth.php";
echo$php_poll->poll_process(4);
?>


there is 2 of us trying to work this out

Thanks

Pablo
07-07-2005, 10:50 AM
Does your code have a space between after the echo command?

<?php
include_once "http://www.easttilburyinfantschool.com/booth.php";
echo $php_poll->poll_process(4);
?>

Maddog
07-07-2005, 11:11 AM
yes it does
tried this as well, still not luck

http://proxy2.de/forum/viewtopic.php?t=4736

are we doing something wrong to start the php file?

Maddog
07-07-2005, 11:14 AM
did not action

1) Add this to your .htaccess file

AddType application/x-httpd-php .php .html
or
AddType application/x-httpd-php .php .htm
(if you use htm extension)


or do we?

Stroke.nz
07-07-2005, 12:08 PM
Lol thats the part I got lost on as well.

Maddog
07-07-2005, 12:14 PM
ok Pablo "The Great"

http://www.easttilburyinfantschool.com/messages/test10.php

I have now got this far, but full of errors

Pablo
07-07-2005, 12:34 PM
Can you show me the code you have for test10.php?
(Copy Page HTML)

Maddog
07-07-2005, 12:56 PM
<html>
<head>
<title>Advanced Poll</title>
</head>
<body bgcolor="#3A6EA5">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="350" align="center">
<tr>
<td align="center"><table width="170" border="0" cellspacing="0" cellpadding="1" bgcolor="#666699">
<tr align="center">
<td>
<style type="text/css">
<!--
.input { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
-->
</style>
<font face="Verdana, Arial, Helvetica, sans-serif" size="-1" color="#FFFFFF"><b>easttilburyinfantschool.com</b></font></td>
</tr>
<tr align="center">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center" bgcolor="#FFFFFF">
<tr>
<td height="40" valign="middle"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="1"><b>numbers</b></font></td>
</tr>
<tr align="right" valign="top">
<td>
<form method="post" onsubmit="return false;" action="#">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr valign="top" align="center">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="1" align="center">
<tr>
<td width="15%"><input type="radio" name="option_id" value="1"></td>
<td width="85%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">1</font></td>
</tr>
<tr>
<td width="15%"><input type="radio" name="option_id" value="2"></td>
<td width="85%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">2</font></td>
</tr>
<tr>
<td width="15%"><input type="radio" name="option_id" value="3"></td>
<td width="85%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">3</font></td>
</tr>
</table>
<input type="hidden" name="action" value="vote">
<input type="hidden" name="poll_ident" value="4">
<input type="submit" value="Vote" class="input">
<br>
<br>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="1"><a href="#?action=results&amp;poll_ident=4">View results</a></font>
</td>
</tr>
</table>
</form>
<font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="http://www.proxy2.de" target="_blank" title="Advanced Poll">Version 2.03</a></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<br>
</body>
</html>

Pablo
07-07-2005, 01:04 PM
Where's the PHP code?

Maddog
07-07-2005, 01:17 PM
Where's the PHP code?

http://www.easttilburyinfantschool.com/messages/poll.php

<HTML>
<HEAD>
<TITLE>Untitled Page</TITLE>
<META NAME="Generator" CONTENT="Created by BlueVoda">
<?php
// Important! You have to include it before your html code
include_once "/home/easttilb/public_html/poll/poll_cookie.php";
?>


</HEAD>
<BODY bgcolor="#FFFFFF" text="#000000">
<DIV style="overflow:hidden; position:absolute; left:182px; top:143px; width:404px; height:321px; z-index:0" align="left" align="top">
<html>
<body>
<?php
include_once "/home/easttilb/public_html/poll/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>
</DIV>
</BODY>
</HTML>

sry getting all confused

Maddog
07-07-2005, 01:20 PM
sorted it out to work, as php file, but how to you add to BV other than through iframe or another page, i.e display on one page

Pablo
07-07-2005, 01:54 PM
This doesn't look like valid code to me.
A few tips:
- Remove the <BODY> and <HTML> tags from your code are generated by BlueVoda.
- Do not put the PHP code in the HTML component, but somewhere in the page HTML.

Maddog
07-07-2005, 05:31 PM
This doesn't look like valid code to me.
A few tips:
- Remove the <BODY> and <HTML> tags from your code are generated by BlueVoda.
- Do not put the PHP code in the HTML component, but somewhere in the page HTML.


Thank You

http://www.easttilburyinfantschool.com/messages/poll.html

Have got it to work as a pop-up window,

tried everything to display inside BV i.e within a page already made, but couldn't work that out