1.6 Compatible: Simple Like System
Love the simplicity of it. IMO, a lot of MyBB plugins are bloated and this one isn't. May be adding it on my forum and removing post count (from the post bit) since it promotes higher quality posts.
Reply
Hi.

This is a great plugin. The only like-plugin I could find which really works.
Please find attached my German language file plus a patch for correct German conjugation.
In inc/plugins/SimpleLikes/Likes.php replace:
PHP Code:
            if (count($likeArray) == AND $likeArray[0] != 'You') {
                
$likePhrase $this->lang->simplelikes_like_plural;
            } else {
                
$likePhrase $this->lang->simplelikes_like_singular;
            } 
with:
PHP Code:
            if (count($likeArray) == AND $likeArray[0] != $this->lang->simplelikes_you) {
                
$likePhrase $this->lang->simplelikes_like_someoneelse;
            } else if (
count($likeArray) == AND $likeArray[0] == $this->lang->simplelikes_you) {
                
$likePhrase $this->lang->simplelikes_like_singular;
            } else {
                
$likePhrase $this->lang->simplelikes_like_plural;
            } 

Thanks for your awesome plugin!
euan likes this post


Attached Files
.zip   german_language.zip (Size: 1.24 KB / Downloads: 2)
Reply
(16-10-2013, 12:36 AM)SebiF Wrote: Hi.

This is a great plugin. The only like-plugin I could find which really works.
Please find attached my German language file plus a patch for correct German conjugation.
In inc/plugins/SimpleLikes/Likes.php replace:
PHP Code:
            if (count($likeArray) == AND $likeArray[0] != 'You') {
                
$likePhrase $this->lang->simplelikes_like_plural;
            } else {
                
$likePhrase $this->lang->simplelikes_like_singular;
            } 
with:
PHP Code:
            if (count($likeArray) == AND $likeArray[0] != $this->lang->simplelikes_you) {
                
$likePhrase $this->lang->simplelikes_like_someoneelse;
            } else if (
count($likeArray) == AND $likeArray[0] == $this->lang->simplelikes_you) {
                
$likePhrase $this->lang->simplelikes_like_singular;
            } else {
                
$likePhrase $this->lang->simplelikes_like_plural;
            } 

Thanks for your awesome plugin!

Ah, nice catch. I'll add that patch to the core!
Reply
What's the variable for displaying how many likes the user has received in post bit? Can't quite find it.
Reply
(02-11-2013, 03:52 PM)Blue Wrote: What's the variable for displaying how many likes the user has received in post bit? Can't quite find it.

Try this:

PHP Code:
{$post['likes_received']} 
Reply
Like this plugin so much !
Jona likes this post
Reply
Can I do something for add a column in threads called likes and when an user likes a post there in the column "likes" it will put +1 or -1.

It´s a feature that it needs very much, :/ and I don´t know how to do it
Reply
I'm not sure I 100% understand exactly what it is you want to do. Could you show me an example?
Reply
for example if I like your post, I want that your plugin do a count of likes in mybb_threads for each thread (mybb_threads likes) that should be +1, if i dislike -1
Reply
It would require a couple of edits to the plugin, or you could use an SQL query and maintain the current table structure. If an SQL query would be okay, I can give you the details.
Reply