Raised This Month: $ Target: $400
 0% 

MOTD scrolling problem.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 07-19-2011 , 08:33   MOTD scrolling problem.
Reply With Quote #1

Hello. I'm opening motd that way:
Code:
formatex(buffer, 1500, "<html><head><meta http-equiv=^"Refresh^" content=^"0;url=http://xxxx/motd/inne/taryfikator/%s/%s^"></head><body><p>LOADING...</p></body></html>", ip, port);

show_motd(id, buffer, "Taryfikator");
ip and port are consts. Anyway it works almost fine, but there is problem with scrolling. The page is to long to be displayed at all. It needs to be scrolled down. The scroll bar from motd is moving, but nothing happens, the page doesn't scroll at all. Is there any way to fix that?
FiFiX is offline
Send a message via Skype™ to FiFiX
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-19-2011 , 14:58   Re: MOTD scrolling problem.
Reply With Quote #2

Remove the doctype declartion from the target page. Also, you can just pust the url when using show_motd(), there is no need for a meta refresh.

This is discussed a lot here. Searching would provide this answer .

If you can't remove it then you only other option is an iframe.
__________________
fysiks is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 07-19-2011 , 22:06   Re: MOTD scrolling problem.
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Remove the doctype declartion from the target page. Also, you can just pust the url when using show_motd(), there is no need for a meta refresh.

This is discussed a lot here. Searching would provide this answer .

If you can't remove it then you only other option is an iframe.
What if its a link from a site. You cant edit there stuff so how would you remove doctype than?

Also do you think you can show an example of one using inframe like that people can just change the link. That would be really helpful for allot of people =)
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-19-2011 , 22:20   Re: MOTD scrolling problem.
Reply With Quote #4

Quote:
Originally Posted by deadman909 View Post
What if its a link from a site. You cant edit there stuff so how would you remove doctype than?
You don't.

Quote:
Originally Posted by deadman909 View Post
Also do you think you can show an example of one using inframe like that people can just change the link. That would be really helpful for allot of people =)
Google. Although, I like w3schools.com
__________________
fysiks is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 07-19-2011 , 22:45   Re: MOTD scrolling problem.
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
You don't.



Google. Although, I like w3schools.com
So wait inframe is not part of plugin is part of the HTML Code u use?
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-20-2011 , 00:47   Re: MOTD scrolling problem.
Reply With Quote #6

Quote:
Originally Posted by deadman909 View Post
So wait inframe is not part of plugin is part of the HTML Code u use?
iframe is just html
__________________
fysiks is offline
DSASDFGH
Senior Member
Join Date: Jul 2011
Location: Facebook
Old 07-19-2011 , 16:26   Re: MOTD scrolling problem.
Reply With Quote #7

motd uses html, so make scrolling in your html code
DSASDFGH is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-19-2011 , 16:55   Re: MOTD scrolling problem.
Reply With Quote #8

Quote:
Originally Posted by DSASDFGH View Post
motd uses html, so make scrolling in your html code
No. The scrolling is not controlled by HTML.
__________________
fysiks is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 07-20-2011 , 06:26   Re: MOTD scrolling problem.
Reply With Quote #9

1. Create an .html file.
2. Upload .html file into web hosting.
3. Copy .html file URL.
4. Paste the URL and redirect into your motd.txt

You can scroll with unlimited scroll.

Default motd has limited character i think.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 07-20-2011 , 06:42   Re: MOTD scrolling problem.
Reply With Quote #10

Quote:
Originally Posted by yokomo View Post
1. Create an .html file.
2. Upload .html file into web hosting.
3. Copy .html file URL.
4. Paste the URL and redirect into your motd.txt

You can scroll with unlimited scroll.

Default motd has limited character i think.
I already know that. The point here is trying to link it to an ACTUAL WEBSITE.
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
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 00:51.


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