MyBB Community Forums

Full Version: SimpleLikes v2.0.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12
ive got an issue with simplelikes and SSL. Whenever someone likes something, the thread URL is warning, while the rest of the forums are secure.

I checked the console and the warning is for simplelikes getting the thumbs up image for http and not https. Where does simple like  do this so i can add the "https" to it?

Quote:Mixed Content: The page at 'https://python-forum.io/Thread-what-is-this-doc-page-for' was loaded over HTTPS, but requested an insecure image 'http://python-forum.io/images/icons/thumbsup.png'. This content should also be served over HTTPS.
I dont see anywhere in your plugin you call thumbsup either

metulburr@ubuntu:~/Downloads/SimpleLikes_v200$ grep -rn http
README.md:4:Simple Like System is a [MyAlerts](https://github.com/euantorano/MyAlerts) integrated plugin for [MyBB](http://mybb.com) that provides the ability for users to "like" posts on your forum.
README.md:8:* SimpleLike System relies on [Plugin Library](http://mods.mybb.com/view/pluginlibrary) to function.
README.md:9:* SimpleLikes utilises [MyBBStuff's Plugins.Core](https://github.com/MyBBStuff/Plugins.Core) library to provide essential tools.
README.md:13:Support for this plugin is provided via [MyBB Stuff](http://www.mybbstuff.com). Please post there if you have any questions or issues.
jscripts/like_system.js:31:                    "xmlhttp.php?action=like_post",
jscripts/like_system.min.js:18:                t.post("xmlhttp.php?action=like_post", {
inc/plugins/simplelikes.php:9: * @license http://opensource.org/licenses/mit-license.php MIT license
inc/plugins/simplelikes.php:36:		'website'       => 'http://www.mybbstuff.com',
inc/plugins/simplelikes.php:38:		'authorsite'    => 'http://www.euantor.com',
inc/plugins/simplelikes.php:777:$plugins->add_hook('xmlhttp', 'simplelikesAjax');
inc/plugins/simplelikes.php:784:			xmlhttp_error($lang->invalid_post_code);
inc/plugins/simplelikes.php:792:			xmlhttp_error($lang->simplelikes_error_post_id);
inc/plugins/simplelikes.php:801:				) == 'xmlhttprequest'
inc/plugins/simplelikes.php:806:				xmlhttp_error($lang->simplelikes_error_own_post);
inc/plugins/simplelikes.php:815:				) == 'xmlhttprequest'
inc/plugins/simplelikes.php:820:				xmlhttp_error($lang->simplelikes_error_perms);
inc/plugins/simplelikes.php:880:			) == 'xmlhttprequest'
inc/plugins/MybbStuff/Core/ClassLoader.php:5: * @license http://opensource.org/licenses/mit-license.php MIT license
inc/plugins/MybbStuff/SimpleLikes/src/LikeManager.php:10: * @license http://opensource.org/licenses/mit-license.php MIT license
inc/plugins/MybbStuff/SimpleLikes/src/Import/Manager.php:8: * @license http://opensource.org/licenses/mit-license.php MIT license
inc/plugins/MybbStuff/SimpleLikes/src/Import/AbstractImporter.php:8: * @license http://opensource.org/licenses/mit-license.php MIT license
inc/plugins/MybbStuff/SimpleLikes/templates/likebutton.html:2:   href="xmlhttp.php?action=like_post&post_id={$post['pid']}&my_post_key={$mybb->post_code}">
admin/modules/mybbstuff_likes/import.php:9: * @license http://opensource.org/licenses/mit-license.php MIT license
admin/modules/mybbstuff_likes/module_meta.php:7: * @license http://opensource.org/licenses/mit-license.php MIT license
metulburr@ubuntu:~/Downloads/SimpleLikes_v200$ grep -rn .png
metulburr@ubuntu:~/Downloads/SimpleLikes_v200$ grep -rn thumbsup


Found it. Its in a template not the code simplelikes_likebar. Nevermind.
I found a problem where if you like a post and unlike it multiple times, the user will receive multiple notifications. I think that the problem is here (doing this way, it works):

$query = $db->simple_select(
 'alerts',
 'id',
 "alert_type_id = '{$alertType->getId()}' AND object_id = {$postId} AND uid = " . (int)$mybb->user['uid']
);

The uid column in the alerts table register the uid of the user that receive the alerts, so in this case, the user that receive the like in the post. Then instead of $mybb->user['uid'] I inserted $post['uid'].

And also, idk why, the deleteAlerts functions doesn't work well, so I inserted directly:

$db->delete_query('alerts', "id = {$alertId}");

(The parameter as I know doesn't need controls)
Ah, I'll look into that, thanks!
Do you add some codes for display like counts in forumdisplay?
Hi,

I'm afraid that's not currently possible.
Hi Euan. Its possible to include formatted username with this plugin?
(2019-06-17, 04:17 AM)makpaolo Wrote: [ -> ]Hi Euan. Its possible to include formatted username with this plugin?
Do you mean in the bar that shows a list of users who've liked a post? If so, I can add that quite easily.
(2019-06-17, 09:31 AM)Euan T Wrote: [ -> ]
(2019-06-17, 04:17 AM)makpaolo Wrote: [ -> ]Hi Euan. Its possible to include formatted username with this plugin?
Do you mean in the bar that shows a list of users who've liked a post? If so, I can add that quite easily.

I'd like to see an option for this too. Perhaps also consider an alternate display where we simply say "X users liked this post" with a href modal link or something to cut down on more queries.
(2019-06-17, 09:31 AM)Euan T Wrote: [ -> ]
(2019-06-17, 04:17 AM)makpaolo Wrote: [ -> ]Hi Euan. Its possible to include formatted username with this plugin?
Do you mean in the bar that shows a list of users who've liked a post? If so, I can add that quite easily.

Yes correct Smile
(2019-06-17, 09:39 AM)kawaii Wrote: [ -> ]
(2019-06-17, 09:31 AM)Euan T Wrote: [ -> ]
(2019-06-17, 04:17 AM)makpaolo Wrote: [ -> ]Hi Euan. Its possible to include formatted username with this plugin?
Do you mean in the bar that shows a list of users who've liked a post? If so, I can add that quite easily.

I'd like to see an option for this too. Perhaps also consider an alternate display where we simply say "X users liked this post" with a href modal link or something to cut down on more queries.
Unfortunately that wouldn't cut down on queries too heavily - the number of likes for a post isn't stored anywhere, it's always computed at the moment. However, the plugin does its best to reduce the number of queries issued.
(2019-06-17, 09:45 AM)makpaolo Wrote: [ -> ]
(2019-06-17, 09:31 AM)Euan T Wrote: [ -> ]
(2019-06-17, 04:17 AM)makpaolo Wrote: [ -> ]Hi Euan. Its possible to include formatted username with this plugin?
Do you mean in the bar that shows a list of users who've liked a post? If so, I can add that quite easily.

Yes correct Smile
Ok, I'll look into it and will include a setting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12