View Full Version : New motd website
YoYoYonnY
04-15-2015, 04:07 PM
I created a new motd website for Counter-Strike: Source GunGame. Feel free to check it out, it should work fine when you copy all the files to your computer and open the index.html file.
Feedback is appreciated.
9390
StarsMine
04-15-2015, 08:06 PM
Im brave, but im not that brave
Yolo Swaggins
04-15-2015, 09:52 PM
my buddy has several crash and burn boxes for his company, I'll try it on one of those next time I'm by there
SCRIBBLE
04-15-2015, 10:52 PM
I'll look at it in the morning on my vm
MadGamer101
04-15-2015, 11:23 PM
It's a Trap :icon_mrgreen:
YoYoYonnY
04-16-2015, 12:29 AM
@MadGamer101 Open the .html file pls so I can hack ur computer.
MadGamer101
04-16-2015, 06:15 AM
@MadGamer101 Open the .html file pls so I can hack ur computer.
Yeah not going to happen lol :icon_mrgreen:
YoYoYonnY
04-16-2015, 07:30 AM
Yeah not going to happen lol :icon_mrgreen:
Ouch. Checkmate. I injected css into this page so now I know your password. I am stealing all your steam games with your steam id right now.
SCRIBBLE
04-16-2015, 08:42 AM
It looks good on my phone. A few of the pages need their content updated. I will do the edits tonight and reupload. Otherwise, it looks and performs great.
YoYoYonnY
04-16-2015, 09:13 AM
It looks good on my phone. A few of the pages need their content updated. I will do the edits tonight and reupload. Otherwise, it looks and performs great.
Yeah... lol the old site must be like 5-10 years old
Yea a lot better than the current one. I plan to roll in dynamic motd technology so that I can recode these using a php script so that the content can be derived automatically allowing a single file instance to be used across all the servers. This will make it much easier to keep content up to date.
Card here: https://trello.com/c/zZ3y9vTJ/3-dynamic-motd
YoYoYonnY
05-21-2015, 03:22 AM
I recommend compiling the website instead, to speed up traffic and to avoid 404s. Not sure how often you want to edit the content, though. I can send a simple lua file which basically replaces #{/content.html} with the content inside content.html. Also a simple include is much faster than running a entire script.
EDIT: Whoops I just read the trello. Yes, a script to conpile the site beforehand would probably be a better option. Note that I find using #{/content.html} (ruby styled variables) looks very clean.
I will likely try to program the php to grab the content directly from a target post so that the rules automatically update. The idea is to not only simplify the code so it can be modified more easily but also to make it so that it will not need to be modified very often.
YoYoYonnY
05-22-2015, 03:30 PM
Your usage of the word 'programming' confuses me. Adding <?php include 'rules.html';?> does not really seem like programming to me, and recompiling a page only when its content is updated (Using 'date of last edit' and a array of dates stored in sql) makes more sense to me either way, but of course performance wont be a big issue on a file of just around 200 bytes, so adding include (like stated before) might not be a problem.
YoYoYonnY
05-22-2015, 04:03 PM
Okay. Reading is defenitly hard. What you want is motd.ibisgaming.com/?content=tos, something like that. I however do not see a advantage above using a compiler, because every single php line of code will slow down the page reload. Of course, this isnt very significant, but still, why not recompile after a edit? Unless you want to allow other ULAs to change the rules too, because they might not (should not) be able to run a external program. Otherwise, take a look at a simple html compiler, like mine, which allows variables: 'template.html':
<html>
<head>
<title>#{title}</title>
</head>
<body>
#{content} <!-- Multiline included files will remain these left side spaces, yay layout -->
#{/footer.html} <!-- Include file "footer.html" from template folder -->
</body>
</html>
'compile.txt':
tos.html {
template: url("template.html");
title: "Terms of Service";
content: url("tos.txt"); /* This is the files containing the terms of service, if you updated the file, just recompile the website. */
}
rules.html {
template: url("template.html");
title: "Rules";
content: "Coming soon..."; /* Variables... */
}
euronews
05-22-2015, 09:16 PM
Okay. Reading is defenitly hard. What you want is motd.ibisgaming.com/?content=tos, something like that. I however do not see a advantage above using a compiler, because every single php line of code will slow down the page reload. Of course, this isnt very significant, but still, why not recompile after a edit? Unless you want to allow other ULAs to change the rules too, because they might not (should not) be able to run a external program. Otherwise, take a look at a simple html compiler, like mine, which allows variables: 'template.html':
<html>
<head>
<title>#{title}</title>
</head>
<body>
#{content} <!-- Multiline included files will remain these left side spaces, yay layout -->
#{/footer.html} <!-- Include file "footer.html" from template folder -->
</body>
</html>
'compile.txt':
tos.html {
template: url("template.html");
title: "Terms of Service";
content: url("tos.txt"); /* This is the files containing the terms of service, if you updated the file, just recompile the website. */
}
rules.html {
template: url("template.html");
title: "Rules";
content: "Coming soon..."; /* Variables... */
}
Listen bruh.. You don't need to explain.. Zero is experienced enough doesn't need this.. All you need is to post what you want and he'll do it.
YoYoYonnY
05-23-2015, 02:42 AM
To be honist, I want to know what method ZERO will use to make the website dynanic. He said 'program' so I am expecting he will make something cool, but I am asking him why he would want to spend hours on something thats either builtin (<?php include('tos.txt');?>) redundant (motd.ibisgaming.com/?content=tos vs motd.ibisgaming.com/tos) or already done (Just search for a HTML compiler) I am very curious how ZERO will make the motd dynamic, and am trying to give him some new ideas.
I said program b/c you got to program a plugin for cs:s to actually load the data into it.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.