0E800 Well that was an embarrassing mistake...

0.1.0-beta.2

  • Fix bug for upvoting posts that aren't the OP

Edit:

0E800 Was just wondering if there was a threshold or something.

Adding floodgate protection wouldn't be the worst idea as you can kinda spam the buttons at the moment.

    Kyrne
    Peculiar function.

    So If I upvote a post, then I click on 'Like', it removes the upvote.
    However, if I click on 'Like', and then upvote, I get both.

    Anyway you can make it so when I click on 'Like', it automatically upvotes?

    Or, remove the upvote (thumbup) as a button, so when someone clicks on 'Like' it automatically appends +1 to the upvote. (so your options are like or downvote)

    I just dont think the user should be able to Like and downvote at the same time.

    Hope that makes sense.

      0E800 This extension is meant to replace the likes extension and therefore, was not built with compatibility. I recommend disabling the likes extension.

      Kyrne

      Some optional settings could include:

      Time between likes
      Amount of likes per Hour or Day
      Amount of likes per user / per thread / time
      Ability for Admin to chose who gets permissions to use the extension.

        0E800

        Those first 3 are added indirectly in the form of the "Hot" sort on your discussions page.

        Permissions sounds good as well, I can easily add that.

          Kyrne

          Am I correct in thinking that the Money extension could listen for your upvote and downvote events so that upvotes added Money?

            Would it be prompt to have a switch that disables the current packaged like system? Turn off API requests, remove "Like", etc without having to disable the Like extension.

            I also made a dev branch and pull request to fix one of the translation field (and to avoid any mild editing I do).

              0E800 Yes, the developer could add this.

              Ralkage What would be the point of disabling everything?

              0.1.0-beta.3

              After updating, please either disable and re-enable the extension or run php flarum migrate in your root dir

              • Added vote permission
              • Added floodgate protection

                Kyrne

                What is the floodgate protection? Thought it was a value in settings, but not seeing anything.

                  0E800 Floodgate is the thing that prevents someone from spamming the forum, and requires no configuration. If you've ever posted 2 posts in quick succession it will say something about how you are going too fast. This makes that apply to votes so someone can't spam the buttons.

                  Kyrne

                  Pure laziness lol, I really just only wanted to point out that missing "Rank:" string in the usercard and possible add an addition to allow default start-off points. The default before changing it would be "0" so the UI shows at least a numeric value because after you install the extension, it should show "0" but shows no value or string instead until after you have your first upvote.

                  Edit: How about the ability to change the upvote and downvote icons? Some users would probably like arrows, so maybe an drop down of the fa icons or just an input field?

                    Ralkage I don't think it should say Rank: because that brings us to your other problem which is that if Points is 0 then it shows nothing. I think rank should show a blank space, and if a default rank is set, the default rank.

                    Try 0.1.0-beta.3.1, it should have the points show 0 now.

                    Edit: This can also be done, I'll work on that later.

                    Perhaps the member color hex should be a new textfield?

                    Also, I'm not able to select Hot as a sort method on my test board, it simply refreshes and resets back to Latest (even coming from another non-Latest sort method).

                    EDIT: Also, where should the Newbie rank be displayed? Not seeing it next to the Points.

                      jordanjay29 I thought it should be it's own textfield too. It became complicated to do with json stringify, if you have a way please let me know asap. Also do you mind taking a gif of the hot filter failing? I'm unable to reproduce.

                        Kyrne Amazing work dude! I've been cheerleading throughout all the development of this project and I'm really glad you finished it!

                        Proudly gonna use it in my forum right now!

                        Thank you so much! ?

                          AngelAvila thanks so much for the support dude!

                          For those who don't know, he has supported me throughout my extension developer "career" as well as in development work I did before Flarum. This guy is super cool and you should really get to know him if you have the time.

                          Anyway:

                          0.1.0-beta.4

                            @Kyrne
                            May you please confirm that a upvote of 1 does not become a -1 upon down vote?

                            I am noticing when I give a +1 to 0 votes , it becomes a -1 if I undo it.

                            Wanna make sure it's not just me.

                              0E800 I believe I just fixed that. Try this version

                              0.1.0-beta.5

                              • Fixes a major bug that converted likes would all be owned by the same user, reported by @AngelAvila
                              • Added the ability for people to see who upvoted/downvoted a post configurable via permission

                                0E800 It should, though?

                                Clicking down vote after clicking up vote is like changing your vote, so it should take away the +1 you added (assuming there are no other votes on the post, it would now be 0) and add -1 (which makes the total now -1).

                                If you unclick the up vote, it goes back to 0, same for the down vote. If you click the opposite vote, it behaves as above.

                                ETA:

                                Kyrne Added the ability for people to see who upvoted/downvoted a post configurable via permission

                                Can you add some kind of change on hover to the vote count number when someone has this permission? It has pretty low discoverability. Maybe some descriptive text on hover (click to view votes?) or a CSS style change?

                                  jordanjay29
                                  A down vote from 0, should be -1.
                                  A upvote from 0 should be 1.
                                  A downvote from 1 should be 0. Not -1.

                                  What am I not getting?
                                  Nevermind, I'll try new version.

                                  Apologies J, replying to email notification.