It's not really a tutorial, but I've made a pack to be able to get a dynamic
and graphical motd
I've modified my scripts so you have a config.php file, but all the text is
still hardcoded. It will not be difficult to modify it though.
You'll find the doc (in french and english) and a tar.gz with all the needed
files on my server's blog: http://www.coldfire.info/?p=64 Feel free to ask for help replying to this "thread".
The motd as provided has about, rules and contact "blocks", as well as a
mapcycle bloc, displaying in color current map and nextmap. If the
current/nextmap is not in the mapcycle, then the map name is written in the
legend. And the code has comments, so it should not be difficult to modify
and adapt to your needs if you have basic php-gd knowledge.
> A tutorial on using php for bringing in this dynamic info into the MOTD
> would be very grateful indeed.
> On 6/25/08, Coldorak <coldorak.tf2@gmai...> wrote:
> > Yep, the reason is I want to use the font TF2 secondary.
> > With the new headers in the image and a change to motd.html (changed to
> > with a always changing link to the image), no more cache problem
> > motd2.html changed to motd.php, and the img link is now: <img src="
> > http://www.coldfire.info/tf2/motd/cold/motd_image.php?<?php echo time();
> > ?>"
> > /> so the link is never the same
> > And the no-cache headers in motd_image.php (with returns a png image),
> > works fine
> > Thanks to all for the help
> > For those interested by all this stuff, feel free to ask
> > Cold
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux >
To unsubscribe, edit your list preferences, or view the list archives, please visit: