Raised This Month: $51 Target: $400
 12% 

motd picture size issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RavenDan29
Veteran Member
Join Date: Sep 2009
Old 01-03-2012 , 09:28   motd picture size issue
Reply With Quote #1

I dont know how to make websites so im trying to use a picture uploaded to facebook but i keep getting white areas round the motd page in game, ive been playing around with different sizes and ratios but i still cant get it right what is the motd page pixel size please!!!!
__________________
RavenDan29 is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 01-03-2012 , 11:53   Re: motd picture size issue
Reply With Quote #2

motd 766x383
banner 340x56
just make sure when you resize them not to maintain the aspect ratio.
MasterMind420 is offline
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 01-03-2012 , 14:45   Re: motd picture size issue
Reply With Quote #3

What may look good on your client MOTD screen, may not look good to another client who is running at a different screen resolution. What you need to do is have the picture rescale in both directions without any intervention.

For that, you need an HTML page to be called by your server MOTD file. The HTML file will in turn call the picture you want to display and resize it to fill 100% of the area both vertically and horizontally.

Copy the code below and save it as an html file on a webserver (I'm am guessing you can do this using facebook). Replace "image_name.jpg" with the name of your picture file and point your MOTD file on the game server to that html page (Note, you should be able to test it first by going the HTML file directly with a browser).

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MOTD</title>
<meta content="Microsoft FrontPage 5.0" name="GENERATOR" />
<meta content="FrontPage.Editor.Document" name="ProgId" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
</head>
<body><img alt="" height="100%" width="100%" border="0" src="image_name.jpg" />
</body>
</html>
SuperShadow is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 01-03-2012 , 17:40   Re: motd picture size issue
Reply With Quote #4

Quote:
Originally Posted by SuperShadow View Post
What may look good on your client MOTD screen, may not look good to another client who is running at a different screen resolution. What you need to do is have the picture rescale in both directions without any intervention.

For that, you need an HTML page to be called by your server MOTD file. The HTML file will in turn call the picture you want to display and resize it to fill 100% of the area both vertically and horizontally.

Copy the code below and save it as an html file on a webserver (I'm am guessing you can do this using facebook). Replace "image_name.jpg" with the name of your picture file and point your MOTD file on the game server to that html page (Note, you should be able to test it first by going the HTML file directly with a browser).

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MOTD</title>
<meta content="Microsoft FrontPage 5.0" name="GENERATOR" />
<meta content="FrontPage.Editor.Document" name="ProgId" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
</head>
<body><img alt="" height="100%" width="100%" border="0" src="image_name.jpg" />
</body>
</html>
You don't actually need to upload that HTML file to a web server. Just paste that code into motd.txt and make sure you set the URL to the image correctly.
__________________
Dr. McKay is offline
RavenDan29
Veteran Member
Join Date: Sep 2009
Old 01-04-2012 , 11:22   Re: motd picture size issue
Reply With Quote #5

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://a3.sphotos.ak.fbcdn.net/hphotos-ak-snc7/398552_1733576236796_1760278902_829757_885292 033_n.jpg">
<html xmlns="http://a3.sphotos.ak.fbcdn.net/hphotos-ak-snc7/398552_1733576236796_1760278902_829757_885292 033_n.jpg">
<head>
<title>MOTD</title>
<meta content="Microsoft FrontPage 5.0" name="GENERATOR" />
<meta content="FrontPage.Editor.Document" name="ProgId" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
</head>
<body><img alt="" height="100%" width="100%" border="0" src="DSFMOTDNEW.jpg" />
</body>
</html>

like this?

nope that doesnt work

<html xmlns="http://a3.sphotos.ak.fbcdn.net/hphot..._829757_885292 033_n.jpg">
<head>
<title>MOTD</title>
<meta content="Microsoft FrontPage 5.0" name="GENERATOR" />
<meta content="FrontPage.Editor.Document" name="ProgId" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
</head>
<body><img alt="" height="100%" width="100%" border="0" src="DSFMOTDNEW.jpg" />
</body>
</html>

maybe this?

nope cant connect to server

or do you mean this?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MOTD</title>
<meta content="Microsoft FrontPage 5.0" name="GENERATOR" />
<meta content="FrontPage.Editor.Document" name="ProgId" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
</head>
<body><img alt="" height="100%" width="100%" border="0" src="http://a3.sphotos.ak.fbcdn.net/hphot...85292033_n.jpg" />
</body>
</html>

ok now i know what you ment that worked thx can the same be done with host.txt? ok geuss not probably a different code?
__________________

Last edited by RavenDan29; 01-04-2012 at 11:51.
RavenDan29 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 01-04-2012 , 11:34   Re: motd picture size issue
Reply With Quote #6

Quote:
Originally Posted by RavenDan29 View Post
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://a3.sphotos.ak.fbcdn.net/hphotos-ak-snc7/398552_1733576236796_1760278902_829757_885292 033_n.jpg">
<html xmlns="http://a3.sphotos.ak.fbcdn.net/hphotos-ak-snc7/398552_1733576236796_1760278902_829757_885292 033_n.jpg">
<head>
<title>MOTD</title>
<meta content="Microsoft FrontPage 5.0" name="GENERATOR" />
<meta content="FrontPage.Editor.Document" name="ProgId" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
</head>
<body><img alt="" height="100%" width="100%" border="0" src="DSFMOTDNEW.jpg" />
</body>
</html>

like this?

nope that doesnt work
src needs to be the full URL to the image.
__________________
Dr. McKay 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 10:02.


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