myfreeforum.org Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Who is OnlineWho is Online   Join! (free) Join! (free)  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
For an excellent guide to using your myfreeforum forum, you can visit
howtodoit
The howtodoit "readonly" forum provides answers and walkthroughs for all common questions.
  • Welcome
  • Guest


html to motd.txt (steam fans only)

 
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Off Topic
View previous topic :: View next topic  
Author Message
Symon
Moderator
Moderator

Virtual Cash: 28710

Joined: 04 Sep 2005
Posts: 11156
Location: Hampshire,England
Add Karma

rated by 85 members
Add Comment
Show Comments

online/offline
PostPosted: Tue May 13, 2008 2:19 pm    Post subject: html to motd.txt (steam fans only) Reply with quote

Anyone what to try and covet this code to work as a motd.txt ?

Spoiler:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>AssieJack servers</title>


<meta name="GENERATOR" content="Created by Symon field">
<style type="text/css">
img { behavior: url("pngfix.htc"); }
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<img src="1.png" align="top" alt="" border="0" width="152" height="152" style="position:absolute;left:0px;top:452px;width:152px;height:152px;z-index:0">
<img src="2.png" align="top" alt="" border="0" width="152" height="152" style="position:absolute;left:802px;top:0px;width:152px;height:152px;z-index:1">
<img src="3.png" align="top" alt="" border="0" width="152" height="152" style="position:absolute;left:0px;top:0px;width:152px;height:152px;z-index:2">
<img src="4.png" align="top" alt="" border="0" width="152" height="152" style="position:absolute;left:800px;top:457px;width:152px;height:152px;z-index:3">

<div id="Text1" style="position:absolute;left:181px;top:50px;width:538px;height:63px;z-index:4" align="center">
<font style="font-size:48px" color="#000000" face="Blackadder ITC">Welcome To Assiejacks Server</font></div>
<div id="Text2" style="position:absolute;left:239px;top:141px;width:441px;height:27px;z-index:5" align="left">
<font style="font-size:24px" color="#000000" face="Arial">This Server Plays The GunGame Mod.</font></div>
<div id="Text3" style="position:absolute;left:356px;top:219px;width:150px;height:16px;z-index:6" align="left">
<font style="font-size:13px" color="#000000" face="Arial">Rules As Follows</font></div>
<div id="Text4" style="position:absolute;left:352px;top:263px;width:286px;height:111px;z-index:7" align="left">
<font style="font-size:13px" color="#000000" face="Arial">No Spawn Camping<br>
 No Hacks<br>
&nbsp; Please Keep Swearing To Minimal<br>

&nbsp;&nbsp; Enjoy<br>
<br>
<br>
</font></div>
<div id="Text5" style="position:absolute;left:311px;top:507px;width:345px;height:16px;z-index:8" align="left">
<font style="font-size:13px" color="#000000" face="Arial">AssieJack servers Has A Sister server For The DMR Clan</font></div>
</body>
</html>



works ok on as a webpage (imgs not applied as of yet)

http://assiejack.teamhost.co.uk/motd.html

But not as a motd.txt


_________________


http://www.saynoto0870.com/

http://www.myshopbag.co.uk

