XF 1.2 increase post like count

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,
Alex
www.skeptiko.com
 
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.

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

A
 
Last edited:
Likes are always associated with a member.
How are you going to determine which members to use to artificially increase the like count?
 
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.
 
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.
 
Top Bottom