![]() |
Re: Ruatha: PBW Alternate Scripts
Quote:
The mail button was a good idea, will do! EDIT: Have included a crude "mail all" function, but I have nowhere to upload it (Haven't started the FTP server at home since the Last reformatation!, can't find the upload function here at the forum!) [ October 24, 2003, 18:38: Message edited by: Ruatha ] |
Re: Ruatha: PBW Alternate Scripts
A temporary fix one can make is to change the link from "upload.php" to the "gamefile" directory, ugly but it works while we fix it.
Have a Version of the index.php that does this aswell, but- have no way of testing it right now and nowhere to upload it. |
Re: Ruatha: PBW Alternate Scripts
I added a news.html file that the host can edit to post up some nice news info. http://forum.shrapnelgames.com/images/icons/icon12.gif Just put this in the folder over the old index.php.
http://pbw.spaceempires.net/newsfile.zip Have you considered making use of a database? It would greatly simplify some things. http://forum.shrapnelgames.com/images/icons/icon12.gif [ October 24, 2003, 23:10: Message edited by: Imperator Fyron ] |
Re: Ruatha: PBW Alternate Scripts
How stupid can I be allowed to be??? http://forum.shrapnelgames.com/images/icons/icon8.gif
Instead of making PHP start the download I can make PHP make a dynamic HREF link to the newest gamefile to the "get turn" button, it's so easy!! Why didn't I see it? I've made the script but can't upload it until I get home from work tomorrow, will incorporate your News section then Fyron. This means that Upload.php is scrapped totally and incorporated into index.php. Databases, have never used any, always made my own. I'll make PHP files to include variables instead of txt files next though. [ October 24, 2003, 23:24: Message edited by: Ruatha ] |
Re: Ruatha: PBW Alternate Scripts
I started on some of the php for the newer Version. http://forum.shrapnelgames.com/images/icons/icon12.gif I took the liberty of renaming some of the variables to have better names.
http://pbw.spaceempires.net/betafiles.zip So far, I have a gameinfo.php and deadline.php. I did not put news in there, as I would rather see news handled via its own HTML file included in main.php. Edit: Email them to me and I can post them. http://forum.shrapnelgames.com/images/icons/icon12.gif [ October 24, 2003, 23:28: Message edited by: Imperator Fyron ] |
Re: Ruatha: PBW Alternate Scripts
Ok, the only new file is the index.php
Will mail it to you as soon as the patient I'm waiting for have come and gone. (Will have to go to another computer in another room) Will download the gameinfo and work out of that, thanx. It's good that you change the variables, I'm usually sloppy about the varaible names. This will be a total rewrite of the site so it's good to start fresh. (my variables usually ends up having names like "trash1, trash2, trash3" etc but in swedish....) [ October 24, 2003, 23:30: Message edited by: Ruatha ] |
Re: Ruatha: PBW Alternate Scripts
Added deadline.php, though I have no idea what you wanted with "Date in Central European time, altered to the set timezone when displayed in each game."...
|
Re: Ruatha: PBW Alternate Scripts
It just means that all deadlines will be stored in the same timezone, doesn't matter wich.
But when it is displayed on the web page it is changed to the timezone that the host has defined for that particular game (add or subtract hours) . The player will be able to press a button to have it converted to all the other time zones, to see his/hers local deadline time. EDIT: Should the design be similar to PBW or should it be radically different? EDIT2: I really like the variable files. I'm thinking of counting the player names until the first "SN" name and checking that against $numplayers. In deadline.php I'll change $date to $timezone Edit 3.5: Mail is on the way. Won't be able to check this site or mail for some 6-7 hours, work work work... [ October 25, 2003, 00:04: Message edited by: Ruatha ] |
Re: Ruatha: PBW Alternate Scripts
I am working on and have uploaded a main.php (in that same betafiles.zip). But, I am having some problems with it... check out this test site to see what they are http://forum.shrapnelgames.com/images/icons/icon12.gif :
http://pbw.spaceempires.net/test/main.php http://pbw.spaceempires.net/betafiles.zip I am attempting to move all the plr file checking to a new file called "playerupload.php" to keep main uncluttered. [ October 25, 2003, 00:03: Message edited by: Imperator Fyron ] |
Re: Ruatha: PBW Alternate Scripts
I've made a deadline_check.php that checks the deadline.php in the $game directory against current time, displays this and what timezone is being used (So far only what the variable $timezone is, up to the host to define it so far) and a countdown in hours.
Also a link to a world timezone web page (External). This is meant to be included in the Main.php INCLUDE "deadline_check.php" |
All times are GMT -4. The time now is 10:40 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.