Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

class for cb idle messages

by MidLifeXis (Monsignor)
on Nov 05, 2010 at 19:24 UTC ( [id://869735]=monkdiscuss: print w/replies, xml ) Need Help??

When there is no conversation in the CB, the quips that show up do not appear to have a class assigned to them -- it appears that they are just a bare <i>...</i> sequence.

Would it make sense to add an appropriate class to the cb-idle quips?

I noticed this because I was trying to minimize my attention to them in the sidebar CB.

That is, unless someone has a nice css rule to identify them :-)

--MidLifeXis

Replies are listed 'Best First'.
Re: class for cb idle messages
by MidLifeXis (Monsignor) on Nov 05, 2010 at 19:59 UTC

    Thank's ambrus for the patch and Corion for the update. It is working on quips. Does the "and all is quiet..." statement come through the quips code as well? It looks like that statement is not getting tagged properly.

    Thanks again.

    --MidLifeXis

Re: class for cb idle messages
by kcott (Archbishop) on Nov 06, 2010 at 06:01 UTC

    They're not all of the form <i>quip</i>. I can't remember the full text but there's one like <tt>... !@monks ...</tt> (my CSS rule tt { ... } picks that up): there could be others not in <i> tags (and those in <em> tags would likely be visually indistinguishable).

    I don't have a problem with your suggestion in general; however, as there's only one CB quip per page, consider an id rather than a class attribute.

    You've replied to your OP thanking ambrus and Corion for a patch and an update, respectively: I can't find a reference to either.

    Update: A instance of that string came up. It's "and !@monks...".

    The markup is: <i class="cb_quiet"><tt>and !@monks</tt>...</i> - which suggests the patch/update referred to above relates to class="cb_quiet" - so we're all good. :-)

    -- Ken

      You've replied to your OP thanking ambrus and Corion for a patch and an update, respectively: I can't find a reference to either.

      I guess the reference is showchatter - (patch), which is probably only visible for pmdevs.

      Perl 6 - links to (nearly) everything that is Perl 6.

        Fair enough. I get the Tough beans! message when I follow that link. :-)

        -- Ken

      ambrus and Corion reference is from the CB comments, nothing publicly available anymore.

      --MidLifeXis

        That's fine - thanks for the reply. I initially just thought it was a missing piece of information. I suspect I've now worked it out as per the "Update" to my original response.

        -- Ken

Re: class for cb idle messages
by LanX (Saint) on Nov 06, 2010 at 12:43 UTC
    What about JS?

    Actually I was thinking about extending the CB-sidebar with JS (e.g using Greasemonkey).

    For instance I'm ignoring some "Power-CBler" with low information/output ratio (like I am ;-) with the effect of getting confused when others reply to them and having to check CB60 regularly.

    Therefore I was thinking about using JS for collapsing what they say, making it expandable on-demand.

    Or to have a possibility for "temporary ignores" which time out. (no I'm not interested in college football ;)

    Another application might be a one-click interface to Urban dictionary for slang expressions...

    Cheers Rolf

      I considered some form of JS as well, but you still have the identification problem (mark as idle unless some chatter exists, for example).

      My request was to be able to identify the components of the CB information so that things like JS, CSS styling, and so on could be used to shape the output to $anymonk's liking. Since it is difficult to shape the output unless you can identify the components, that was all I asked for :-).

      --MidLifeXis

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://869735]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found