in reply to Lightweight interface to cast votes?

LanX:

For years, I've been using the suggestion in Re: The big Vote button to put a little CSS in the display settings to put the vote button in my UL corner. Since it's already built into perlmonks.org, it won't increase the traffic. You can also use an external CSS style sheet with this method.

I use the first clause below (I'm leaving the rest here in case I bungle my settings in the future and need to find it again):

input[name="sexisgreat"] { position: fixed; top: 0px; left: 0px; z-index:1; padding: 5px; border: 4px solid red; } pre.code tt.codetext { counter-reset: codeLines; } pre.code i::before { counter-increment: codeLines; content: counter(codeLines,decimal-leading-zero) ": "; } span.line-breaker { content: '' } div.readmore { background-color: inherit; padding-left: 4px; border-left-width: 5px; border-left-color: #00ff00; border-left-style: solid; margin-left: -9px; } input[name="viewedNewNodes"] { position: fixed; top: 0px; left: 0px; z-index:1; padding: 5px; border: 4px solid green; }

Just drop it in the "On Site CSS Markup" section of the "Style Sheet Settings" are in the Display Settings page. Alternatively, put it on your hard drive and link it as an external style sheet in the "Link to External CSS Stylesheet" box (I use C:/Work/DATA/PM.css).

Edit: tweaked last paragraph.

Edit: The last section puts the "Check for newer nodes" / "I've checked all these" button on the Newest Nodes page up in the UL corner as well. I put an ugly big border on them so I can find them quickly with my old tired myopic eyes... ;^)

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^2: Lightweight interface to cast votes?
by LanX (Sage) on Nov 04, 2017 at 16:03 UTC
    Roboticus

    Thanks, nice! :)

    But without having tested, I'm wondering how this solves the overhead problem which could be solved by a lightweight interface?

    Like extra ...

    • ... traffic size
    • ... delay
    • ... server load
    • ... need to rebuild the whole page
    ?

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      LanX

      I might've misunderstood what you were asking in regards to the overhead. The only problem it solves that I'm aware of is keeping the button on the screen for easy access. When you mentioned the AJAX and such, I thought that your JSON nodelet hack was going to do extra work to incur the overhead that you were talking about.

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.

        Oh I see, thanks.

        No my intention is rather to have an user interface similar to StackOverflow, where voting happens asynchronously and without causing unnecessary load on the server side.

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Je suis Charlie!