@vincent that's awesome.... would be even awesomer if kudos stats pulled through into tinylytics ;-)
I think I have it working!
And, @mtt, I did spot the code already in place, when I was editing the template 😅
@vincent It is! I’ll have to fix the space between that and the other plugins, or just wait for the plugin, and delete my code.
@maique You can also style it for when a user has already clicked it using class
.did_select(persists after refresh). My stuff doesn’t include that yet but will soon.
@Mtt Yeah, I’m just testing it, trying not to break anything. When everything is working on your update, I’ll probably just delete my code and go with what a professional did 😅
@Mtt You’re too kind, but I manage the simplest of tasks only. I find myself out of my depth pretty quickly over here.
@maique If you want to enable the default Tinylytics stuff built within Tiny, here's a walkthrough:
Edit Custom Themes→
New Pluginand pasting the link in.
It'll automatically show inline with the conversation and email plugins. It should also work properly with Tinylytics new
.did_select class. Lastly, you can use the plugins shortcode to display the hit counter anywhere you'd like. The plugin will eventually (soon) be added to the directory, just want to test it out a bit first.
You can delete whatever method you'd used previously to add the Tinylytics script.
@Mtt Thank you so much for the detailed walkthrough. Would it then update to the official plugin when it’s released? Or would I have to delete this and add that one?
@maique You would need to delete and replace at that point. I’m hoping to add it this week. Possibly even as soon as today.
@Mtt Cool, thank you. I’m leaving the house soon, so I’ll just leave it as is right not, it’s working.
I’ll move to the new theme version when it’s available, if you’re ok with me not testing the plug-in.
@vincent I do really like this feature. So much that I'd probably pay for Tinylytics to have it (even though I wish this was in Micro.blog natively and have asked for it several times!).
I have two thoughts/bits of feedback about the feature though that would really make it a no brainer for me. First, while I understand the "one per page" limit, that's a real bummer considering most folks hit my homepage which is a list of posts. Ideally, I'd be able to pass a permalink as a data property on that button or something similar so that it could work for index pages.
Second, it'd be amazing to pair this with something that could pick up on webmentions with a
like-of property and add them to Kudos.
@jsonbecker I've added the ability to add multiple "kudos" to the same page. If you email me: email@example.com, I will give you the details – However, I am thinking of updating the documentation after today and will blog about it tomorrow or Wednesday.
@vincent nice! This would pair up well with a stat counter per page - so with one bit of code I could display stat counter for that post/page only and kudos