Not an ST problem but need a quick fix to this.
Forma 17
From: -
From: -
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.
Philipp
From: Austria
Administrator
1342From: Austria
Not an ST problem but need a quick fix to this.
See this thread:
http://www.esselbach.com/thread.php?id=295
See this thread:
http://www.esselbach.com/thread.php?id=295
1 Re: Not an ST problem but need a quick fix to this.
Forma
OP
17
From: -
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
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.
Forma
OP
17
From: -
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
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
1 Re: Not an ST problem but need a quick fix to this.
Philipp
From: Austria
Administrator
1342From: Austria
Not an ST problem but need a quick fix to this.
Try the following. Add after:
the following:
Then add $mypoll somewhere in the HTML part of the template
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.
Forma
OP
17
From: -
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:
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.
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.
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.
Forma
OP
17
From: -
From: -
Not an ST problem but need a quick fix to this.
I think its ../
I think its ../
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.