AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   CS MOTD HTML question (https://forums.alliedmods.net/showthread.php?t=84011)

XxAvalanchexX 01-18-2009 20:52

CS MOTD HTML question
 
Hiho,

Does the HTML rendered in Counter-Strike MOTDs display the same (or, is it interpreted the same) to everyone, regardless of other things like what computer or browser you use? I'm wondering if CS does its own HTML stuff or if it piggybacks off of a browser somehow.

Thanks.

Doc-Holiday 01-18-2009 20:55

Re: CS MOTD HTML question
 
it doesnt actulyl use html its more of a css then anything. there is no <html> <htm> tags...

i think its jsut css.. cuz if you look at my motd's in a web browser its text not like in game.

danielkza 01-18-2009 20:55

Re: CS MOTD HTML question
 
Quote:

Originally Posted by NcB_Sav (Post 746509)
it doesnt actulyl use html its more of a css then anything. there is no <html> <htm> tags...

i think its jsut css.. cuz if you look at my motd's in a web browser its text not like in game.

Absolutely wrong.

CSS just embeds an IE control. It is dependent on the IE version of the user.

Doc-Holiday 01-18-2009 22:21

Re: CS MOTD HTML question
 
Quote:

Originally Posted by danielkza (Post 746510)
Absolutely wrong.

CSS just embeds an IE control. It is dependent on the IE version of the user.


lol yup guess i was.. my motd does usethe html tags... but my old one dosent just txt file runs fine. exp with just plain css.

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html40...1224/loose.dtd">
<html>
<head>
<title>NorCalBots 11 [UnDead]</title>
<style type="text/css">
pre {
 font-family:Verdana,Tahoma;
 color:#fff;
}
body {
 background:#000;
 margin-left:8px;
 margin-top:0px;
}
a,
a:link,
a:visited,
a:hover,
a:active {
 text-decoration:underline;
 color:#fff;
}
.style1 {
 text-align:center;
}
.style3 {
 color:#FFB000;
 text-decoration:underline;
 font-size:small;
}
.style4 {
 font-size:large;
}
.style5 {
 font-size:small;
}
.style7 {
 font-size: x-large;
}
</style>
</head>
<body scroll="no">
<div class="style1">
<pre>
<img src="http://video.astahoster.net/branding.png" height="90" width="414" />
<strong>
<span class="style7">NorCalBots 11 [UnDead]</span><br>
<span class="style4">Can you stop the infection?</span><br>
<span class="style5">Please be sure to respect our rules and admin at all times
To view our server rules, type <span class="style3">rules</span> in game chat</span><br>
<span class="style4">Visit us at <a href="http://www.norcalbots.com/" target="_blank">www.norcalbots.com</a></span>
</strong>
</pre>
</div>
</body>
</html>


danielkza 01-19-2009 12:47

Re: CS MOTD HTML question
 
Quote:

Originally Posted by NcB_Sav (Post 746526)
lol yup guess i was.. my motd does usethe html tags... but my old one dosent just txt file runs fine. exp with just plain css.

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html40...1224/loose.dtd">
<html>
<head>
<title>NorCalBots 11 [UnDead]</title>
<style type="text/css">
pre {
 font-family:Verdana,Tahoma;
 color:#fff;
}
body {
 background:#000;
 margin-left:8px;
 margin-top:0px;
}
a,
a:link,
a:visited,
a:hover,
a:active {
 text-decoration:underline;
 color:#fff;
}
.style1 {
 text-align:center;
}
.style3 {
 color:#FFB000;
 text-decoration:underline;
 font-size:small;
}
.style4 {
 font-size:large;
}
.style5 {
 font-size:small;
}
.style7 {
 font-size: x-large;
}
</style>
</head>
<body scroll="no">
<div class="style1">
<pre>
<img src="http://video.astahoster.net/branding.png" height="90" width="414" />
<strong>
<span class="style7">NorCalBots 11 [UnDead]</span><br>
<span class="style4">Can you stop the infection?</span><br>
<span class="style5">Please be sure to respect our rules and admin at all times
To view our server rules, type <span class="style3">rules</span> in game chat</span><br>
<span class="style4">Visit us at <a href="http://www.norcalbots.com/" target="_blank">www.norcalbots.com</a></span>
</strong>
</pre>
</div>
</body>
</html>


Any text outside the HTML tags (or inside the body tag, but not wrapped in any other tags) is interpreted as plain text.

xPaw 01-19-2009 12:49

Re: CS MOTD HTML question
 
question about motd, can i go over the limit 2048 chars?

danielkza 01-19-2009 12:58

Re: CS MOTD HTML question
 
Quote:

Originally Posted by xPaw (Post 746776)
question about motd, can i go over the limit 2048 chars?

I think in CS the limit is not even that, it's around 1500 chars.

xPaw 01-19-2009 13:17

Re: CS MOTD HTML question
 
so i cant even go over :( ?

danielkza 01-19-2009 13:21

Re: CS MOTD HTML question
 
Quote:

Originally Posted by xPaw (Post 746791)
so i cant even go over :( ?

Don't think so. If you're using inline styling (<strong>, etc) try using CSS, it may make the document shorter.

ConnorMcLeod 01-19-2009 13:33

Re: CS MOTD HTML question
 
You can, but you need a public ftp to put the file on.
Code:

<html>
<body>
<br>
<center>
  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><div align="center"><font size="1" face="trebuchet ms">Loading ...
          </font></div></td>
    </tr>
  </table>
</center>
<meta http-equiv="Refresh" content="0; URL=http://YOU_URL">
</body>
</html>



All times are GMT -4. The time now is 01:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.