The online racing simulator
Airioscript (Website Statistics)
(3 posts, started )
Airioscript (Website Statistics)
Hi,
I have a fully working PHP website stats page which updates every 15 minutes for members to see there progress. If you go to the image link I put below, you can see I have a menu on the left, this is what you need to look at.

Now I would like to completely remove the "Order by" menu select box BUT still have it still load a single setting of my choice. E.g. you will manually edit code to only show "Best Times" on this "beta.html" page

So in other words everytime a user goes to that page they will ONLY fill in username, car and track select boxes and press submit, but It will only pick up "Best Times" for whatever they select. (This is format in which beta.php submits URL to bottom frame: "http://www.lfs.fsserver.us/stats/web.php?selectcar=&selecttrack=&orderby=times&usern=")

See Image Example


Website Stat Page URL
http://www.lfs.fsserver.us/stats/beta.html

I guess I'm looking for someone who knows a little about php, I have attached the beta.php menu file which needs editing. If you think you can help and need additional access to website then just PM me.


Once again thanks to "michele0676" for actually creating the script back in 2009, the orginal thread can be found here: http://www.lfsforum.net/showthread.php?t=56503


All help is really appriciated,
Thank you,

Ray
FSP_Ray
http://www.lfs.fsserver.us
Attached files
SCRIPT.zip - 1.1 KB - 162 views
Replace

<font face="Verdana" size="2"><i>order by</i></font><br>
<select name="orderby" size="2" style="width:160px; height:100px;">
<option value="times" selected="selected">Best Times</option>
<option value="laps">Laps</option>
<option value="champspt">Champs Pts Car/Track</option>
<option value="champsptt">Champs Pts Total</option>
<option value="dpoints">Driving Points</option>
<option value="ppoints">Playing Points</option>
<option value="pointsc">Points Car/Track</option>
<option value="pointsct">Sum Car/Track P.</option>
<option value="tpoints">Sum Drvng/Plyng P.</option>
<option value="username">UserName</option>
</select>
<br>

With;

<input type="hidden" name="orderby" value="times">

This has nothing to do with PHP, its HTML. The actual PHP code is inside page.php , it seems. The actual database query could be changed there in something really hardcoded instead of this post form workaround.

Disclaimer: I am not interested in any form of private messaging and as such will not respond to that.
Wow, I can't thank you enough that's just what I was after, works perfectly.

Merry Christmas!

Ray

Airioscript (Website Statistics)
(3 posts, started )
FGED GREDG RDFGDR GSFDG