• Hi, I tried today to install this plugin, and I’m not even getting it to show up at all. The only mods I did to the original file was putting in my categories, and then changing the number of days.

    I’m not sure where this is referring to: “You need to add a tag to your template where you want the voting box to appear: votio_ballot_box() �

    Where do I put this? Also, do I not have to insert something into my sidebar to display the posts with the highest ratings? (I want to do that).

    I’m fairly new at all this and don’t really understand. Thanks.

    Jack

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Jack, to add the vote box to each post, you need to put it in “The Loop” somewhere. I have inserted it in The Loop in four files in my theme — archive.php, index.php, search.php, and single.php.

    The complete statement to insert is:

    <?php votio_ballot_box(); ?>

    For more information on The Loop, see
    http://codex.wordpress.org/The_Loop.

    As far as displaying a list of posts with the highest ratings, you need to add the following to your sidebar or page:

    <ol><?php votio_top_posts() ?></ol>

    To see an example of this, you can go to my site at
    http://www.officetally.com.

    Click the link in the right column called “Highest Rated Episodes.”

    Thread Starter jimmywhofan

    (@jimmywhofan)

    Great, thanks.

    I actually hired a coder to help me out and I learned what I needed.

    The one thing I dont like about votio, is that it appears to rank the posts according to avg. voting number. This means a post with one vote of 5, will beat out a post with 300 votes averaging 4.8. If there were some way to take into account the number of votes, as well as the average result…that would be nice. I would try and make this plugin if I were a coder…but I’m not so all I could do would be to help pay someone to do it…

    hoboken411

    (@hoboken411)

    Hi there, I got the voting boxes working just fine.

    I’m having a really tough time getting the toplist working in ONE specific page.

    I just don’t know where exactly to put the

      <?php votio_top_posts() ?>

    code!!!!!

    I cannot add it to a page when I write it, just doesn’t work. I’m assuming I need to add it to the page.php file. But I haven’t quite figured it out, since i’m using a different page.php file.

    Can someone help me figure out where to put this toplist php code so that it just appears on the page I want it to?

    Here’s what my page.php file looks like. Any help would be greatly appreciated.

    <?php get_header(); ?>
    <?php require(‘sidebar.php’);?>
    <div id=”content”>
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <div class=”post”>
    <?php require(‘post.php’); ?>
    </div>
    <?php endforeach; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>
    <p align=”center”><?php posts_nav_link() ?>
    <div class=”split”></div>
    <br>
    </div>
    <?php require(‘rightbar.php’);?>
    <?php get_footer(); ?>
    </div>

    </body>
    </html>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Votio plugin- how to’ is closed to new replies.