User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Greasemonkey Scripts (original thread)
Page:
 
RTS
offline
Link
 
I'm assuming you're pulling the positions from the Roster screen. The difference between a regular player and someone who owns/GMs is that instead of height and weight they see Energy and Morale bars in those table cells. Could that be the reason for the invalid data?
Last edited Jul 17, 2008 14:14:31
 
tjsexkitten82
offline
Link
 
Originally posted by sirnotappearinginthisfilm
Originally posted by thelanger

Hi, I'm frightened of going thru 95 pages and the 1st page doesn't have a script for what I'm looking for which is;

Some way to view all players in your team in some sort of list/spreadsheet with position and attributes thats sortable.

Is there such a script?


you can see a concise list here:
http://glbscripts.myfreeforum.org/about133.html


Someone please add this to page 1.
 
pabst
offline
Link
 
Originally posted by tahl
I'm assuming you're pulling the positions from the Roster screen. The difference between a regular player and someone who owns/GMs is that instead of height and weight they see Energy and Morale bars in those table cells. Could that be the reason for the invalid data?


So it's name, energy, morale, height, weight, position, etc ?

That'll definitely cause a problem if the pages are formatted differently. I should be able to fix it but I won't be able to test it. Can you upload the source code to your roster page somewhere?

Last edited Jul 17, 2008 14:34:04
 
DaRealest
offline
Link
 
Originally posted by pabst
Originally posted by tahl

I'm assuming you're pulling the positions from the Roster screen. The difference between a regular player and someone who owns/GMs is that instead of height and weight they see Energy and Morale bars in those table cells. Could that be the reason for the invalid data?


So it's name, energy, morale, height, weight, position, etc ?

That'll definitely cause a problem if the pages are formatted differently. I should be able to fix it but I won't be able to test it. Can you upload the source code to your roster page somewhere?



This is what shows up on the Roster page for Owners/GM's who have access:

Name, Energy, Morale, Pos, Level, Salary/Yr, Bonus, Contract End
 
pabst
offline
Link
 
Originally posted by DaRealest

This is what shows up on the Roster page for Owners/GM's who have access:

Name, Energy, Morale, Pos, Level, Salary/Yr, Bonus, Contract End


Just curious, when you own or GM the team, is the URL the script prints out in the error console different from the URL you use when you look at your own roster?
 
RTS
offline
Link
 
No the URL is still the same. The only difference is perhaps Cells in the table. I will post an image in 1 min.
 
RTS
offline
Link
 
GM perspective:

http://img185.imageshack.us/my.php?image=46293321oe3.jpg

Standard perspective:

http://img185.imageshack.us/my.php?image=10573457er8.jpg
 
pabst
offline
Link
 
I need a guinea pig. On the team leaders script:

line 34 says this:
var nstr = '<td class="player_name">';

change it to this:
var nstr = '<td class="player_name';

I'm guessing from the css that the class name changes from 'player_name' to 'player_name_short'. This should catch both and should make it work if it's doing what I think it is. Any brave souls out there :-P
 
RTS
offline
Link
 
Yes you are correct sir.. that did in fact do the trick.
 
DaRealest
offline
Link
 
Originally posted by pabst
I need a guinea pig. On the team leaders script:

line 34 says this:
var nstr = '<td class="player_name">';

change it to this:
var nstr = '<td class="player_name';

I'm guessing from the css that the class name changes from 'player_name' to 'player_name_short'. This should catch both and should make it work if it's doing what I think it is. Any brave souls out there :-P


I just downloaded/installed it and it works fine.

Anyway to get that to work for the League Leaders page?

http://goallineblitz.com/game/stats.pl?league_id=83&conference_id=0
 
pabst
offline
Link
 
Originally posted by DaRealest

I just downloaded/installed it and it works fine.

Anyway to get that to work for the League Leaders page?

http://goallineblitz.com/game/stats.pl?league_id=83&conference_id=0


To do it, it would cost us 16 page loads to get the rosters for everyone in the conference. If you want the whole league it would be 32 pages. So, it's a little too hard on the server for my tastes. Other than that, it's easy.
 
DaRealest
offline
Link
 
Originally posted by pabst
Originally posted by DaRealest


I just downloaded/installed it and it works fine.

Anyway to get that to work for the League Leaders page?

http://goallineblitz.com/game/stats.pl?league_id=83&conference_id=0


To do it, it would cost us 16 page loads to get the rosters for everyone in the conference. If you want the whole league it would be 32 pages. So, it's a little too hard on the server for my tastes. Other than that, it's easy.


Hmmmmmmm..anyway to make it easier on the servers?
 
pabst
offline
Link
 
Originally posted by DaRealest
Originally posted by pabst


To do it, it would cost us 16 page loads to get the rosters for everyone in the conference. If you want the whole league it would be 32 pages. So, it's a little too hard on the server for my tastes. Other than that, it's easy.


Hmmmmmmm..anyway to make it easier on the servers?


Actually, that is the easy way. The alternative is to download the profile page of everyone on the list and get the position from there. That's 180 page loads minus whatever duplicates we don't need.

Best solution is on the server side.
 
DaRealest
offline
Link
 
Originally posted by pabst
Originally posted by DaRealest

Originally posted by pabst



To do it, it would cost us 16 page loads to get the rosters for everyone in the conference. If you want the whole league it would be 32 pages. So, it's a little too hard on the server for my tastes. Other than that, it's easy.


Hmmmmmmm..anyway to make it easier on the servers?


Actually, that is the easy way. The alternative is to download the profile page of everyone on the list and get the position from there. That's 180 page loads minus whatever duplicates we don't need.

Best solution is on the server side.


Think we should try it? If you want, Pm me the script and you can I can run it a couple of times to see what happens.
 
DaRealest
offline
Link
 
And could it also be set to work on the Conference Leaders pages?

http://goallineblitz.com/game/league.pl?league_id=83&conference_id=165&playoffs=0
 
Page:
 


You are not logged in. Please log in if you want to post a reply.