Support » Plugin: Simply Poll » [Plugin: Simply Poll] Poll appears at top of page

Viewing 3 replies - 1 through 3 (of 3 total)
  • I too have this problem fattarsi.

    Plugin Author WolfieZero

    (@wolfiezero)

    I think I know exactly why and it’s just the way I coded it as it echo’s out the code rather than returns it. I’ll sort it out within the week and get an update pushed out.

    Thanks for reporting this! (Unfortunately, where I’m using this and my test bed it’s always the first thing to be called.)

    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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Simply Poll] Poll appears at top of page’ is closed to new replies.