Shoutbox

Counter Strike: Source and the motd.txt - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Counter Strike: Source and the motd.txt (/showthread.php?tid=45922)

Counter Strike: Source and the motd.txt by Reaper on 06-07-2005 at 02:53 PM

Im editing the motd.txt file so i can have some fancy stuff to show people when the join the server. but im having a few problems. the file is all done in html and im not an rxpert on it. i only managed to change a few things.
1) The one thing i want to change is the alignment of the text. at the moment is on the left, i want it in the centre
2) I want larger text
3) I want to be able to "scroll" using the scroll bar
[Edit] 4) I want to chane the font type

heres is a copy of motd.txt (sorry is this is too long, and its also attached):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Cstrike MOTD</title>
<style type="text/css">
pre     {
        font-family:Verdana,Tahoma;
        color:#FFB000;
        }
body    {
        background:#000000;
        margin-left:8px;
        margin-top:0px;
        }
a    {
        text-decoration:    underline;
    }
a:link  {
    color:  #FFFFFF;
    }
a:visited   {
    color:  #FFFFFF;
    }
a:active    {
    color:  #FFFFFF;
    }
a:hover {
    color:  #FFFFFF;
    text-decoration:    underline;
    }
</style>
</head>
<body scroll="yes">
<pre>
Welcome To The Sanctuary
Respect all admins please
Enjoy Your Stay
<img src="http://debianusers.org/albums/album02/Sanctuary.sized.jpg" />
</pre>
</body>
</html>


RE: Counter Strike: Source and the motd.txt by Ezra on 06-07-2005 at 04:04 PM

code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Cstrike MOTD</title>
<style type="text/css">
div{
text-align: center;
}
pre {
font-family: Verdana;  **Change the Font here**
font-size: 14pt; **Change the size here**
color:#FFB000;
     }
body {
background:#000000;
margin-left:8px;
margin-top:0px;
overflow: scroll;
}
a {
     text-decoration:    underline;
}
a:link  {
    color:  #FFFFFF;
    }
a:visited   {
    color:  #FFFFFF;
    }
a:active    {
    color:  #FFFFFF;
    }
a:hover {
    color:  #FFFFFF;
    text-decoration:    underline;
    }
</style>
</head>
<body>
<div>
<pre>
Welcome To The Sanctuary
Respect all admins please
Enjoy Your Stay
<img src="http://debianusers.org/albums/album02/Sanctuary.sized.jpg" />
</pre>
</div>
</body>
</html>


That should do it :d

P.S: after changing the font and size remove the text behind it  :-D

EDIT: That image is slow :o
RE: Counter Strike: Source and the motd.txt by Reaper on 06-07-2005 at 04:06 PM

thanx :D but jus for clarification where you've written change font here do i delete that and write the font oor do i change the Verdana bit?


RE: Counter Strike: Source and the motd.txt by Ezra on 06-07-2005 at 04:09 PM

You change Verdana and the 14pt, to whatever you like, and remove the text behind it, cause it won't work if you don't remove it.


RE: Counter Strike: Source and the motd.txt by Reaper on 06-07-2005 at 04:11 PM

uhh text behind it?! :S:$


RE: Counter Strike: Source and the motd.txt by Ezra on 06-07-2005 at 04:12 PM

The Text that says **Change Font Here** and **Change size here **, remove that :-)


RE: Counter Strike: Source and the motd.txt by Reaper on 06-07-2005 at 04:25 PM

works like a charm but, there is one scroll bar which works properly, but then theres one at the bottom and the side of the picture hosted but they dont work. i dont want that to work i want it gone so i only have the one that works.
if you understand what im saying

the game wont let me take a screenshot cos it disables a lot of the buttons on the keyboard until you click ok

uh oh. sorry for double post!


RE: Counter Strike: Source and the motd.txt by {WAR}MEGAmich on 10-30-2006 at 01:44 PM

I have major issues with ths mord now i copied and psted and it only shows the HTMl code no the actual outcome?? I do have SMM installed, is this making it bad??


RE: Counter Strike: Source and the motd.txt by Kenji on 10-30-2006 at 01:47 PM

quote:
Originally posted by Reaper
June 7th, 2005 16:25


Isnt this thread abit old?
RE: Counter Strike: Source and the motd.txt by egaMi on 10-15-2007 at 08:02 AM

May be a dump q but, how the fuck do i wiev my MOTD in the internet so i can see what it would look like on the server? -help plox.


RE: Counter Strike: Source and the motd.txt by Jimbo on 10-15-2007 at 07:03 PM

quote:
Originally posted by egaMi
May be a dump q but, how the fuck do i wiev my MOTD in the internet so i can see what it would look like on the server? -help plox.
copy the code into a notepad document and name it something.HTML, then just double click the file