• Resolved boybawang

    (@boybawang)


    Hello –

    First of all, thanks for a great plugin!

    Would it be possible to append some text to the tooltip? What I want to do is include the # of people who have rated.

    For example, the tooltip currently states something such as 4.5/5. I’d love to be able to append text to it so that it says 4.5/5 out of 1000 ratings.

    Thanks,
    Pete

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Chasil

    (@chasil)

    Hi Pete,

    it’s hard to build a feature like this because the plugin itself has no functionality to let users vote for something. That means the source of your text/extension is not known to USR.

    If you have some more information for me I can think about it and tell you if there are possibilities. Where does the data come from? Is that something you would provide manually?

    BR

    Thread Starter boybawang

    (@boybawang)

    Hi BR –

    The data will be stored in variables. For example, the rating (i.e. 4.5) and the # of total ratings (i.e. 1000). I would then append something such as out of 1000 ratings to the tooltip.

    Plugin Author Chasil

    (@chasil)

    I am currently working on the next version of the plugin and I guess I can implement that function for you.

    If I understand you correctly you need something like this:
    [usr=4.5 addtext=”out of 1000 ratings”]

    I don’t know if this will be the name of the option but you know what I mean ??

    Thread Starter boybawang

    (@boybawang)

    Yes, this is exactly what I’m looking for ?? Thank you!

    Plugin Author Chasil

    (@chasil)

    Hi Pete,

    I added the function for the next version of USR.

    Because I am refactoring the whole plugin it will take a few more days to release it.

    Please be patient

    Thread Starter boybawang

    (@boybawang)

    Not a problem, thanks @chasil!

    Plugin Author Chasil

    (@chasil)

    I uploaded the new version. Please give it a try.

    Thread Starter boybawang

    (@boybawang)

    Hi there –

    Thanks for rolling out this request! I didn’t test it out yet though, because after updating to 2.0.0., I realized a styling conflict and had to roll back to 1.10.4

    I think the problem was the CSS selector:

    table.usr select, input{
        width: 108px;
    }

    On this page, it was creating a label width of 108px for my checkboxes, which looked bad. I noticed that it also did this to another page I had which had radio buttons.

    Did you mean to omit the comma from the CSS selector above?

    • This reply was modified 7 years, 3 months ago by boybawang.
    Plugin Author Chasil

    (@chasil)

    Hi Pete,

    I will correct that asap. Sorry for that!

    Plugin Author Chasil

    (@chasil)

    Hope 2.0.1 works for you

    Thread Starter boybawang

    (@boybawang)

    It works great! Thank you ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Appending to (or modifying) tooltip text’ is closed to new replies.