MOTD HTML

Post Reply
WildCard
A semi-regular
A semi-regular
Posts: 15
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Sep 04, 2003 7:25 pm

MOTD HTML

Post by WildCard »

my motd for my server does not show the pictue but shows a box with a x through it.

my picture is in the same directory as the motd.txt and when i open it on desktop it works fine but when i join the game it is not visible in the motd

i was wondering if anyone can tell me if theres a certain file size it needs to be or a certain filetype

it is currently a jpg file

if anyone can help me get it working thx
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

Post by Nick|NFo »

your gameserver isnt a web server, you cant put the jpg picture in there.

you must put it on some web server, ours if u got space here, or somewhere else where you link it to there.

then it will work.
-Nick
Black Exodus
New to forums
New to forums
Posts: 5
Joined: Mon Feb 16, 2004 12:33 pm
Location: Port Hardy BC Canada
Contact:

Pics in the motd file

Post by Black Exodus »

The Motd file is a little strange, although it uses many of the html tags used in browsers, you can't however use the img tag (it just doesnt work)

There is a way around this though. using the iframe tag.

1) make a html page with the image that you want to display.
2) upload it to a web server.

3) add this code to your motd.

Code: Select all

<IFRAME border="0" name="frame" src="http://url to you html file" frameBorder="0" width="650" height="300"></IFRAME>
You may have to adjust the sizes to make it display correctly.

And thats it. The game browser will fetch the web page and diplay it within the frame so pics will be there.

if you want to see an example of this go to blacktouch.nuclearfallout.net :27015.

Hope this helped you.
Where there's a Bill there's a way :)
aBstracT
Staff
Staff
Posts: 233
Joined: Sun Jan 11, 2004 8:17 pm
Location: LA

Post by aBstracT »

Hmm, this post is several months old. If there was a problem, he would have responded. :)
Post Reply