Simply Poll
Poll appears at top of page (4 posts)

  1. fattarsi
    Posted 4 years ago #

    Regardless of where I put the shortcode, the poll always appears at the top of the page content area. How can I put the poll at the bottom or in the middle of the content?


  2. williamalake
    Posted 4 years ago #

    I too have this problem fattarsi.

  3. WolfieZero
    Plugin Author

    Posted 4 years ago #

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

  4. fattarsi
    Posted 4 years ago #

    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;

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simply Poll
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic