Author |
Message |
Pestss Guest
Offline
|
Posted: Sun Jul 06, 2003 4:30 pm Post subject: Zone stats on webiste |
 |
|
|
|
Trying to figure out how to get zone stats onto the website like TW does. Only way I could think of doing it would be using the current http://edome.fi.soneraplaza.net stat page and hacking it up to work into the site, accept I couldn't find out the URL to it. Any ideas?
|
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Sun Jul 06, 2003 6:03 pm Post subject: |
 |
|
|
|
What zone is it you are involved with?
subspace.edome.net stats are for SSC billed zones only
other billers usually have their own stat scripts set up (though peeking at SSI / SSN they appear to be lacking at the moment)
apart from setting up some scripting between your zone's biller and a website, you can use a bot...
Dustpuppy made a plugin called SubStats for catid's MERVBot which keeps track of many hip things - if you're interested, you may have to contact Dustpuppy or someone that has it, as the download page I know of seems to be out of commission since he progressed to SubStats 2 (the server is unfortunately full atm)
|
|
Back to top |
|
 |
Pestss Guest
Offline
|
Posted: Sun Jul 06, 2003 6:06 pm Post subject: |
 |
|
|
|
SSCU Redstar. Yes I know its for SSC billed zones only. Yes we have Substats here but I rather use the zones stats.
|
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Sun Jul 06, 2003 6:22 pm Post subject: |
 |
|
|
|
ah, okay
let's see, if I remember correctly, you just need a li'l cgi script to tweak the SSC stats into your own little page, but it's been a while since I looked at that
check the source code...I think "femmefatale" knows exactly how to do it if she still plays...and no doubt other ppl wiser than myself on this board
|
|
Back to top |
|
 |
Pests Novice
Joined: Feb 24 2003 Posts: 84 Offline
|
Posted: Sun Jul 06, 2003 7:30 pm Post subject: |
 |
|
|
|
femmefatale was on 2 days ago. Well, Im not very good at CGI so I wouldn't know how to do that.
|
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Sun Jul 06, 2003 7:33 pm Post subject: |
 |
|
|
|
well assuming nobody here helps you out, you could ?message her
|
|
Back to top |
|
 |
Pests Novice
Joined: Feb 24 2003 Posts: 84 Offline
|
Posted: Sun Jul 06, 2003 8:48 pm Post subject: |
 |
|
|
|
I did that before my last post.
|
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Sun Jul 06, 2003 8:59 pm Post subject: |
 |
|
|
|
|
|
Back to top |
|
 |
Pests Novice
Joined: Feb 24 2003 Posts: 84 Offline
|
Posted: Mon Jul 07, 2003 2:09 am Post subject: |
 |
|
|
|
Anyone?
|
|
Back to top |
|
 |
FemmeFatale Guest
Offline
|
Posted: Mon Jul 07, 2003 8:01 am Post subject: |
 |
