in reply to Chatterbox KARMA support

Great work!

As usually, when you implement something, users start coming with feature requests. So, here's mine: The old cbstats also showed the reason why the karma was given (I guess just the message with the [user]++ everything before the first # removed). So I was used to typing something like

[user]++ # patching the core

Would that be possible in the new cb stats, too?

Update: Fixed the link, ThanX LanX.

Update 2: Changed the description to include the octothorpe. Thanks to LanX and jdporter.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Chatterbox KARMA support
by cavac (Prior) on Apr 22, 2024 at 20:59 UTC

    Would that be possible in the new cb stats, too?

    Computer says no!

    Well, actually i didn't even remember that this was a thing, even though i have screenshots (and source code) of the old site.

    It's now implemented. If you like to change anything (add timestamps, add the karma giver, etc), just let me know.

    BTW, anyone remember how to format HTML tables in the Monastery more nicely? You now, alternating table rows with slightly different backgrounds, using the user-selected stylesheets? I haven't played with that stuff on PM for so long, i've completely forgotten if that's even in the default stylesheets.

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
      > you now, alternating table rows with slightly different backgrounds,

      If you look into Perl Monks Approved HTML tags (it's automatically linked when you comment) you'll see a list of allowed attributes per tag.

      tbody width, align, valign, colspan, rowspan, bgcolor, height, class td width, align, valign, colspan, rowspan, bgcolor, height, class tfoot width, align, valign, colspan, rowspan, bgcolor, height, class th width, align, valign, colspan, rowspan, bgcolor, height, class thead width, align, valign, colspan, rowspan, bgcolor, height, class tr width, align, valign, colspan, bgcolor, height, class

      you can go by class or bgcolor,

      > using the user-selected stylesheets?

      OK that's a bit trickier ... are you talking about themes?

      The monastery has a default set of CSS which is altered by theme. Users can overwrite whatever they want in their settings.

      I'm not aware of classes for tables, but you can look into the HTML of existing tables° or the CSS in the settings section.

      And if they don't exists, I'm sure the gods will grant you a wish to create them ... :)

      edit

      °) Saints in our Book is using <tr class="highlight"> for that.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      see Wikisyntax for the Monastery

        °) Saints in our Book is using <tr class="highlight"> for that.

        Used that for implementing somewhat nicer tables.

        PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
Re^2: Chatterbox KARMA support
by LanX (Saint) on Apr 22, 2024 at 10:58 UTC
    It's cb stats with a whitespace

    > (I guess just the message with the [user]++ removed)

    > [user]++ # patching the core

    What I remember was only the part after the #

    Edit

    So

    That's great feature request [choroba]++ :) # nitpicking PITA

    would only record nitpicking PITA

    ;-P

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery

      only the part after the #

      I am certain that that was the case. In fact, I think it was explicitly documented that way.