MyBB Community Forums

Full Version: Simple Like System
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have this line of code added to my author postbit template

{$post['likes_received']}Likes&nbsp;Received <br />

But it doesn't show anything apart from "Likes Received", inside the settings "Number of likes received in postbit?" is set to "Yes". It doesn't work in the default skin which comes with MyBB.

Not sure what's causing this but would appreciate any assistance. Thanks
OP sent me a PM. Posting here my response incase others struggle again:



Looks like it's fixed I added the following to the postbit template:

{$post['likes_received']} Likes Received

Screenshot:

[Image: nRwrUO5.jpg]
Note that you have to add the code to the actual postbit or postbit_classic template in order for it to work. This is caused by the order of the hooks. I need to see if I can find a way round that.
Yup, Euan is spot on. I had posted it in the wrong place but Euan's amended it.

Thanks Smile