Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Sun May 25, 2008 11:21 pm   

HTML logging setting background/font default color?
 
Subject says it all how do you set the background color for the html logs?
and default font color?
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Sun May 25, 2008 11:27 pm   
 
i'd like to turn on logging period, so that it display's exactly like it does from the mud, however... my last experience with this in zmud was... scary... =D
Reply with quote
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Sun May 25, 2008 11:42 pm   
 
A suggestion that, while not really html correct, could make HTML logging easier would simply make cmud, on creating the log start a <body bgcolor"#" text="#"> and when the log closes </body> and simply get the color codes from the default settings, for example my default color is 'silver' and background is black.
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Mon May 26, 2008 12:16 am   
 
I just manually change them, it's tedious but I don't know of another way. The html logger does seem to screw up some of the colors, and, the html is very messy.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed May 28, 2008 7:53 pm   
 
Since the logging can be turned off and on, and logging to an existing file appends to the existing file, there isn't any way for CMUD to generate the BODY tag itself. Otherwise you'd get multiple BODY sections and then your browser or other viewer would only show the first part of the log file. You just need to do this yourself in whatever file you are pasting the HTML log data into.

If HTML is screwing up the colors, then you need to create a new post and give me the exact details of what isn't working. I can't read your mind!

Also, if you say the "HTML is very messy", that doesn't give me much to go on. The HTML logger uses embedded style information because the FONT tag is deprecated in HTML and shouldn't be used. And because CMUD allows you to append multiple sessions to a single log file, it cannot use global style tags either. So it might be "messy", but it is standard HTML. You can suggest an alternative if it is valid HTML that would work in this situation.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu May 29, 2008 3:01 am   
 
Charbal's plugin mentioned at the end of the log files that the html standard says you don't need to close the body or html tags at the end of the file, which is nice for appending. I don't know if that's a fact or not, but that's what it said. In that case, I wonder if it's not possible to check if the file exists before you start logging? It should be. If it does, and you're creating a file rather than appending, you can write out the body tags and header stuff. If it's not, you just start writing to the file again.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu May 29, 2008 3:27 am   
 
My point was that different sessions or windows might have different background colors, so that would entail multiple BODY tags.

I think maybe instead of using a BODY tag maybe I can enclose the entire log within a DIV tag and use the CSS styles to set it's default colors. I'll have to experiment with that.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net