|
|
|
Yes, sticking these stats on your website does indeed mean hacking it through the edome site, and here's how to do it. It's actually not all that hard
First off you need to make a drop down box to include all the reset dates.
Unfortunately it will take some grunt work to update it, since you will need a new option every time there is a score reset. All these are in the format '20030618' which is a reset in 2003, in June, on the 18th. A very roundabout way of doing the date, but hey.
For every reset, do <option value="datehereinformat">Date.
Just look below for ALL of the resets to date, along with the value for All Current Scores.
Also note that the code I place in before all the dates is required
<script language="JavaScript" src="sub.js"></script>
<form method="POST" name="f0" target="score">
<br>
<select name="date">
<option value="0">Current scores
<option value="20030618">June 18 2003
<option value="20030604">June 04 2003
<option value="20030521">May 21 2003
<option value="20030507">May 7 2003
<option value="20030423">April 23 2003
<option value="20030410">April 10 2003
<option value="20030326">March 26 2003
<option value="20030312">March 12 2003
<option value="20030226">February 26 2003
<option value="20030212">February 12 2003
<option value="20030129">January 29 2003
<option value="20030115">January 15 2003
<option value="20030101">January 01 2003
<option value="20021218">December 18 2002
<option value="20021204">December 4 2002
<option value="20021120">November 20 2002
<option value="20021106">November 6 2002
<option value="20021023">October 23 2002
<option value="20021009">October 9 2002
<option value="20020925">September 25 2002
<option value="20020911">September 11 2002
<option value="20020828">August 28 2002
<option value="20020814">August 14 2002
<option value="20020731">July 31 2002
<option value="20020717">July 17 2002
<option value="20020703">July 3 2002
<option value="20020619">June 19 2002
<option value="20020605">June 5 2002
<option value="20020522">May 22 2002
<option value="20020508">May 8 2002
<option value="20020424">April 24 2002
<option value="20020410">April 10 2002
<option value="20020327">March 27 2002
<option value="20020313">March 13 2002
<option value="20020302">March 2 2002
<option value="20020213">February 13 2002
<option value="20020130">January 30 2002
<option value="20020117">January 17 2002
<option value="20020102">January 2 2002
<option value="20011219">December 19 2001
<option value="20011205">December 5 2001
<option value="20011121">November 21 2001
<option value="20011107">November 7 2001
<option value="20011024">October 24 2001
<option value="20011010">October 10 2001
<option value="20010926">September 26 2001
<option value="20010912">September 12 2001
<option value="20010829">August 29 2001
<option value="20010815">August 15 2001
<option value="20010801">August 1 2001
<option value="20010718">July 18 2001
<option value="20010704">July 4 2001
<option value="20010620">June 20 2001
<option value="20010606">June 6 2001
<option value="20010523">May 23 2001
<option value="20010509">May 9 2001
<option value="20010425">April 25 2001
<option value="20010411">April 11 2001
<option value="20010328">March 28 2001
<option value="20010314">March 14 2001
<option value="20010228">February 28 2001
<option value="20010214">February 14 2001
<option value="20010131">January 31 2001
<option value="20010117">January 17 2001
<option value="20010103">January 3 2001
<option value="20001220">December 20 2000
<option value="20001206">December 6 2000
<option value="20001122">November 22 2000
<option value="20001108">November 8 2000
<option value="20001025">October 25 2000
<option value="20001011">October 11 2000
<option value="20000927">September 27 2000
<option value="20000913">September 13 2000
<option value="20000830">August 30 2000
<option value="20000816">August 16 2000
<option value="20000802">August 2 2000
<option value="20000719">July 19 2000
<option value="20000705">July 5 2000
<option value="20000621">June 21 2000
<option value="20000608">June 8 2000
<option value="20000518">May 18 2000
<option value="20000413">April 13 2000
<option value="20000315">March 15 2000
<option value="20000223">February 23 2000
<option value="20000209">February 9 2000
<option value="20000125">January 25 2000
<option value="20000110">January 10 2000
<option value="19991229">December 29 1999
<option value="19991213">December 13 1999
<option value="19991129">November 29 1999
<option value="19991115">November 15 1999
<option value="19991101">November 1 1999
</select>
</form>
|
With that done, you now need to generate the selector for top pilots listings.
<form method="POST" name="f1" target="score">
<input type="hidden" name="cgi" value="stat.cgi">
<table>
<tr>
<td colspan=2 align="center">Top Pilots</td>
</tr>
<tr>
<td>Show top</td>
<td><select name="limit">
<!--- This section allows you to select top 10, 20, 50, or 100 pilots --->
<option value="10">10
<option value="20">20
<option value="50">50
<option value="100">100
<!--- End section --->
</select>
<select name="sort">
<!--- This section allows you to select the stats you are sorting by --->
<option value="4">pts
<option value="5">flag pts
<option value="1">total pts
<option value="2">wins
<option value="3">losses
<option value="6">ratings
<option value="7">avg kills
<option value="8">w:l ratios
<!-- End section --->
</select>
</td>
</tr>
<tr>
<td> </td>
<!--- Here we make a drop down box allowing people to select the zone they want the stats from. If you were just doing this for redstar, you could delete all of these and switch it all for <input type=hidden name=zone value=3700> --->
<td><select name="zone">
<option value="5900"> SSCU 17th Parallel
<option value="36000"> SSCU Death Star Battle
<option value="3700"> SSCU RedStar
<option value="5400"> SSCU Trench Wars
<option value="7501"> SSCE Hockey Zone
<option value="3800"> SSCX Chaos Zone SVS
<option value="21000"> SSCX Dueling/League SVS
<option value="14333"> SSCX Star Wars Realm
<option value="7400"> SSCX A Small Warzone
<option value="8625"> SSCX Alpha West SVS
<option value="5200"> SSCX Extreme Games
<option value="7500"> SSCX PowerBall
<option value="7100"> SSCX Star Warzone
<option value="4966"> SSCX Warzone CTF
<option value="25300"> SFSS Oklahoma Badlands (SSC)
<option value="25000"> SFSS Portal (SSC)
<option value="13333"> SFSS Star Wars (SSC)
<option value="25200"> SFSS SuB-iCiDe (SSC)
<option value="25100"> SFSS ZERO Annihilation (SSC)
<option value="33600"> SSCC MERC Ground Warfare
<option value="33400"> SSCC MERC Samurai
<option value="14000"> SSCC Metal Gear CTF
<option value="14444"> SSCC Star Trek DS9
<option value="33500"> SSCC Superships 2
<option value="5555"> SSCC WiTcH DooM
<option value="17000"> SSCI Dark Warzone
<option value="17100"> SSCI Hyperspace
<option value="16100"> SSCN Cosmarine Core
<option value="10100"> SSCN Crucial Warzone
<option value="10300"> SSCN Dragonball Z
<option value="10200"> SSCN Omega Fire
<option value="5401"> SSCU Trench Wars
<option value="5400"> SSCU Trench Wars
<option value="5400"> SSCU Trench Wars
<option value="16000"> T3 The Gauntlet! (SSC)
<option value="36000"> zzz Death Star Battle
</select>
<!--- End this replacable section --->
<input type="submit" value=" Go! " onClick="javascript:sub(f1)">
</form>
</td>
</tr>
<p>
<form method="post" name="f2" target="score">
<input type="hidden" name="cgi" value="squad.cgi">
<tr><td colspan="2"><center>Top Squads</center></td>
</tr>
<tr>
<td>Show top</td>
<td><select name="limit">
<!--- Same as before, fairly self explanatory --->
<option value="10">10
<option value="20">20
<option value="50">50
<option value="100">100
</select>
<select name="sort">
<option value="4">avg pts (top 5 players)
<option value="9">avg pts
<option value="1">pts
<option value="2">wins
<option value="3">losses
<option value="5">w:l ratios
<option value="6">ratings
<option value="7">avg kills
<option value="8"># members
</select>
</td>
</tr>
<tr>
<td> </td>
<!--- Begin replaceable section, as before --->
<td><select name="zone">
<option value="5900"> SSCU 17th Parallel
<option value="36000"> SSCU Death Star Battle
<option value="3700"> SSCU RedStar
<option value="5400"> SSCU Trench Wars
<option value="7501"> SSCE Hockey Zone
<option value="3800"> SSCX Chaos Zone SVS
<option value="21000"> SSCX Dueling/League SVS
<option value="14333"> SSCX Star Wars Realm
<option value="7400"> SSCX A Small Warzone
<option value="8625"> SSCX Alpha West SVS
<option value="5200"> SSCX Extreme Games
<option value="7500"> SSCX PowerBall
<option value="7100"> SSCX Star Warzone
<option value="4966"> SSCX Warzone CTF
<option value="25300"> SFSS Oklahoma Badlands (SSC)
<option value="25000"> SFSS Portal (SSC)
<option value="13333"> SFSS Star Wars (SSC)
<option value="25200"> SFSS SuB-iCiDe (SSC)
<option value="25100"> SFSS ZERO Annihilation (SSC)
<option value="33600"> SSCC MERC Ground Warfare
<option value="33400"> SSCC MERC Samurai
<option value="14000"> SSCC Metal Gear CTF
<option value="14444"> SSCC Star Trek DS9
<option value="33500"> SSCC Superships 2
<option value="5555"> SSCC WiTcH DooM
<option value="17000"> SSCI Dark Warzone
<option value="17100"> SSCI Hyperspace
<option value="16100"> SSCN Cosmarine Core
<option value="10100"> SSCN Crucial Warzone
<option value="10300"> SSCN Dragonball Z
<option value="10200"> SSCN Omega Fire
<option value="5401"> SSCU Trench Wars
<option value="5400"> SSCU Trench Wars
<option value="5400"> SSCU Trench Wars
<option value="16000"> T3 The Gauntlet! (SSC)
<option value="36000"> zzz Death Star Battle
</select>
<!--- End replaceable section --->
<input type="submit" value=" Go! " onClick="javascript:sub(f2)">
</form>
</td>
</tr>
<p>
<form method="post" name="f3" target="score">
<input type="hidden" name="cgi" value="search.cgi">
<tr><td class="frame" colspan="2"><center><span class="topic">Pilot / Squad Search</span></center></td>
</tr>
<tr><td>Pilot</td> <td><input type="text" name="string" maxlength="24"></td></tr>
<tr><td>Squad</td><td><input type="text" name="squad" maxlength="24"></td></tr>
<tr><td> </td><td>
<!--- Begin replaceable section, as before --->
<select name="zone">
<option value="0">All zones</option>
<option value="5900"> SSCU 17th Parallel
<option value="36000"> SSCU Death Star Battle
<option value="3700"> SSCU RedStar
<option value="5400"> SSCU Trench Wars
<option value="7501"> SSCE Hockey Zone
<option value="3800"> SSCX Chaos Zone SVS
<option value="21000"> SSCX Dueling/League SVS
<option value="14333"> SSCX Star Wars Realm
<option value="7400"> SSCX A Small Warzone
<option value="8625"> SSCX Alpha West SVS
<option value="5200"> SSCX Extreme Games
<option value="7500"> SSCX PowerBall
<option value="7100"> SSCX Star Warzone
<option value="4966"> SSCX Warzone CTF
<option value="25300"> SFSS Oklahoma Badlands (SSC)
<option value="25000"> SFSS Portal (SSC)
<option value="13333"> SFSS Star Wars (SSC)
<option value="25200"> SFSS SuB-iCiDe (SSC)
<option value="25100"> SFSS ZERO Annihilation (SSC)
<option value="33600"> SSCC MERC Ground Warfare
<option value="33400"> SSCC MERC Samurai
<option value="14000"> SSCC Metal Gear CTF
<option value="14444"> SSCC Star Trek DS9
<option value="33500"> SSCC Superships 2
<option value="5555"> SSCC WiTcH DooM
<option value="17000"> SSCI Dark Warzone
<option value="17100"> SSCI Hyperspace
<option value="16100"> SSCN Cosmarine Core
<option value="10100"> SSCN Crucial Warzone
<option value="10300"> SSCN Dragonball Z
<option value="10200"> SSCN Omega Fire
<option value="5401"> SSCU Trench Wars
<option value="5400"> SSCU Trench Wars
<option value="5400"> SSCU Trench Wars
<option value="16000"> T3 The Gauntlet! (SSC)
<option value="36000"> zzz Death Star Battle
</select>
<!--- End replaceable section, as before --->
<input type="submit" value=" Go! " onClick="javascript:sub(f3)">
</form>
</td></tr>
<!--- You can remove everything below this if you do not want stats from all SSC zones --->
<tr><td colspan="2"><center>
<form method="post" name="f4" onSubmit="javascript:sub(f4); return true">
<input type="hidden" name="cgi" value="zone.cgi">
<input type="submit" value=" Zone Statistics ">
</form>
</center>
</td></tr>
|
You will need to upload the sub.js file I've attached to this message as well, to the same directory as the HTML file you make.
Now just bung all this in an HTML file and enjoy. If you're good with HTML you can change around the table layouts, colours etc.
Just have fun playing with it
The Javascript file that makes it all happen. (Edit: Grr, phpBB wont let you attach .js files. This is now sub.txt, rename it to sub.js before uploading.
sub.txt - 0.48 KB
File downloaded or viewed 37 time(s)
|
|
Back to top |
|
 |
FemmeFatale Newbie

Age:43 Gender: Joined: Jul 07 2003 Posts: 14 Offline
|
Posted: Mon Jul 07, 2003 8:10 am Post subject: |
 |
|
|
|
Cant edit but: "With that done, you now need to generate the selector for top pilots listings."
Should be:
"With that done, you now need to generate the selectors for top pilots lists, top squad listings, etc."
Hate how you can't edit when you've posted as a guest
|
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Mon Jul 07, 2003 8:32 am Post subject: |
 |
|
|
|
heya femme
nice
|
|
Back to top |
|
 |
Pests Novice
Joined: Feb 24 2003 Posts: 84 Offline
|
Posted: Mon Jul 07, 2003 5:32 pm Post subject: |
 |
|
|
|
Nevermind this post. I was orignally going to ask how to get the direct stats onto my website, but I found out how, and im about to hack up the returned HTML to fit with my current layout. Shows top 10 pts in SSCU RedStar: http://pests.kewlair.net/stats/test.php
|
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Tue Jul 08, 2003 6:12 am Post subject: |
 |
|
|
|
whatever floats yer boat
|
|
Back to top |
|
 |
blackmoon Novice
Joined: Aug 27 2003 Posts: 70 Offline
|
Posted: Wed Nov 05, 2003 4:07 pm Post subject: |
 |
|
|
|
I know this is a little late here, since I just stumbled upon it. I don't know CGI at all. How or where could I get the CGI scripts for this? _________________ No, that was just a love tap... here's the bitch slap!
-Pimp Daddy Black
|
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Wed Nov 05, 2003 4:28 pm Post subject: |
 |
|
|
|
hrmmm, old friggin' thread
I think you can just remotely point to the cgi's edome uses
|
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Nov 05, 2003 8:55 pm Post subject: |
 |
|
|
|
Or, do it the easy way, and write your own MySQL score module for ASSS, and just use PHP to get all the values out of the DB. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me
|
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Wed Nov 05, 2003 10:09 pm Post subject: |
 |
|
|
|
Ahh... was waiting to use this image... this seems to be a good spot.
threadnecro.jpg - 29.33 KB
File downloaded or viewed 14 time(s)
|
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Nov 05, 2003 10:21 pm Post subject: |
 |
|
|
|
Omg, busted a gut on that one.
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Wed Nov 05, 2003 10:29 pm Post subject: |
 |
|
|
|
ROFL
Where'd you find that card Mine, I wanna get it!  _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
|
|
Back to top |
|
 |
Helicon Server Help Squatter
Joined: Dec 03 2002 Posts: 771 Location: GNU Doldrums Offline
|
Posted: Wed Nov 05, 2003 10:39 pm Post subject: |
 |
|
|
|
jam an unglued border on it... _________________ Signatures just seem so quaint.
|
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Wed Nov 05, 2003 11:11 pm Post subject: |
 |
|
|
|
pffft, artifacts own
|
|
Back to top |
|
 |
Splody Guest
Offline
|
Posted: Thu Nov 06, 2003 8:10 am Post subject: |
 |
|
|
|
Mmm, MtG.
|
|
Back to top |
|
 |
Dustpuppy Server Help Squatter

Age:40 Gender: Joined: Jan 23 2003 Posts: 215 Location: England Offline
|
Posted: Thu Nov 06, 2003 2:51 pm Post subject: |
 |
|
|
|
Yeah yeah, old thread. But I had to say ew about that dates list would be much easier to rip it from the edome page through the CGI.
|
|
Back to top |
|
 |
blackmoon Novice
Joined: Aug 27 2003 Posts: 70 Offline
|
Posted: Thu Nov 06, 2003 5:09 pm Post subject: |
 |
|
|
|
nice pic... lol! well..... I got my page up and working, using edome's cgi.. the problem I run into is that when I insert a new date, it says the page can't be found since for some reason I see a sub-folder for the date in the url in the cgi-bin directory. I think this means I still have to wait for them to go ahead and update their directory which is what I was hoping to avoid anyhow.
Last edited by blackmoon on Thu Nov 06, 2003 6:08 pm, edited 1 time in total |
|
Back to top |
|
 |
|