TinyPortal

Development => Support => Topic started by: othg_weasel on May 17, 2010, 04:04:12 PM

Title: advance poll
Post by: othg_weasel on May 17, 2010, 04:04:12 PM
Ive been trying to get this advance poll system to work on my site but I keep getting an error. I'm supposed to add this code to view the poll.

<html>
<body>
<?php
include_once "/home2/othggame/public_html/legendsracewaymx/poll/booth.php";
echo 
$php_poll->poll_process(4);
?>

</body>
</html>


when I add it I get only this
poll_process("newest"); ?>

if I add it in a php block I get this error.


Parse error: syntax error, unexpected '<' in /home2/othggame/public_html/smf20/Sources/Load.php(2092) : eval()'d code(48) : eval()'d code on line 1


any ideas? I have exhausted my self with this and am about to remove it off my site so this Is my last hope :)
I have read all of there forums and have done all that I can with my limited knowledge.

link to the poll system > http://www.proxy2.de/
Title: Re: advance poll
Post by: Crip on May 17, 2010, 04:27:39 PM
any php block needs removal of brackets

<?php
?>

Title: Re: advance poll
Post by: Lesmond on May 17, 2010, 04:30:07 PM
try it with just the code below... in a php block

include_once "/home2/othggame/public_html/legendsracewaymx/poll/booth.php";
echo $php_poll->poll_process(4);
Title: Re: advance poll
Post by: othg_weasel on May 17, 2010, 04:33:36 PM
worked like a charm...

Thanks again Guys!!! :up: