AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   motd + iframe (https://forums.alliedmods.net/showthread.php?t=93471)

xPaw 05-29-2009 10:41

motd + iframe
 
Ive thinked of how to pass though motd limits (maybe someone got better idea :mrgreen:)

So its like you are formatting motd like normal one, after it saving it into file

PHP Code:

    new szFile fopen"addons\amxmodx\motd.html""w" );
    
    if( 
szFile ) {
        
fputsszFileszFormattedMotd );
        
fcloseszFile );
    } 

Then open iframe from that addons\amxmodx\motd.html, but i dont think its possible to open html file on server and show to client O_o

Edit: i also had idea to upload motd.html to own ftp and iframe from it :mrgreen:
Edit2: I lulz at this idea but.. maybe there some 'uber compressors' what can gerenate some random <script> wich will make less chars :mrgreen:

Dr.G 05-29-2009 10:53

Re: motd + iframe
 
ive tryed to write over 2000 chars to a file and then show that, but no cigar. just the reliable channel overflow. Not possible i'd say.

- Cheers

AntiBots 05-29-2009 12:42

Re: motd + iframe
 
I try something like that with TOP15 of KZ and the only result was a over flood in the server. And a Nice CPU Work xD

Exolent[jNr] 05-29-2009 13:03

Re: motd + iframe
 
Do you guys know what an iframe is in html?
It allows you to take the HTML code from another file and use it in the frame that you created.
Therefore, you wouldn't even get close to the MOTD character limit.

fysiks 05-29-2009 18:24

Re: motd + iframe
 
I thought this was solved/old news . . ?

I use meta refresh because with iframe you get [nearly] useless scrollbars.

Exolent[jNr] 05-29-2009 18:27

Re: motd + iframe
 
Quote:

Originally Posted by fysiks (Post 837624)
I use meta refresh because with iframe you get [nearly] useless scrollbars.

You can remove those.

fysiks 05-29-2009 18:29

Re: motd + iframe
 
Quote:

Originally Posted by Exolent[jNr] (Post 837625)
You can remove those.

But you can't scroll then :). If you use meta refresh it will use the built-in scroll bars. iframe uses IE scroll bars that don't scroll with drag or mouse wheel (but work if you use the arrows old school style).


All times are GMT -4. The time now is 13:54.

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