GithubHelp home page GithubHelp logo

mybbstuff / simplelikes Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 161 KB

A simple post liking system for personal use. Integrated with MyAlerts.

License: MIT License

PHP 90.46% JavaScript 3.82% HTML 5.62% CSS 0.10%

simplelikes's People

Contributors

cameron-d avatar chack1172 avatar euantorano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

simplelikes's Issues

Buttons for like/unlike

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 ?

sort likes list

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.

guests can like posts

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?

https://imgur.com/a/mQe9cAA

only admins and mods can use this

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.

modify the image to something different

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.

Alternate Likes Display on Posts

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.

Conversion instructions for G33K's like/thank you system

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.

Incorrect Language Given (imo)

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.

Plugin Fails to Install on PostgreSQL

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;

keep grammar uniform

the "A" in And is capitalized, while the rest of the text is lower case. The A should be changed to a so it reads as and.

137 06 14

adding likes to postbit problem

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

clicking on alerts does not clear them

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.

1054 - Unknown column 'simplelikes_can_like' in 'field list'

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'

memberlist category for likes

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.

error

Fatal error: Class 'MybbStuff_SimpleLikes_Import_Manager' not found in /home4/*****/public_html/admin/modules/mybbstuff_likes/import.php on line 22

Change appearance of liked line

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.

Table indexing

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.

ACP Plugins Page Blank

After uploading the files to my host
i went to the plugins page to activate the plugin
and it was blank.

added more usable variables for language file

I'm not sure if there's more available to use, but I'd like to change up the text that a user sees when someone likes one of their posts. What I'd really like to do is change 'your post' to the actual name of the post so the alert is more useful.

see below as an example of the current text format:

142 03 32

MySQL Errors On Install/Uninstall

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.