Not an ST problem but need a quick fix to this. Hi, this is a real simple problem i would imagaine. Warning: main(./poll/poll_cookie.php): failed to open stream: No such file or directory in /home/httpd/vhosts/pureoverclock.com/httpdocs/test/templates/poll_1.php on line 6 It's looking for poll_cookie.php in the template dir but the actual dir its in is not in that folder so if /template would take me into the templates folder what takes me back one dir. In dos its cd.., just need something similer in this case. James.
Not an ST problem but need a quick fix to this. actually, i'll explain the problem in more detail as this hasn't solved it. I want to add advanced poll v2 to my site_footer template but can't get it to show up. I've added the following code to a newly created php file in the main dir (where index.php is) The script files are in folder /poll Here is the code that you need to put in the template or php file: Code: <?php require "/home/httpd/vhosts/pureoverclock.com/httpdocs/test/poll/poll_cookie.php"; ?> Below is the code you use to place the poll in a specific spot on your website. Both these bits of code go in the same file. Code: <?php include_once "/home/httpd/vhosts/pureoverclock.com/httpdocs/test/poll/booth.php"; echo $php_poll->poll_process(4); // x = Poll ID ?> I'm not sure why its not working. I've created a php file with the code above and put it in my home directory and it works, it just won't work when i add this code to site_footer. So Philipp, do you know if i can use Advance Poll with ST? Thanks.
Not an ST problem but need a quick fix to this. Try the following. Add after: Code: <?php global $insert; the following: Code: include_once "/home/httpd/vhosts/pureoverclock.com/httpdocs/test/poll/booth.php"; $mypoll = $php_poll->poll_process(4); // x = Poll ID Then add $mypoll somewhere in the HTML part of the template
Not an ST problem but need a quick fix to this. It half works. All the text now shows up but the tables, colours and graphics for the poll are not displayed. without echo it doesn't work properly This script is annoying me now
Not an ST problem but need a quick fix to this. Ok, if i can't use this script, what is the command to show the ST poll anywhere in a page? ie, $poll or something. I selected "Show this poll on main page? = No" and now just need to call the poll up somewhere else in site_header thanks
Not an ST problem but need a quick fix to this. See this thread: http://www.esselbach.com/thread.php?id=295