Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

About a week ago, there was discussion in the CB about how to modify the appearance of all content on PerlMonks authored by a given monk. For example, turning all of bart's posts pink or hiding all anonymonk content (both actual suggestions from that discussion).

While several people pointed out that those could be done with various CSS tricks, it was also noticed that there are at least six different classes in use within the Monastery used to identify an author by their user number (####):

node-from-#### Newest Nodes nnt-auth-#### R.A.T.s pmnote-#### Replies chatfrom_#### Chatterbox auth-#### Best/Worst Nodes user-#### Online Users (not strictly "authoring")

It would be nice (IMO) if these could be unified into a single class name, but not being devilish and therefore not having a clue how much effort (or side-effects) that would cause, I'll settle for a quick example. This won't let you flag everything (for instance, results in Super Search are not tagged for per-author styling, nor are the section summary pages like The Monastery Gates), but it covers a large fraction of the content a user can post. Place the following CSS in your Display Settings (scroll down to the textbox labelled "On-Site CSS Markup") to turn all of NodeReaper's content (that you can) bold:

.node-from-52855 {font-weight:bold;} .nnt-auth-52855 {font-weight:bold;} .pmnote-52855 {font-weight:bold;} .chatfrom_52855 {font-weight:bold;} .auth-52855 {font-weight:bold;}

Update: ambrus notes that this can be contracted still further.

Update: duelafn golfs it down more (but also gets signatures in the process).


The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon

In reply to Author-based Stylin' by idsfa

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found