This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Not an ST problem but need a quick fix to this.


avatar
Forma 17
From: -
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.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Not an ST problem but need a quick fix to this.
avatar
Administrator
1340
From: Vienna, Austria
Not an ST problem but need a quick fix to this.

See this thread:
http://www.esselbach.com/thread.php?id=295
1 Re: Not an ST problem but need a quick fix to this.
avatar
OP 17
From: -
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
1 Re: Not an ST problem but need a quick fix to this.
avatar
OP 17
From: -
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 Grinning Face
1 Re: Not an ST problem but need a quick fix to this.
avatar
Administrator
1340
From: Vienna, Austria
Not an ST problem but need a quick fix to this.

Try the following. Add after:
<?php

global $insert;

the following:

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
1 Re: Not an ST problem but need a quick fix to this.
avatar
OP 17
From: -
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:

<?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.

<?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.
1 Re: Not an ST problem but need a quick fix to this.
avatar
OP 17
From: -
Not an ST problem but need a quick fix to this.

I think its ../

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.