XXVIII/ I/ MCMLXXI
Back to top
View user's profile Private message Visit poster's website
admin (no pm's please)
Site Admin
Site Admin

Virtual Cash: 45950

Joined: 22 May 2005
Posts: 19651

Add Karma

rated by 162 members
Add Comment
Show Comments

online/offline
PostPosted: Tue May 13, 2008 2:23 pm    Post subject: Reply with quote

probably as it has head and body tags. Not good for something that is working as a snippet.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums

forum.myfreeforum.org
Back to top
View user's profile Private message Send e-mail Visit poster's website
Viper
Moderator
Moderator

Virtual Cash: 1110

Joined: 20 Sep 2005
Posts: 1981

Add Karma

rated by 4 members
Add Comment
Show Comments

online/offline
PostPosted: Tue May 13, 2008 2:25 pm    Post subject: Reply with quote

admin (no pm's please) wrote:
probably as it has head and body tags. Not good for something that is working as a snippet.


Aye. Take this line out aswell:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Back to top
View user's profile Private message Visit poster's website
Nick(NR)
Moderator
Moderator

Virtual Cash: 8370

Joined: 06 May 2006
Posts: 4085
Location: Medway, Kent
Add Karma

rated by 30 members
Add Comment
Show Comments

online/offline
PostPosted: Tue May 13, 2008 4:11 pm    Post subject: Reply with quote

This should do it, let me know, may be worth altering the links colors:

Spoiler:

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>AssieJack servers</title>
<style type="text/css">

img { behavior: url("pngfix.htc"); }

pre    {font-family:Verdana,Tahoma;color:#000000;}

body   {background:#ffffff;}

a   {text-decoration:underline;}


a:link  {
    color:  #FFFFFF;
    }
a:visited   {
    color:  #FFFFFF;
    }
a:active    {
    color:  #FFFFFF;
    }
a:hover {
    color:  #FFFFFF;
    text-decoration:    underline;
    }
</style>
</head>
<body scroll="no">
<pre>
<img src="1.png" align="top" alt="" border="0" width="152" height="152" style="position:absolute;left:0px;top:452px;width:152px;height:152px;z-index:0">
<img src="2.png" align="top" alt="" border="0" width="152" height="152" style="position:absolute;left:802px;top:0px;width:152px;height:152px;z-index:1">
<img src="3.png" align="top" alt="" border="0" width="152" height="152" style="position:absolute;left:0px;top:0px;width:152px;height:152px;z-index:2">
<img src="4.png" align="top" alt="" border="0" width="152" height="152" style="position:absolute;left:800px;top:457px;width:152px;height:152px;z-index:3">

<div id="Text1" style="position:absolute;left:181px;top:50px;width:538px;height:63px;z-index:4" align="center">
<font style="font-size:48px" color="#000000" face="Blackadder ITC">Welcome To Assiejacks Server</font></div>
<div id="Text2" style="position:absolute;left:239px;top:141px;width:441px;height:27px;z-index:5" align="left">
<font style="font-size:24px" color="#000000" face="Arial">This Server Plays The GunGame Mod.</font></div>
<div id="Text3" style="position:absolute;left:356px;top:219px;width:150px;height:16px;z-index:6" align="left">
<font style="font-size:13px" color="#000000" face="Arial">Rules As Follows</font></div>
<div id="Text4" style="position:absolute;left:352px;top:263px;width:286px;height:111px;z-index:7" align="left">
<font style="font-size:13px" color="#000000" face="Arial">No Spawn Camping<br>
 No Hacks<br>
&nbsp; Please Keep Swearing To Minimal<br>

&nbsp;&nbsp; Enjoy<br>
<br>
<br>
</font></div>
<div id="Text5" style="position:absolute;left:311px;top:507px;width:345px;height:16px;z-index:8" align="left">
<font style="font-size:13px" color="#000000" face="Arial">AssieJack servers Has A Sister server For The DMR Clan</font></div>
</pre>
</body>
</html>


_________________
CALM TIME: When calm time is called, all posters in a topic must take time out to calm down.


I'm better than Jose!
Back to top
View user's profile Private message Visit poster's website
Symon
Moderator
Moderator

Virtual Cash: 28710

Joined: 04 Sep 2005
Posts: 11156
Location: Hampshire,England
Add Karma

rated by 85 members
Add Comment
Show Comments

online/offline
PostPosted: Wed May 14, 2008 2:36 pm    Post subject: Reply with quote

Doesnt work nick,

If i just have the images it shows them in all 4 corners, however as soon as i add the text it crashes and you see just the standard light brown screen.

So it seems to be a .css problem
_________________


http://www.saynoto0870.com/

http://www.myshopbag.co.uk

XXVIII/ I/ MCMLXXI
Back to top
View user's profile Private message Visit poster's website
Nick(NR)
Moderator
Moderator

Virtual Cash: 8370

Joined: 06 May 2006
Posts: 4085
Location: Medway, Kent
Add Karma

rated by 30 members
Add Comment
Show Comments

online/offline
PostPosted: Wed May 14, 2008 3:05 pm    Post subject: Reply with quote

I got a sneaky feeling it's this playing silly buggers:

img { behavior: url("pngfix.htc"); }
_________________
CALM TIME: When calm time is called, all posters in a topic must take time out to calm down.


I'm better than Jose!
Back to top
View user's profile Private message Visit poster's website
Symon
Moderator
Moderator

Virtual Cash: 28710

Joined: 04 Sep 2005
Posts: 11156
Location: Hampshire,England
Add Karma

rated by 85 members
Add Comment
Show Comments

online/offline
PostPosted: Wed May 14, 2008 5:18 pm    Post subject: Reply with quote

Nick(NR) wrote:
I got a sneaky feeling it's this playing silly buggers:

img { behavior: url("pngfix.htc"); }


What i done was tpo grab an orginal motd.txt , and just add 4 images to the corners, this worked.

However as soon as i try and add anything in the middle that is when it doesnt work.

and that file you just pointed to reads as follows, (but i took that out as well)

www.assiejack.teamhost.co.uk/motd.html

using

www.assiejack.teamhost.co.uk/motd.txt

pngfix.htc

Code:
<public:component>
<public:attach event="onpropertychange" onevent="propertyChanged()" />
<script>

var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
var realSrc;
var transSrc = "trans.gif";

if (supported) fixImage();

function propertyChanged()
{
   if (!supported) return;

   var pName = event.propertyName;
   if (pName != "src") return;
   // if not set to transparent
   if ( ! new RegExp(transSrc).test(src))
      fixImage();
};

function fixImage()
{
   // get src
   var src = element.src;

   // check for real change
   if (src == realSrc)
   {
      element.src = transSrc;
      return;
   }

   if ( ! new RegExp(transSrc).test(src))
   {
      // backup old src
      realSrc = src;
   }

   // test for png
   if ( /\.png$/.test( realSrc.toLowerCase() ) )
   {
      // set transparent image
      element.src = transSrc;
      // set filter
      element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
   }
   else
   {
      // remove filter
      element.runtimeStyle.filter = "";
   }
}

</script>
</public:component>

_________________


http://www.saynoto0870.com/

http://www.myshopbag.co.uk

XXVIII/ I/ MCMLXXI
Back to top
View user's profile Private message Visit poster's website
Nick(NR)
Moderator
Moderator

Virtual Cash: 8370

Joined: 06 May 2006
Posts: 4085
Location: Medway, Kent
Add Karma

rated by 30 members
Add Comment
Show Comments

online/offline
PostPosted: Wed May 14, 2008 5:42 pm    Post subject: Reply with quote

it shouldn't need a png fix, it's not an old browser it's a game that shows png sprays, so it wasn't needed anyways, but all the same will have to finish getting dod and have a bash on your server.
_________________
CALM TIME: When calm time is called, all posters in a topic must take time out to calm down.


I'm better than Jose!
Back to top
View user's profile Private message Visit poster's website
Viper
Moderator
Moderator

Virtual Cash: 1110

Joined: 20 Sep 2005
Posts: 1981

Add Karma

rated by 4 members
Add Comment
Show Comments

online/offline
PostPosted: Wed May 14, 2008 6:21 pm    Post subject: Reply with quote

Viper wrote:
Take this line out aswell:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Back to top
View user's profile Private message Visit poster's website
Symon
Moderator
Moderator

Virtual Cash: 28710

Joined: 04 Sep 2005
Posts: 11156
Location: Hampshire,England
Add Karma

rated by 85 members
Add Comment
Show Comments

online/offline
PostPosted: Wed May 14, 2008 6:35 pm    Post subject: Reply with quote

Viper wrote:
Viper wrote:
Take this line out aswell:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


Funny thing is i left that in and it works for images on 4 corners ?
_________________


http://www.saynoto0870.com/

http://www.myshopbag.co.uk

XXVIII/ I/ MCMLXXI
Back to top
View user's profile Private message Visit poster's website
Symon
Moderator
Moderator

Virtual Cash: 28710

Joined: 04 Sep 2005
Posts: 11156
Location: Hampshire,England
Add Karma

rated by 85 members
Add Comment
Show Comments

online/offline
PostPosted: Wed May 14, 2008 10:39 pm    Post subject: Reply with quote

I cheated in the end took a screen shot of how i wanted it and just place a single image which works.
_________________


http://www.saynoto0870.com/

http://www.myshopbag.co.uk

XXVIII/ I/ MCMLXXI
Back to top
View user's profile Private message Visit poster's website
Nick(NR)
Moderator
Moderator

Virtual Cash: 8370

Joined: 06 May 2006
Posts: 4085
Location: Medway, Kent
Add Karma

rated by 30 members
Add Comment
Show Comments

online/offline
PostPosted: Thu May 15, 2008 5:00 pm    Post subject: Reply with quote

Why not use a borderless table with jpgs?

If you wanted text over the pics, then some css to set the pics as bg's would've worked
_________________
CALM TIME: When calm time is called, all posters in a topic must take time out to calm down.


I'm better than Jose!
Back to top
View user's profile Private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Off Topic All times are GMT + 1 Hour
Page 1 of 1
 
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Create your own free forum | Buy a domain to use with your forum