Raised This Month: $ Target: $400
 0% 

CS MOTD HTML question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-18-2009 , 20:52   CS MOTD HTML question
Reply With Quote #1

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.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS

Last edited by XxAvalanchexX; 01-18-2009 at 20:56.
XxAvalanchexX is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-18-2009 , 20:55   Re: CS MOTD HTML question
Reply With Quote #2

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.
Doc-Holiday is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-18-2009 , 20:55   Re: CS MOTD HTML question
Reply With Quote #3

Quote:
Originally Posted by NcB_Sav View Post
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.
__________________

Community / No support through PM

Last edited by danielkza; 01-18-2009 at 21:00. Reason: typo
danielkza is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-18-2009 , 22:21   Re: CS MOTD HTML question
Reply With Quote #4

Quote:
Originally Posted by danielkza View Post
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>
Doc-Holiday is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-19-2009 , 12:47   Re: CS MOTD HTML question
Reply With Quote #5

Quote:
Originally Posted by NcB_Sav View Post
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.
__________________

Community / No support through PM
danielkza is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-19-2009 , 12:49   Re: CS MOTD HTML question
Reply With Quote #6

question about motd, can i go over the limit 2048 chars?
__________________
xPaw is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-19-2009 , 12:58   Re: CS MOTD HTML question
Reply With Quote #7

Quote:
Originally Posted by xPaw View Post
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.
__________________

Community / No support through PM
danielkza is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-19-2009 , 13:17   Re: CS MOTD HTML question
Reply With Quote #8

so i cant even go over ?
__________________
xPaw is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-19-2009 , 13:21   Re: CS MOTD HTML question
Reply With Quote #9

Quote:
Originally Posted by xPaw View Post
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.
__________________

Community / No support through PM
danielkza is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-19-2009 , 13:33   Re: CS MOTD HTML question
Reply With Quote #10

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>
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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