mybbstuff / simplelikes Goto Github PK
View Code? Open in Web Editor NEWA simple post liking system for personal use. Integrated with MyAlerts.
License: MIT License
A simple post liking system for personal use. Integrated with MyAlerts.
License: MIT License
Hi, sorry for my english, I'm french.
I try to use buttons for like/unlike instead of text.
The image appear, but when I click for "like", the link to "unlike" image appear instead the image.
If I reload page, "unlike" image appear. But if I click, it show me the link to "like" image...
Can you fix it or help me, please ?
it'd be a nice enhancement if we can turn on sorting for the likes list in the postbit so it sorts the list via username from asc-desc, etc., assuming this doesn't add too much load.
The list of likes given/received does not seem to be pagination as per http://www.mybbstuff.com/thread-14-post-1966.html#pid1966
I have had the simple likes plugin installed for over 2 years. Never had a problem. All of a sudden guests seem to be able to like posts. I checked the settings: usergroup Guests is set to off. As well as always has been, Guest is not a username, nor is it a link.
Why would all of a sudden guest be able to like posts?
When I click on the like button, the button will keep switching to Like and Unlike, to eventually staying at like. Also the like bar won't appear after I refresh the page. Maybe it would be better if it appears after liking a post.
Sometimes I would like a post, but refresh a page to find out I didn't....
Here's a video link of my problem: https://www.youtube.com/watch?v=vRO8pbPwgDY
One of my users informed me they do not get this option in their postbit. AFter checking a bogus account, i see that only admins and mods can see and use the like post button. There is no option for certain user groups in the settings...there are only 5 setttings.
I just don't get any alerts on likes. Quoting and replying and so on works.
this is an enhancement that the thank you/like plugin had. since a lot of people like tapatalk, they like this feature.
I actually do want the thumbs up image. However i am changing the buttons_sprite.png to use other images. Every time i do this the simple likes image changes too. But i dont want it to. I would like to change simple likes plugin to stay with the thumbs up image.
I dont see an option in the settings for which image to use...and i dont see in the code anywhere it links to
images/buttons_sprite.png to use the image.
Hi,
This is a idea involving the posts order by maximum to minimum likes after the OP like in FB, reddit etc.
Is it possible to implement this along with the likes system?
Regards,
G
It would be useful to be able to disable likes when inside certain forums.
not doing so leads to confusion as the alert is no longer valid. the thank you/like plugin does this.
Just a small request. IMO the big list of usernames looks pretty messy. I'd much prefer an alternate view of simply X users liked this post.
or even just a variable (updated via AJAX) listing the number of likes so it could be embedded into a button a la Twitter.
There is a striking lack of instruction on how to convert from g33k's system to SimpleLikes. There's nothing in either plugin's settings, and there is zero instruction anywhere that I can find. Perhaps this should be mentioned somewhere, perhaps in the readme.md.
When only two users have liked a post, the likes are formatted as You, other_user like this post
imho it should be `You and other_user like this post.
I'll create a pull request with the tiny changes needed to make that happen.
MyBB Version: 1.8.21
Database: PostgreSQL 11.3
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
0 - ERROR: syntax error at or near "`" LINE 2: `id` INT(10) NOT NULL AUTO_INCREMENT, ^
Query:
CREATE TABLE IF NOT EXISTS mybb_post_likes( `id` INT(10) NOT NULL AUTO_INCREMENT, `post_id` INT(10) unsigned NOT NULL, `user_id` INT(10) unsigned NOT NULL, `created_at` TIMESTAMP, PRIMARY KEY (id), INDEX `post_id_index` (`post_id`), CONSTRAINT `unique_post_user_id` UNIQUE (`post_id`,`user_id`) ) ENGINE=InnoDB;
Uninstalling the plugin fails with an error relating to the modifications made to the Tapatalk plugin.
the tutorial for adding your likes received on postbit at
https://community.mybb.com/thread-173552.html
When i insert
Number of likes received: <a href="{$mybb->settings['burl']}/misc.php?action=post_likes_received_by_user&user_id={$post['id']}">{$post['likes_received']}</a>
into the postbit and postbit_classic, this does show correctly on the postbit...however the UID is not selected when you click on the number of likes. More info here
https://community.mybb.com/thread-204974.html
if you click on an alert from the simple likes plugin, it does not clear it and/or mark it as read. so if you have 3 alerts from liked posts, click on all of them, it'll still show that you have 3 alerts.
hi,
When i update the permission for each user group the system display this error:
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
1054 - Unknown column 'simplelikes_can_like' in 'field list'
Query:
UPDATE osdvn_usergroups SET type
='1', title
='Registered', description
='After registration, all users are placed in this group by default.', namestyle
='{username}', usertitle
='', stars
='0', starimage
='images/star.gif', image
='', isbannedgroup
='0', canview
='1', canviewthreads
='1', canviewprofiles
='1', candlattachments
='1', canpostthreads
='1', canpostreplys
='1', canpostattachments
='0', canratethreads
='1', caneditposts
='1', candeleteposts
='1', candeletethreads
='1', caneditattachments
='1', canpostpolls
='1', canvotepolls
='1', canundovotes
='0', canusepms
='1', cansendpms
='1', cantrackpms
='1', candenypmreceipts
='1', pmquota
='200', maxpmrecipients
='5', cansendemail
='1', cansendemailoverride
='0', maxemails
='5', canviewmemberlist
='1', canviewcalendar
='1', canaddevents
='1', canbypasseventmod
='0', canmoderateevents
='0', canviewonline
='1', canviewwolinvis
='0', canviewonlineips
='0', cancp
='0', issupermod
='0', cansearch
='1', canusercp
='1', canuploadavatars
='1', canchangename
='0', showforumteam
='0', usereputationsystem
='1', cangivereputations
='1', reputationpower
='1', maxreputationsday
='5', maxreputationsperuser
='0', maxreputationsperthread
='0', attachquota
='0', cancustomtitle
='1', canwarnusers
='0', canreceivewarnings
='1', maxwarningsday
='0', canmodcp
='0', showinbirthdaylist
='1', canoverridepm
='0', canusesig
='1', canusesigxposts
='0', signofollow
='0', simplelikes_can_like
='1', simplelikes_can_view_likes
='1' WHERE gid='2'
In /memberlist.php There is a category for reputation, post count, referrals etc. It would be a nice enhancement to add the likes count to this category as well. For all i care it could even replace the referrals category.
Fatal error: Class 'MybbStuff_SimpleLikes_Import_Manager' not found in /home4/*****/public_html/admin/modules/mybbstuff_likes/import.php on line 22
How can you change the CSS of the line that shows
"X likes this post"
Its by default black, i would like to make the background transparent so that its not so vibrant and show the default layout of white.
Security issue
As noticed in this thread and my own testing, the post_likes
table lacks an index on the post_id
column which results in extremely long-running queries on thread view if like counts are shown in the postbit (25 seconds in my case, for a table of 300k likes). Adding an index to the post_id
column reduced it to 300ms for me - still somewhat long, but over 70x faster.
Additionally, the table has an id
column acting as a primary key but the ID is never referenced (well, looking at the likePost()
function it isn't, but it may be elsewhere that I didn't notice) so that column could be removed the the primary key made to be PRIMARY KEY (post_id, user_id)
.
Probably won't be any performance changes but removes some unneeded data from the table and will eliminate any possibility of a user somehow double-liking a post.
Just realised that the id
gets used for ordering so disregard that. A unique constraint on those columns could still be done though.
After uploading the files to my host
i went to the plugins page to activate the plugin
and it was blank.
If MyAlerts isn't installed there are errors when the plugin attempts queries in the alerts
and alert_settings
tables (which ofc don't exist).
Will submit pull request next.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.