SRCDS Steam group


motd
#1
Hey i know how to put images, but it doesnt work. I have it locally in my cstrike folder so i just put image.jpeg for the source. All it comes up with is a blank box with an x in it with the writing part of my motd. Now i uploaded it to image shack and put the website as the src. Then my motd is totally blank no writing or nothing. I appreciate any help.
Thanks Spartanfrog.Smile
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
Reply
#2
You're right in thinking the image has to be hosted. The cstrike folder isn't publicly accessible, so it won't work linking it from there. Did you use the path to the actual image file, rather than the page it's displayed on? I've seen people use imageshack and link the image to the php page it's displayed on, rather than the actual image.

I can't really say more unless you post the line of your motd which links to the image.

Edit: Hmm, but that wouldn't explain why the writing isn't showing up at all. Maybe you could post your entire motd (if it's not too long)?
Reply
#3
Linking to a picture in your cstrike file will work. You sure you are spelling it right? Not .jpg or .JPG instead of .jpeg?
Reply
#4
Well i was linking directly to the imageshack.us page.
Now this is my image code: <p align="center"><img name="shatterproofhtml" src="shatterproofhtml.jpeg" width="180" height="104" border="0" alt=""></p>
And it does not work.
Maybe since i didn;t put the actualy image just the url, it tried to paste the entire webpage on the motd. Probably not im just guessing. Smile
Thanks a bunch Muppet, you have been helping a lot.
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
Reply
#5
I assume "shatterproofhtml.jpeg" is in the same section as your MOTD?

Also, might need to add a "/" at the end of your img tag:

Code:
<img name="shatterproofhtml" src="shatterproofhtml.jpeg" width="180" height="104" border="0" alt="" />

as you might be specifying/it might be specifying a xhtml strict header for MOTD.
Reply
#6
Why don't you go ahead and just post the entire MOTD Smile
Reply
#7
<html>
<head>
<title>shatterproofhtml</title>
<style type="text/css">
.style1 {
font-size: 36px;
font-style: italic;
font-weight: bold;
}
body,td,th {
color: #3366FF;
}
.style2 {
color: #FF0000;
font-size: 36px;
}
.style4 {color: #FF0000; font-size: 24px; }
.style5 {color: #3366FF; font-size: 24px; }
body {
background-color: #000000;
}
-->
</style></head>
<body>
<!--======================== BEGIN COPYING THE HTML HERE ==========================-->
<div align="center">
<p align="center"><a href="http://imageshack.us"><img src="http://img212.imageshack.us/img212/4604/shatterproofhtmlej9.jpg" border="0" alt="Image Hosted by ImageShack.us"/></a><br/>
<p align="center"><span class="style1">Welcome To Shatter-Proof Glass Server</span></p>
<p align="center"> </p>
<p align="center" class="style4">Rules are as follows:</p>
<p align="center" class="style4">No pornographic Sprays</p>
<p align="center" class="style4">No Hacking</p>
<p align="center" class="style4">No exploits</p>
<p align="center" class="style4">Cursing is fine, were not babies here but NO RACISM</p>
<p align="center" class="style4">Punishment is whatever the admin feels like doing. </p>
<p align="center" class="style5">Admins are admins for a reason. Lets just say to you they are god. Do as they say. They might abuse. No complaing whining, bitching, or anything like that to them. Finally The Full admins are: Spartanfrog, Headshot, Moneymaker, Mayhem, and Lobotomy. The clan works by new members are private. The higher the rank the more admin rights you get.</p>
<p align="center" class="style2"><!--========================= STOP COPYING THE HTML HERE =========================-->
</p>
</div>
</body>
</html>
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
Reply
#8
MOTD works fine on my server. But you are missing out the header:

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>shatterproofhtml</title>
<style type="text/css">
.style1 {
font-size: 36px;
font-style: italic;
font-weight: bold;
}
body,td,th {
color: #3366FF;
}
.style2 {
color: #FF0000;
font-size: 36px;
}
.style4 {color: #FF0000; font-size: 24px; }
.style5 {color: #3366FF; font-size: 24px; }
body {
background-color: #000000;
}
-->
</style></head>
<body>
<!--======================== BEGIN COPYING THE HTML HERE ==========================-->
<div align="center">
<p align="center"><a href="http://imageshack.us"><img src="http://img212.imageshack.us/img212/4604/shatterproofhtmlej9.jpg" border="0" alt="Image Hosted by ImageShack.us"/></a><br/>
<p align="center"><span class="style1">Welcome To Shatter-Proof Glass Server</span></p>
<p align="center"> </p>
<p align="center" class="style4">Rules are as follows:</p>
<p align="center" class="style4">No pornographic Sprays</p>
<p align="center" class="style4">No Hacking</p>
<p align="center" class="style4">No exploits</p>
<p align="center" class="style4">Cursing is fine, were not babies here but NO RACISM</p>
<p align="center" class="style4">Punishment is whatever the admin feels like doing. </p>
<p align="center" class="style5">Admins are admins for a reason. Lets just say to you they are god. Do as they say. They might abuse. No complaing whining, bitching, or anything like that to them. Finally The Full admins are: Spartanfrog, Headshot, Moneymaker, Mayhem, and Lobotomy. The clan works by new members are private. The higher the rank the more admin rights you get.</p>
<p align="center" class="style2"><!--========================= STOP COPYING THE HTML HERE =========================-->
</p>
</div>
</body>
</html>
Reply
#9
Yeah the code looks a little messy but it works fine.
Are you sure that your filename is motd.txt and not motd.html?
Reply
#10
It works! Maybe it worked because of the header? Anyway thanks a bunch.
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
Reply
#11
I changed a few things for my motd and it doesnt work again! Here is the 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>shatterproofhtml</title>
<style type="text/css">
<!--
.style3 {
font-size: xx-large;
font-weight: bold;
font-style: italic;
color: #FF0000;
}
.style4 {color: #FF0000}
.style5 {font-size: x-large; font-weight: bold; font-style: italic; color: #FF0000; }
.style8 {
font-size: xx-large;
color: #003399;
font-style: italic;
font-weight: bold;
}
.style9 {
font-size: x-large;
color: #003399;
}
.style10 {font-size: xx-large; color: #00FF33; font-style: italic; font-weight: bold; }
.style11 {
font-size: x-large;
color: #00FF33;
font-style: italic;
font-weight: bold;
}
.style12 {
font-size: xx-large;
color: #6666FF;
}
.style13 {font-size: x-large; color: #6666FF; font-style: italic; }
body {
background-color: #000000;
}
-->
</style></head>
<body>
<div align="center">
<p><p align="center"><a href="http://imageshack.us"><img src="http://img212.imageshack.us/img511/9396/shatterproofck1.png" border="0" alt="Image Hosted by ImageShack.us"/></a><br/>
<div align="left">
<table width="96%" height="116" border="0">
<tr>
<td width="54%"><div align="center"><em><strong><span class="style3">Rules</span></strong></em></div></td>
<td width="46%" class="style8"><div align="center">Philosophy</div></td>
<td width="46%" class="style10"><div align="center">Admins</div></td>
</tr>
<tr>
<td><div align="left" valign="top">
<p class="style5">Dont Piss off the Admins!</p>
<p class="style5">No pornographic sprays (PERVERTS!)</p>
<p class="style5">Listen to admins</p>
<p class="style5">NO HACKING OR EXPLOITS </p>
</div>
<p align="left" class="style4">&nbsp;</p></td>
<td valign="top"><div align="left"><em><strong><span class="style9">STFU! NO whining/bitching. &quot;Admin is being unfair&quot; STFU! </span></strong></em></div></td>
<td valign="top" class="style11"><p>All SP Gen. are full Admins. The rest of SP have admin according to rank. SP members are as follows:</p>
<p>Spartanfrog, Siul, Snipey, Moneymaker, Lobotomy, Headshot, Degenesi, Mikey, Swoog, Iccablob, Mayhem. LISTEN TO THEM! </p></td>
</tr>
</table>
<div align="center" class="style12">
<p><strong>Ranks in SP</strong></p>
<table width="100%" border="0">
<tr>
<td width="27%" class="style13">Private- Basic kick, slap options. </td>
<td width="35%" class="style13">Corporal- Basic plus more fun punishments.</td>
<td width="38%" class="style13">Sergeant- Basiic, fun punishments, maps and time ban. </td>
</tr>
<tr>
<td class="style13">Sergeant General- Basic, fun punishments, maps and time ban and recon.. </td>
<td valign="top" class="style13">General- Everything except server configuation. </td>
<td valign="top" class="style13">Server Admin- Everything. Only one, Spartanfrog. </td>
</tr>
</table>
<p>&nbsp; </p>
</div>
<p align="center" class="style3">&nbsp;</p>
<p class="style5">&nbsp;</p>
</div>
</div>
</body>
</html>
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
Reply
#12
Anyone?
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
Reply
#13
It's too big (filesize). I think the limit is something like 1.8kb (ish).
Reply
#14
You could create a webpage with the above included in it. Then in your motd.txt, add http://url.com/motd.html to get around that problem (if it really exists).
Reply
#15
Muppet Wrote:You could create a webpage with the above included in it. Then in your motd.txt, add http://url.com/motd.html to get around that problem (if it really exists).

instead of making the player press the url, make them redirect
(correct me if I'm wrong)

Redirection through HTML can be a meta tag
Try this link
http://www.billstclair.com/html-redirect2.html
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)