Ducati Sporting Club UK

Ducati Sporting Club UK (/msgboard.php)
-   DesmoDue - General Questions and Chat (/forumdisplay.php?f=107)
-   -   Web DD standing improved, can be tuned for your own need... (/showthread.php?t=32441)

Tonio600 21-Jun-2006 17:57

Web DD standing improved, can be tuned for your own need...
 
Just added some basic features... When dropping the 2 worse results, those are striked out in the standing. Also you can highlight your name in the standing, when making a link from your personnal website by example.

The basic standing URL is as below:
http://www.tonio82.co.uk/dd_standing/

If you want to make a direct link from your website, it may be nice to specify the season in the link, so that your visitors won't have to select it.

season 1: season 2005
season 2: season 2006, class A
season 3: season 2006, class B

So if you want a direct link to the class A standing, just use the link below:
http://www.tonio82.co.uk/dd_standing/?season_id=2

Then you may want to display the standing with the 2 worst results dropped by default, so just specify the "dropWorst" variable in the link, as below:
http://www.tonio82.co.uk/dd_standing...id=2&dropWorst

Finally, if you want your visitors to spot you very easily in the standing, you can highlight your line. Just specify the "highlight" variable giving it the value of your race number. Below is an example with Ali (DD #7) highlighted:
http://www.tonio82.co.uk/dd_standing...st&highlight=7

My 2p.

Dominic Clegg 21-Jun-2006 18:09

thats real good thank you

kye 21-Jun-2006 18:58

When it drops 2 results, I thought we got to drop our 2 worst rounds not our 2 worst results?

Tonio600 21-Jun-2006 19:04

you can drop 2 races, that's it. Whatever they're in the same round or not. You can't drop 2 rounds (potentially 4 races...). Was it your question?

kye 21-Jun-2006 19:12

Yeh sorry, I was under the impression we could drop 2 rounds, my mistake

ali 21-Jun-2006 19:30

That's brilliant Tonio, especially as you've managed to do all the work for me!:lol:

Seriously though, nice bit of coding.

Ali


All times are GMT +1. The time now is 04:11.

Powered by vBulletin 3.5.4 - Copyright © 2000 - 2025, Jelsoft Enterprises Ltd.
© Ducati Sporting Club UK