1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 increase post like count

Discussion in 'XenForo Questions and Support' started by alex.tsakiris, Dec 21, 2013.

  1. alex.tsakiris

    alex.tsakiris Member

    Hi... is there an easy way to set the like count for a post. I'd like admins (or folks I give permission) to be able to pre-set a post to a high like count in order to feature it as popular.

    Many thx,
  2. Amaury

    Amaury Well-Known Member

    Can you elaborate a bit?
  3. alex.tsakiris

    alex.tsakiris Member

    Hi Amaury... sure... as admin, I'd like to be able to set the like count on the first post in a new thread to 10 so that it immediately moves to the top of the popular threads list I use.

  4. Jeremy

    Jeremy Well-Known Member

    No, there is no method to set it to a high like count. You will likely need to have custom development.
  5. alex.tsakiris

    alex.tsakiris Member

    Hi Jeremy... can you point me to the a point in the code where I might begin to poke around. I really just want to create a special instance of "like" that bumps the count by +5. Or, change the code so that admin are allowed to "like" multiple times (this one fix would really handle all my needs).

    Last edited: Dec 21, 2013
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Likes are always associated with a member.
    How are you going to determine which members to use to artificially increase the like count?
  7. alex.tsakiris

    alex.tsakiris Member

    Hi Brogan... just me would be fine... all admins would be better. I don't need to even permanently increase the count. I was thinking I might just create a special post rating (using the Post Ratings addon) and then if a post has that rating I would add to it's rating count when generating my list of "most liked" posts.
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Well just using your ID would only increase the count by 1, which presumably isn't going to achieve what you want.
    Realistically there's no easy way to spoof this.
    It may be simpler just to create 20 or so dummy accounts and use those to like the posts.
  9. alex.tsakiris

    alex.tsakiris Member

    thx... thought of that, but how would I do that without logging out and back in 20 times... kinda lot of hassle. thoughts?
  10. Brogan

    Brogan XenForo Moderator Staff Member

    Set up 20 different profiles in Chrome or Firefox.

Share This Page