Contentteller

Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >

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

Discussion in 'Version 1.x' started by forma, Aug 30, 2005.

  1. forma Guest

    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.
    forma, Aug 30, 2005
    #1
  2. forma Guest

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

    I think its ../
    forma, Aug 30, 2005
    #2
  3. forma Guest

    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.
    forma, Aug 30, 2005
    #3
  4. Philipp Guest

    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
    Philipp, Aug 30, 2005
    #4
  5. forma Guest

    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 :D
    forma, Aug 30, 2005
    #5
  6. forma Guest

    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
    forma, Sep 4, 2005
    #6
  7. Philipp Guest

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

    See this thread:
    http://www.esselbach.com/thread.php?id=295
    Philipp, Sep 4, 2005
    #7
Tweet
Facebook:
Forgot your password?
Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >
  • Home
  • Forums

    Forums

    Quick Links
    • Search Forums
    • What's New?
  • Members

    Members

    Quick Links
    • Registered Members
    • Current Visitors
    • Recent Activity
  • Help

    Help

    Quick Links
    • Smilies
    • BB Codes
    • Trophies

Separate names with a comma.

Advanced search...
    Forum software by XenForo™ ©2011 XenForo Ltd.