Raised This Month: $ Target: $400
 0% 

MOTD and HTML


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-27-2005 , 23:33   MOTD and HTML
Reply With Quote #1

How would you go about formating a text file in html, and makign a motd load it?

The html would also include some images, if that makes any difference.

Everytime i try to do it, its just the html code, but not what the html code suppsoe to be!
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 02-27-2005 , 23:50  
Reply With Quote #2

Try writing the code to a file then displaying it with the motd command, or is that what you did?
__________________
twistedeuphoria is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-27-2005 , 23:52  
Reply With Quote #3

Why not just make it .html?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 02-28-2005 , 10:38  
Reply With Quote #4

are u typing it in notepad? Or like an html editor?

use notepad, if you type it in like frontpage or dreamweaver it will convert the <html> to the something different so it won't be interpreted as html
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
slurpycof
Senior Member
Join Date: Nov 2004
Old 02-28-2005 , 11:15  
Reply With Quote #5

here is an example of my cstrike/motd.txt that I use and includes pictures,

Code:
<html><head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1523">

<title>Server Rules</title></head><body bgcolor="000000">

<font color="#ffffff">

<p align="center">
<font size="5" color="#ff0000"> </FONT>
<font size="7" color="#ff0000">Rules</FONT><font size="5" color="#ff0000"> </FONT>
</P>
</font><font color="#0000FF">
  1. <LI>Racism, discrimination or sexual harassment of any kind will not be tolerated anytime, be it verbal and/or written. There is no excuse for it. <LI>Respect other players. This is required. Accusing other players of cheating, excess whining about bull-hockey shots and the like are looked down upon.<LI> NO SWEARING. <LI>Try to treat your fellow gamers as you would like to be treated yourself. Take fights/arguments outside the server, along with your bad attitude. <LI>Cheating in any way, shape or form is NOT TOLERATED. <LI>Do not use map exploits in the game for any reason whatsoever. The game was designed to be played a certain way. This is how we play. <LI>Do not kill hostages intentionally.<LI>Probably the most unusual rule, HAVE FUN! [COF] is geared for interactivity. Jump in the forums, say hi, talk to people.
Should you violate a rule (respective of offense):</P>
  1. <LI>You will be warned. <LI>Still doing it after being warned? This time you're kicked. <LI>Still at it? This time you're BANNED.
<p align="center"></p> </body> </html>
________
Suzuki TL1000S

Last edited by slurpycof; 01-19-2011 at 05:02.
slurpycof is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-28-2005 , 12:48  
Reply With Quote #6

its got to have the .html ending.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
slurpycof
Senior Member
Join Date: Nov 2004
Old 02-28-2005 , 12:54  
Reply With Quote #7

try what i posted as cstrike/motd.txt and then try it as cstrike/motd.html and see which one works.
________
Yamaha YR-1

Last edited by slurpycof; 01-19-2011 at 05:02.
slurpycof is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 02-28-2005 , 13:31  
Reply With Quote #8

mine is motd.txt, has HTML in it, links an image from a seperate server, and it works fine..
xeroblood is offline
Send a message via MSN to xeroblood
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-28-2005 , 16:14  
Reply With Quote #9

Also note that HTML code, like colored menus, only work in first-party mods (ie: CS and DoD). I haven't found any third-party mods that support these features.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-28-2005 , 16:40  
Reply With Quote #10

Quote:
Originally Posted by XxAvalanchexX
Also note that HTML code, like colored menus, only work in first-party mods (ie: CS and DoD). I haven't found any third-party mods that support these features.
Hmm... ohhh that could be a problem.

Thank yall for your posts, *tests stuff*
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
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 14:07.


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