| View previous topic :: View next topic |
| Author |
Message |
ddcunderground Developer

Joined: 25 Jun 2008 Posts: 205
|
Posted: Tue Jul 01, 2008 8:52 pm Post subject: Cash to Homepage II modfied to now include Training Value |
|
|
Alright so I tried to do this and SNAITF bailed me out and fixed everything I screwed up. So this is actually SNAITF's work but I didn't see it get posted so I figured i would post it. This mod adds the current value of whatever you are training to the homepage.
screen shot included
Click to see full size image
here is the script.
http://userscripts.org/scripts/show/29461
|
|
| Back to top |
|
 |
m1k3
Joined: 27 Jun 2008 Posts: 32
|
Posted: Tue Jul 01, 2008 10:16 pm Post subject: |
|
|
cool, now make it be able to change from relax, normal, intense and what your training an it will be sick !! |
|
| Back to top |
|
 |
SyedAshrafulla
Joined: 23 Jun 2008 Posts: 12 Location: Palms, CA
|
Posted: Thu Jul 17, 2008 11:33 am Post subject: |
|
|
| what's the script that gets the other stuff on that image (equipment/SP/tactics, depth/leaders) |
|
| Back to top |
|
 |
serialced
Joined: 22 Jul 2008 Posts: 4
|
Posted: Tue Jul 22, 2008 2:28 am Post subject: |
|
|
is it possible that the training value only works for the first player you created/1 player?
here is what I mean:
 |
|
| Back to top |
|
 |
pabst Developer
Joined: 23 Jun 2008 Posts: 235
|
Posted: Tue Jul 22, 2008 3:47 am Post subject: |
|
|
| From a quick look at the code, I'm pretty sure it's just getting confused due to not having a Next Game entry in the player box. It should start working again once the season starts. |
|
| Back to top |
|
 |
pabst Developer
Joined: 23 Jun 2008 Posts: 235
|
Posted: Tue Jul 22, 2008 3:50 am Post subject: |
|
|
| SyedAshrafulla wrote: | | what's the script that gets the other stuff on that image (equipment/SP/tactics, depth/leaders) |
That's the player links script.
http://www.fantasymvp.net/glbplayerlinks.user.js |
|
| Back to top |
|
 |
serialced
Joined: 22 Jul 2008 Posts: 4
|
Posted: Tue Jul 22, 2008 3:59 am Post subject: |
|
|
| pabst wrote: | | From a quick look at the code, I'm pretty sure it's just getting confused due to not having a Next Game entry in the player box. It should start working again once the season starts. |
but wouldnt it just not work at all instead of showing it for just 1 player?
i dunno for sure but i hope you're right and it seems like a valid explanation, i just find it weird that it still works for 1 player though |
|
| Back to top |
|
 |
pabst Developer
Joined: 23 Jun 2008 Posts: 235
|
Posted: Tue Jul 22, 2008 4:12 am Post subject: |
|
|
| serialced wrote: | | pabst wrote: | | From a quick look at the code, I'm pretty sure it's just getting confused due to not having a Next Game entry in the player box. It should start working again once the season starts. |
but wouldnt it just not work at all instead of showing it for just 1 player?
i dunno for sure but i hope you're right and it seems like a valid explanation, i just find it weird that it still works for 1 player though |
The script finds the training links by basically counting the rows in all the player boxes. The first next game link appears after the first training row, which means the first player isn't affected at all. However, the second player's training row (and every row thereafter) is now mathematically closer to the first row which is why they're broken. The math doesn't work anymore. |
|
| Back to top |
|
 |
serialced
Joined: 22 Jul 2008 Posts: 4
|
Posted: Tue Jul 22, 2008 4:28 am Post subject: |
|
|
| pabst wrote: | | serialced wrote: | | pabst wrote: | | From a quick look at the code, I'm pretty sure it's just getting confused due to not having a Next Game entry in the player box. It should start working again once the season starts. |
but wouldnt it just not work at all instead of showing it for just 1 player?
i dunno for sure but i hope you're right and it seems like a valid explanation, i just find it weird that it still works for 1 player though |
The script finds the training links by basically counting the rows in all the player boxes. The first next game link appears after the first training row, which means the first player isn't affected at all. However, the second player's training row (and every row thereafter) is now mathematically closer to the first row which is why they're broken. The math doesn't work anymore. |
oh nice to know, thanks a lot for the info! |
|
| Back to top |
|
 |
ddcunderground Developer

Joined: 25 Jun 2008 Posts: 205
|
Posted: Tue Jul 22, 2008 7:41 am Post subject: |
|
|
exactly Pabst is right I am thinking of changing the way it works so it doesn't assume the location
|
|
| Back to top |
|
 |
|