1.6 Compatible: Simple Like System
#31
Okay, I'm pushing a fix to GitHub and tagging it as current. To upgrade, simply deactivate and reactivate. If you've changed the button's template, you need to alter it to look like this:

PHP Code:
<a href="xmlhttp.php?action=like_post&amp;post_id={$post['pid']}&amp;my_post_key={$mybb->post_code}class="btn_like" id="likeButton_post_{$post['pid']}">{$buttonText}</a
Serkan and spyder like this post
Reply
#32
I'm not seeing the button...

http://parinellom.x10.mx/mybb/showthread.php?tid=1

BTW, this is exactly the type of system that I've been looking for. Nice work!
Reply
#33
Can you double check the postbit template? Also double check the user permissions.
Reply
#34
The postbit template is calling for it...it should be right next to the edit button. The user permissions are set for yes.

EDIT: I haven't added a like button image to my images folder, and don't notice one in the plugin download. What should the image be titled?
Reply
#35
It uses CSS buttons so no image is required. CSS buttons are generally better.

Any chance I could get details for an admin account so I can test and try get it working?
envira likes this post
Reply
#36
(25-04-2013, 11:26 PM)euan Wrote: It uses CSS buttons so no image is required. CSS buttons are generally better.

Any chance I could get details for an admin account so I can test and try get it working?

No prob. PM'd.
Reply
#37
Is there a way to add a dislike option? I admin a boxing forum, and that was an easy way for us to thumbs up and down certain posts/predictions. (We migrated from ZB, and I am thrilled with the switch!)

That system was just a simple js, and not as reactive/inclusive as yours. The fact that you have this integrated with MyAlerts is fantastic!
Reply
#38
There is no dislike function at the minute, but I'll consider adding it in the future.
spyder likes this post
Reply
#39
So I figured it out. When 'Like own post' is enabled, the button disappears. When you disable that option, the button appears.
Reply
#40
Yeah, that would be Wink Though you should see it on other peoples' posts when that setting is enabled.
Reply