Quote Originally Posted by AdamTOW View Post
Folks,
I have an editable sidebox and through define page manager I am trying the following code:

<?php
// Important! You have to include it before your html code
include_once "/home/nutrili/public_html/shoppoll/poll_cookie.php";
?>

<html>
<body>
<?php
include_once "/home/nutrili/public_html/shoppoll/booth.php";
echo $php_poll->poll_process(5);
?>
</body>
</html>

The only thing that appears in the sidebox is poll_process(5);

But when I use this code in say Page 2 the poll shows up fine. Obviously there is a conflict in the code I am using in a sidebox area.

How can I adjust the code above and get the poll to work?

Thanks in advance.
You can't easily (if at all) insert php code through the define pages manager. It's designed as an easy way in inserting HTML, and most likely your php is being stripped out leaving only the raw text which is displayed.

I'm guessing that your site also has trouble copying with the way in which you have added a whole mini page in this one box with its own html and body tags. Zen Cart already inserts these for every page. They shouldn't be repeated.

To add php to a sidebox, the blank sidebox mod would be a better option.