Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: A row of spades in Recently Active Threads?

by eric256 (Parson)
on Apr 27, 2006 at 13:12 UTC ( #546021=note: print w/ replies, xml ) Need Help??


in reply to Re^2: A row of spades in Recently Active Threads?
in thread A row of spades in Recently Active Threads?

Couldn't you just have it generate two ranges of CSS classes? One for forground and one for background? They could even share the same name just one has  a.nnt-Steaming { color : #0000EE; } and the back ground is td.nnt-Steaming { background-color : #0000EE; } ... forgive the css errors if there are any. That region of CSS looks automaticaly generated, if so its just a matter of finding where its generated and making a minor addition.


___________
Eric Hodges


Comment on Re^3: A row of spades in Recently Active Threads?
Select or Download Code
Re^4: A row of spades in Recently Active Threads?
by GrandFather (Cardinal) on Apr 27, 2006 at 17:45 UTC

    That is/was one of the possibilities, but required a better understanding of the code and would require a larger change that was more prone to errors. For example, the code would have to accommodate a user that supplied the css in a different order or that used different capitilisation. Think "parsing HTML" and processing user input ("when you make it fool proof, they make better fools").

    It could have been done that way (still can), but the road looked bumpier.


    DWIM is Perl's answer to Gödel

      Hehe. Sorry last time i looked RAT just had the color blend setting where the intermediate colors where generated automagicaly (i assume). Even now though users could just know that they need to supply a a. and a td. class for each color they wanted to set. I think that then CSS could even be used to insert the char into the table cell (i'm thinking the way some of use insert symbols in front of other users names in the CB).

      I don't see any need to parse users input at all, if they are over ridding the actual CSS then they need to get all the tags, and if they are using the color blend then the site generates the needed CSS. Am I missing something painfully obvious? ;)


      ___________
      Eric Hodges

        Only that it would be a breaking change that requires users to generate the additional css, or would require PM to generate the css for them, in which case we are back to the same problem!

        At the end of the day, it's a path that could have been followed, but wasn't. We will most likely add an option to the RAT Style Settings page to allow the user to supply a character so that should make most people happy.


        DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://546021]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2014-09-30 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (376 votes), past polls