Raised This Month: $ Target: $400
 0% 

MOTD (how to enable scrolling?)


Post New Thread Reply   
 
Thread Tools Display Modes
karil
SourceMod Donor
Join Date: Jan 2010
Old 05-08-2010 , 15:01   Re: MOTD (how to enable scrolling?)
Reply With Quote #11

Kryzu's method works. Thanks a ton!

I'll use kwski's method for motd.txt.
shustas's method laggs the server when I scroll it.

It screwed the sites styles as Kryzu predicted. Could I somehow remove any of these rectangles from MOTD?

Screen: http://www.shrani.si/f/1j/Vk/3J2wbGl/motd313.png
karil is offline
Schinken
Junior Member
Join Date: Mar 2010
Old 05-09-2010 , 11:51   Re: MOTD (how to enable scrolling?)
Reply With Quote #12

PHP?

PHP Code:
<?php

if ($_SERVER["HTTP_REFERER"] == "YOUR SERVERS IP")
echo 
"";
else
echo (
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');

?>
Edit: This solution is not the fix for the rectangles, sry ;).
Schinken is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 05-09-2010 , 13:34   Re: MOTD (how to enable scrolling?)
Reply With Quote #13

Quote:
Originally Posted by Schinken View Post
PHP?

PHP Code:
<?php

if ($_SERVER["HTTP_REFERER"] == "YOUR SERVERS IP")
echo 
"";
else
echo (
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');

?>
Edit: This solution is not the fix for the rectangles, sry ;).
Im not sure but this code is a fail as client loads the motd so refer ip will be clients ip. Am I wrong?
__________________
kwski43 is offline
Schinken
Junior Member
Join Date: Mar 2010
Old 05-09-2010 , 13:39   Re: MOTD (how to enable scrolling?)
Reply With Quote #14

hl2://188.40.238.216:27015
hl2://188.40.238.218:27015
hl2://188.40.238.217:27015
That's what Confixx tells me ;).
Schinken is offline
spar13
SourceMod Donor
Join Date: May 2010
Old 05-10-2010 , 01:29   Re: MOTD (how to enable scrolling?)
Reply With Quote #15

I'm not meaning to Hi-jack this thread but since Karil got his answer, I'm looking for some help.

Wide motd.
http://plaguefest.com/Josh/motd5.html
Wide motd with 3 images, I don't know why the motd wasn't working so I tried smaller maps.
http://plaguefest.com/Josh/motd6.html
Shrunk motd, was trying everything I could.
http://plaguefest.com/Josh/motd7.html

I've also tried.
HTML Code:
<html>
<head>
<title>PlagueFest 24/7 Zombiemod Server</title>
</head>

<body bgcolor="#000000" text="#CCCCCC"><center>
<p><img src="http://img710.**************/img710/5270/newmotd10smaller2.png" border="0" usemap="#Map" />
  <map name="Map">
    <area shape="rect" coords="206,130,366,293" href="http://www.plaguefest.com/Josh/zombiemod.html">
    <area shape="rect" coords="389,130,547,292" href="http://www.plaguefest.com/Josh/riot.html">
    <area shape="rect" coords="114,310,239,344" href="http://steamcommunity.com/groups/plaguefest">
    <area shape="rect" coords="251,311,375,345" href="http://plaguefest.com/index.php?/topic/3911-purchase-admin-or-donator/">
    <area shape="rect" coords="389,311,515,344" href="http://plaguefest.com/index.php?showforum=77">
    <area shape="rect" coords="526,311,652,344" href="http://www.plaguefest.com/">
    <area shape="rect" coords="664,310,790,343" href="http://plaguefest.com/motd/commands.html">
    <area shape="rect" coords="179,349,304,383" href="http://www.sourcetunes.com/multiplayer/go.php?uid=4t8mrksv7v72a60qkah3">
    <area shape="rect" coords="319,350,441,384" href="http://plaguefest.com/rules2.html">
    <area shape="rect" coords="591,348,715,381" href="http://plaguefest.com/sb/index.php?p=home">
    <area shape="rect" coords="454,350,578,384" href="http://plaguefest.com/index.php?app=members&section=view&module=list">
  </map>
</p>
  <br>
<span class="style8"><center><h4>Music Player</h4></center></span>
<OBJECT id='mediaPlayer' width="320" height="45"

      classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' 

      codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'

      standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> 
  <param name='fileName' value="http://plaguefest.com/listen.asx"> 
      <param name='animationatStart' value='true'> 
      <param name='transparentatStart' value='true'> 
      <param name='autoStart' value="true"> 
      <param name='showControls' value="true"> 
      <param name='loop' value="true"> 
	<PARAM NAME="ShowDisplay" VALUE="False"> 
    
        <EMBED type='application/x-mplayer2'

        pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'

        id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' 

        bgcolor='darkblue' showcontrols="true" showtracker='-1' 

        showdisplay='0' showstatusbar='0' videoborder3d='-1' width="320" height="45"

        src="http://plaguefest.com/listen.asx" autostart="true" designtimesp='5311' loop="true"> 
      </EMBED> 
</OBJECT> </center>
</body>
</html>
Any help is appreciated.
spar13 is offline
spar13
SourceMod Donor
Join Date: May 2010
Old 05-10-2010 , 19:05   Re: MOTD (how to enable scrolling?)
Reply With Quote #16

Anyone know why a motd would literally show the HTML code?
<body> ect.

Last edited by spar13; 06-18-2010 at 14:18.
spar13 is offline
8088
Veteran Member
Join Date: Jan 2008
Old 05-11-2010 , 10:38   Re: MOTD (how to enable scrolling?)
Reply With Quote #17

Quote:
Originally Posted by kwski43 View Post
Am I wrong?
You're right.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
karil
SourceMod Donor
Join Date: Jan 2010
Old 05-12-2010 , 12:16   Re: MOTD (how to enable scrolling?)
Reply With Quote #18

Actually it not solved yet :/. I'm still waiting if someone comes up with a solution that doesn't break website styles.
karil is offline
8088
Veteran Member
Join Date: Jan 2008
Old 05-12-2010 , 18:01   Re: MOTD (how to enable scrolling?)
Reply With Quote #19

Removing the doctype declaration is a pretty bad solution in your case. Using an iframe instead could do what you need. But why not make a different, seperate page for your motd?
__________________
steamID converter with OpenSearch browser plugin
8088 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:00.


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