1.6 Compatible: Simple Like System
(11-02-2014, 11:33 AM)insertco Wrote:
(09-01-2014, 08:48 AM)euan Wrote: You will need to change the javascript file so that it changes to an image when clicking rather than simply changing the text. The line you will need to change is this one:

PHP Code:
btn.text(data.buttonString); 

It should look something like this:

PHP Code:
if (data.buttonString === "Like") {
    
button.attr('src''like_image_url.png');
} else {
    
button.attr('src''unlike_image_url.png');


Don't work for me, I change the .js but the button only show "Like"..

Did you change the template too?
Reply
I tried likebutton template with

PHP Code:
<a href="xmlhttp.php?action=like_post&amp;post_id={$post['pid']}&amp;my_post_key={$mybb->post_code}class="mycss" id="likeButton_post_{$post['pid']}"><img src="images/theme/like.png"/></a

and

PHP Code:
<a href="xmlhttp.php?action=like_post&amp;post_id={$post['pid']}&amp;my_post_key={$mybb->post_code}class="mycss" id="likeButton_post_{$post['pid']}">{$buttonText}</a

the .js with

PHP Code:
if (data.buttonString === "Like") {
    
button.attr('src''like_image_url.png'); #(http://.... or  images/theme...)
} else {
    
button.attr('src''unlike_image_url.png'); #(http://.... or  images/theme...)


But only show "Like"
Reply
The first code should be right for the template. Do you have a link to the forum and a test account I can use?
Reply
@Euan

first of all thanks for this plugin

in this page... http://www.mybbstuff.com/misc.php?action...&user_id=1
not possible show more? With page... Each page show 20 results ?
Reply
(17-02-2014, 04:27 AM)martec Wrote: @Euan

first of all thanks for this plugin

in this page... http://www.mybbstuff.com/misc.php?action...&user_id=1
not possible show more? With page... Each page show 20 results ?

Strange, I thought I'd added a setting for that. I'll add one for the next release for sure.
martec likes this post
Reply
(17-02-2014, 07:50 PM)euan Wrote:
(17-02-2014, 04:27 AM)martec Wrote: @Euan

first of all thanks for this plugin

in this page... http://www.mybbstuff.com/misc.php?action...&user_id=1
not possible show more? With page... Each page show 20 results ?

Strange, I thought I'd added a setting for that. I'll add one for the next release for sure.

thanks Grin
Reply
(08-01-2014, 11:37 PM)euan Wrote:
(08-01-2014, 10:51 PM)sn4g Wrote: does this work with myalerts?

Sure does. It exclusively works with myAlerts - there's no other notification system when you receive a like.

still not getting any myalert notifications for post likes
no option in user CP to select likes
'likes' is set to yes under board settings>myalerts settings

the only alert it seems to work for is when receiving a PM?and then after reading the alert doesn't go away.
Reply
I just noticed this plugin doesn't work on Tapatalk at all -
The popular Thanks/Like System Plugin works fine on it - Can you please fix it?
Reply
(05-03-2014, 10:53 PM)lexicondevil Wrote:
(08-01-2014, 11:37 PM)euan Wrote:
(08-01-2014, 10:51 PM)sn4g Wrote: does this work with myalerts?

Sure does. It exclusively works with myAlerts - there's no other notification system when you receive a like.

still not getting any myalert notifications for post likes
no option in user CP to select likes
'likes' is set to yes under board settings>myalerts settings

the only alert it seems to work for is when receiving a PM?and then after reading the alert doesn't go away.

That's odd. I'll look into that but it certainly used to work.

(09-03-2014, 01:02 PM)MNIAL95 Wrote: I just noticed this plugin doesn't work on Tapatalk at all -
The popular Thanks/Like System Plugin works fine on it - Can you please fix it?

I don't actually use tapatalk. I'll contact them and see if I perhaps have to do something to get it added to their app.
lexicondevil likes this post
Reply
Hi euan, the plugin works great, but when I try to add in the postbit_author_user this variable:

Code:
{$post['likes_received']}

don't work Sad
Reply