WordPress.org

Support

Support » Plugins and Hacks » I Recommend This » [Resolved] Allowing post voting on an overview page

[Resolved] Allowing post voting on an overview page

  • Hi,

    I’m testing out using your plugin for allowing readers to vote on posts. I’ve got it working fine on the individual posts page, but I also want readers to be able to vote on each post from an overview page (such as a category page or a custom page displaying latest posts based on a tag).

    Any ideas on how I can best do this?

    http://wordpress.org/plugins/i-recommend-this/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Harish Chouhan

    @hchouhan

    @dtangen75,
    You can do that by editing your theme files directly and adding below code within the loop.

    <?php if( function_exists('dot_irecommendthis') ) dot_irecommendthis(); ?>

    Can’t you make this an option for the plugin? “Show on front page too”

    Would me much easier for people than creating a child theme and editing php files!

    Plugin Author Harish Chouhan

    @hchouhan

    @pattyland I could but am holding of until lot of users request this feature. Currently the setting screen is filled with too much options and the plugin is going in the opposite direction of what I wanted it to be.

    The plugin supports only most use cases and for any extra customization code can be added to the theme.

    Hm, I wonder that this feature is not requested my many users. Facebook Likes, Flattr button etc are always displayed on the homepage too.

    My site is already using a child theme of twentythirteen, and I dont’t want to modify it to stay upgradable! I could write a seconds plugin just to hook your plugin there, but I don’t know which solution is more worse 🙁

    Plugin Author Harish Chouhan

    @hchouhan

    Hi @pattyland,

    While I won’t be able to add that option yet, if you could manage to and share the code, I can release a new version of the plugin with your addition.

    Hi Harish, here are my changes: http://www.diffnow.com/?report=3rt58

    I didn’t add a new option on the settings page, as I think if a user want’s the button below his posts he want’s it everywhere below it posts. Feel free to add one though!

    PS: The Link is only available for 1 month!

    Plugin Author Harish Chouhan

    @hchouhan

    @pattyland Thanks for sharing this. I’m glad you got it to work.

    Plugin Author Harish Chouhan

    @hchouhan

    @pattyland, does that piece of code add the like button at the end of any custom post type as well?

    My costumer is using twentythirteen and have a few posts of the type “Quote”, and it seems working great.

    Just a little change: In line 398 of the new file it should be is_home() instead of is_front_page() because the page with the blog posts can differ from the front page!

    New Diff: http://www.diffnow.com/?report=0yuso

    Plugin Author Harish Chouhan

    @hchouhan

    Thanks @pattyland,

    I’ll copy and paste that code in the FAQ so users who need it can add it to their functions.php

    90% users so far and mostly those using it in their premium themes use it only for certain post type. Adding any code is great, but than removing it in future is bit difficult.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] Allowing post voting on an overview page’ is closed to new replies.
Skip to toolbar