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

rotatable MOTD for TF2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
oakswatch
Junior Member
Join Date: Feb 2011
Old 08-17-2011 , 20:38   rotatable MOTD for TF2
Reply With Quote #1

Hi,

I just wondering is there a way to make my MOTD rotatable?

I would like to rotate the MOTDs that was sent in by my community. But I couldn't figure a way to do it.
oakswatch is offline
Rizla
SourceMod Donor
Join Date: Jun 2010
Old 08-17-2011 , 21:17   Re: rotatable MOTD for TF2
Reply With Quote #2

i can think of a couple of ways..

one is a plugin (harder)

2nd is have a static URL that loads random content using php (easier)

^imo
Rizla is offline
oakswatch
Junior Member
Join Date: Feb 2011
Old 08-17-2011 , 21:26   Re: rotatable MOTD for TF2
Reply With Quote #3

Thanks for the reply, I'll do some digging on that random content using php thingy.
So, I assumed for that php thing to work, I need some kind of web hosting?

Can't just upload it to those image hosting site?
oakswatch is offline
Rizla
SourceMod Donor
Join Date: Jun 2010
Old 08-18-2011 , 10:47   Re: rotatable MOTD for TF2
Reply With Quote #4

no, not for what you want.

tbh, you could just get some free hosting + space. theres loads out there. unless you have a dedi box in which case you can run it from that
Rizla is offline
Obsidian
Senior Member
Join Date: Jun 2011
Old 08-18-2011 , 13:56   Re: rotatable MOTD for TF2
Reply With Quote #5

If you've got a dedi-box, you're better off with using a cronjob with a bash script to rotate the MOTD (I'm assuming it would be a linux dedi-box).
__________________
TF2 Stats plugin alternative web interface - profile @ Github
(tf2stats-webui latest release: 1.1.1)


"If you're not willing to do it right, don't get involved with security or Explosive Ordinance Disposal."
Obsidian is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 08-19-2011 , 00:20   Re: rotatable MOTD for TF2
Reply With Quote #6

Since most MOTD pages are .html it would seem easiest to use a .php page that rotates which .html page is displayed (doesn't matter, can be .php pages too). Simple. Uses language that is usually known. Doesn't require a process or schedule. Self-contained. etc.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
Obsidian
Senior Member
Join Date: Jun 2011
Old 08-19-2011 , 01:07   Re: rotatable MOTD for TF2
Reply With Quote #7

Quote:
Originally Posted by Antithasys View Post
Since most MOTD pages are .html it would seem easiest to use a .php page that rotates which .html page is displayed (doesn't matter, can be .php pages too). Simple. Uses language that is usually known. Doesn't require a process or schedule. Self-contained. etc.
Assuming there's an external webserver involved, can be done that way. If there isn't, you're probably going to want to avoid that method.
__________________
TF2 Stats plugin alternative web interface - profile @ Github
(tf2stats-webui latest release: 1.1.1)


"If you're not willing to do it right, don't get involved with security or Explosive Ordinance Disposal."
Obsidian is offline
Reply


Thread Tools
Display Modes

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 03:30.


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