Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter fattarsi

    (@fattarsi)

    You are correct in lib/simplypoll.php I tried using an output buffer to capture the included content to return it as a string rather than evaluating it right away.

    Add this at the top:
    function get_include_contents($filename) {
    if (is_file($filename)) { ob_start();
    include $filename; return ob_end_clean();
    }
    return false;
    }

    then:
    return get_include_contents(SP_DIR.’page/user/poll-display.php’);

    This puts the poll container in the correct place but there is an error inside. Thought it would be a quick fix.

Viewing 1 replies (of 1 total)