1.6 Compatible: Simple Like System
hi euan! i love this plugin! but i have a couple of concerns, please HELP me out...

1. is it possible to skip this page?

[Image: bna4.png]

if i'm not mistaken it loaded automatically before...

2. can you please explain step by step how to change the "Like" to a button image? coz i tried some of the methods posted in this thread and none of them worked the way it should...

really would appreciate it, thanks! Happy
Reply
for some reason problem 1 is solved

i placed this code in the like button template

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="http://i57.servimg.com/u/f57/14/05/87/26/postbi10.gif"/></a

and replaced the js with this

PHP Code:
if (data.buttonString === "Like") {
    
button.attr('src''http://i57.servimg.com/u/f57/14/05/87/26/postbi10.gif');
} else {
    
button.attr('src''http://i57.servimg.com/u/f57/14/05/87/26/postbi11.gif');



what happens is after a post is liked, the like button stays the same, it doesnt change into unlike...

please HELP! Sad
Reply
(18-03-2014, 09:23 AM)lexicondevil Wrote:
(09-03-2014, 03:27 PM)euan Wrote:
(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.

yes it used to but for some reason we lost the actual like my alerts integration no option to select it anywhere

have tried the usual uninstall install routine ect

Which version of MyAlerts are you using may I ask?

(18-03-2014, 01:20 PM)leonidas Wrote: for some reason problem 1 is solved

i placed this code in the like button template

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="http://i57.servimg.com/u/f57/14/05/87/26/postbi10.gif"/></a

and replaced the js with this

PHP Code:
if (data.buttonString === "Like") {
    
button.attr('src''http://i57.servimg.com/u/f57/14/05/87/26/postbi10.gif');
} else {
    
button.attr('src''http://i57.servimg.com/u/f57/14/05/87/26/postbi11.gif');



what happens is after a post is liked, the like button stays the same, it doesnt change into unlike...

please HELP! Sad

Ah, that'll be because you've hard-coded the image into the template. The plugin uses a variable there to get the right string. You'd have to edit the plugin file's PHP code. A future version will be adding support for button images natively with a setting to set the image URLS.
Reply
(18-03-2014, 07:14 PM)euan Wrote: Ah, that'll be because you've hard-coded the image into the template. The plugin uses a variable there to get the right string. You'd have to edit the plugin file's PHP code. A future version will be adding support for button images natively with a setting to set the image URLS.

so you're telling me that right now there's no way to properly replace the text with images?
Reply
There is so long as you don't mind editing the plugin files.
Reply
(20-03-2014, 08:12 PM)euan Wrote: There is so long as you don't mind editing the plugin files.

of course i dont mind... please tell me how! im not a gifted programmer like you, you know... Toungue
Reply
(26-03-2014, 03:41 AM)leonidas Wrote:
(20-03-2014, 08:12 PM)euan Wrote: There is so long as you don't mind editing the plugin files.

of course i dont mind... please tell me how! im not a gifted programmer like you, you know... Toungue

Any chance of getting a dislike button added?
Reply
SimpleLikes 1.3.1 is now available for download

This is a minor release aimed at cleaning up code and fixing minor bugs.

Changes

- Fixed issue where like button wouldn't show if you had the option to allow users to like their own posts enabled
- Cleaned up JavaScript to provide a solid API for future enhancements
- Added minified version of the core JavaScript file
- Moved classes into ./inc/plugins/MybbStuff/SimpleLikes directory

Download

You can download SimpleLikes 1.3.1 here: https://github.com/euantorano/SimpleLike.../1.3.1.zip
Reply
for me this bug http://www.mybbstuff.com/thread-14-post-...ml#pid1966
not solved in 1.3.1
Reply
Thanks for the reminder. I'll patch that this week.
martec likes this post
Reply