Archive for glbscripts.myfreeforum.org Forum dedicated to Greasemonkey Scripts made for Goal Line Blitz online game.
 



       glbscripts.myfreeforum.org Forum Index -> Original Scripts
ddcunderground

Homepage ReWrite

Ok I did something similar to pabst's replay rewrite (it is nowhere near as fancy), but this is more or less a consolidation of scripts with a restructuring of the players box. I just need soemone who still has a player with SP on their player to perform the final test. Please respond if you are interested. By tomorrow I will have a player I own be able to test but grrrr that means wasting 1 more day. so respond if you are interested and I will PM you with the link.
mw54finest

I have some players with SP.  PM me at GLB if you still need a tester. Smile
blazzinken

Also have some players will SP

GLB: Blazzinken
ddcunderground

ok here is what I have
http://userscripts.org/scripts/show/32745

what this has done is incorporated the player links script, the cash to homepage script, the training to homepage, the next game spread the no blue box script, the contract expiration script and added some other items.

The blue box is by default still shown and the contract expiration is not shown. to change these options set the showcontract variable to 1 to show the contract expiration and turnoffblue to 1 to turn off the blue boxes for guys with SPs available.

There are also some changes to the sizing of the windows and some fonts based on length of information. the next game font will change to a smaller size if it cannot fit on one line. This has its limitations so that if a teams name is incredibly long it will still carry over. This is due to the fact that if i lower the font size any smaller it is hard to read.  Also if you turn on the contract expiration it will shrink the player avatar in order to create space.

I realize it is a bit busy so if you guys have any thoughts or suggestions let me know.

Here are 2 photos to show what I am talking about.



This image shows with no contract. The top player show even a ridiculously long team name will still wrap and shift everything down.
The middle player shows a team name that was shrunk to keep it all on one line, the bottom player shows without those variables.




This image show what it is like with the contract expiration on for those 3
players.


Again I would love as much feedback and suggestions as you guys can give.
StazNasty

Any way to change game date to something like "Day 32" to cut down on room, and remove the spread? The way the 48:00:00 makes everything drop down bugs me. Also, I vote no contract expiration date.
ddcunderground

the contract expiration is an option you can turn on and off I am going to try to do the same with the spread and some other stuff.
auron341

The script missed 4 of my players when I installed it. Bug? or my page?

http://i86.photobucket.com/albums/k97/auron341/show.jpg

Also the numbers for the overall did not show on some of my players.

http://i86.photobucket.com/albums/k97/auron341/show2.jpg

Help would be nice.
ddcunderground

ok it skipping was caused by not having a next game. I have updated the script to account for that.  The gotcha with the update is the only place I can get the Team overall is the matchup page so if you don't have a "Next Game:" scheduled then it will remove the "Team Overall:" option. But on the positive note this resolves the skipping.

As far as the second issue: I have not been able to track down why it is not writing the player number over the player overall bar. But I have noticed that since the update I haven't had the issue. So give it a go and let me know.

To install the update use the original link above and it will install the updated script.
JOSH2OTTER

are you going to add a player sorter to this script?  I love the rewrite
ddcunderground

I will look into that. Good idea actually.
auron341

Hate to be a bother (again), but another problem has risen.

http://i86.photobucket.com/albums/k97/auron341/show-1.jpg

The "Team Overall" didn't show up for one of my players, probably because the "Next Game" is unknown.

Am I correct?
auron341

Also is there a way to make it so the money values do not show?
ddcunderground

The issue with the team overall is due to the next game. The money values is something I am working on.
ddcunderground

updated to allow to turn off cash
ddcunderground

Updated to add sorting of players

Two known issues :
1. Sorting can not be done until all players' rewrite has been completed.
2. Does not save sort option between visits

I am working on these issues.
McMichael

Any chance you can add something like this to resize the Players Boxes?

Link to Pabst's Resize Player Boxes script
http://userscripts.org/scripts/show/32599
ddcunderground

Updated to now sort does save in between sessions
ddcunderground

McMichael wrote:
Any chance you can add something like this to resize the Players Boxes?

Link to Pabst's Resize Player Boxes script
http://userscripts.org/scripts/show/32599


Now Updated to include.
McMichael

Thank you
ddcunderground

updated to account for changes to player page. There is now no training on the homepage.
McMichael

What happened to contract expiration info? Did that change also?
ddcunderground

i turned the info off go into the script and change var showcontract = 0 to var showcontract = 1 and it will turn back on
CTGuyton

my bottom 2 players have no changes to them.

also the top right doesn't have the number value on his "player overall" bar.

can I turn off the sort player since I wont be using it or should I just learn to ignore it.

and finally can we add "training" to the player links



Click to see full size image
ddcunderground

CTGuyton wrote:
my bottom 2 players have no changes to them.

also the top right doesn't have the number value on his "player overall" bar.

can I turn off the sort player since I wont be using it or should I just learn to ignore it.

and finally can we add "training" to the player links



Click to see full size image


ok I was waiting for this. You are my first person to have special characters in their players name ( +, etc) I can add the training link to the players links and will be on that tomorrow ( I have had a bit too much to drink, to do it tonight!!!!!) I will also add a setting for the sort to be on or off and will start to look into special characters and see if I can fix that.
CTGuyton

i appreciate it.  also, Gatorade before you sleep. it helps prevent hangovers
The Wolf

Great job so far ddcunderground. Smile  With all the changes they have been making you have been right on top of it.

Now that my ass kissing is out of the way, I have something for you to look  into lol.

I have a player that doesn't show the number value in his overall bar.  He is the 15th player on my list by creation and it doesn't matter how I organize the players he is the one that is always blank.


EDIT

I created a 16th player to see if the numbers would be there but they weren't and neither was the overall bar.
ddcunderground

The Wolf wrote:
Great job so far ddcunderground. Smile  With all the changes they have been making you have been right on top of it.

Now that my ass kissing is out of the way, I have something for you to look  into lol.

I have a player that doesn't show the number value in his overall bar.  He is the 15th player on my list by creation and it doesn't matter how I organize the players he is the one that is always blank.


EDIT

I created a 16th player to see if the numbers would be there but they weren't and neither was the overall bar.


Can you include a screen shot for me
ddcunderground

ok so here is what I got I found an issue between player pages for Centers and everyone else. The centers player bar uses % and not px. So I made the update to account for that which should fix your stat # not showing up on his overall.

I have also added a variable where you can turn of the sort the variable is showsort. So to turn it off open the script edit it and find the line var showsort=1    change it to var showsort=0 and the sorting feature will be turned off.

I also have added the training link to the player links. unfortunately I had to shrink font size to fit it in one line.

Finally CTGuyton I am trying to figure out what your issue is and I believe it to be that the team name has special characters in it. I have no way of testing this and no team names of my players have special characters.  

So the only way I can test this is to either get a player signed to a team with special characters in the team name or be able to login to your account. I imagine that the second one isn't really an option. (Even though I would promise to be a good boy and not do anything harmful) So if you know any team owners with a team they can send me an offer for bare mins and I will be able to test. and then they can cut me in the day or 2 and I will resign with a d league team
CTGuyton

PM sent
The Wolf

ddcunderground wrote:
The Wolf wrote:
Great job so far ddcunderground. Smile  With all the changes they have been making you have been right on top of it.

Now that my ass kissing is out of the way, I have something for you to look  into lol.

I have a player that doesn't show the number value in his overall bar.  He is the 15th player on my list by creation and it doesn't matter how I organize the players he is the one that is always blank.


EDIT

I created a 16th player to see if the numbers would be there but they weren't and neither was the overall bar.


Can you include a screen shot for me



Here is the screen shot of what is now updated with your last fix.  Seems like both my C and NT have defaulted back to the game settings.




I like the new additions you have made and the font is fine (for me at least).

Appreciate all the work and time you are taking in this. Smile
reficuul

i have the exact same problem.  both center and dt for me and they were the last guys that i created!
The Wolf

Picked up another error that may explain my DT's lack of info.  

I resorted my players to be listed by XP in ascending order. My DT comes back as undefined and in the last column on the right when he should be in the top spot on the right. The word undefined is in simple text and starts in the upper right hand corner.  

Also my C is out of order as he should be listed in spot number one but is listed as last.  I assume that is because he lacks the info so he isn't included in that sort.


I checked some more sorting and my DT and C are always in the same spot and the DT is still undefined in all of them.
ddcunderground

I have updated the script the problem was that the team had no previous game and that was throwing the script for a loop download the new copy and let me know.
CTGuyton

works good for me. thanks a lot!
The Wolf

downloaded, installed and working like a charm, thanks again. Smile
ddcunderground

no problem fellas let me know if you guys have any more problems or any suggestions.
The Wolf

damn dude you are going to hate me soon. lol

My C and DT are both on the same team but the script has their very first game ever listed as a previous game instead of the next opponent.  The team is correct it is just in the wrong spot.
ddcunderground

(removed)
ddcunderground

latest updates

Updated for training link

Updated for training points next to training link

Updated to account for next game if no last game

Added training as follows : if percent trained is equal for all stats will display highest skill and value, if stat has highest % trained then will display skill % trained and value.


Click to see full size image
The Wolf

Sure can, here yea go

ddcunderground

should be fixed in my last post
ddcunderground

Updated script to now include "Gametime countdown" Script
Also fixed bug with sorting by next game


GameTime Countdown is enabled by default to disable change to line below to
var dogametimecountdown = 0

//variable to control whether gametime countdown is active
var dogametimecountdown = 1
ddcunderground

Any suggestions or problems let me know I think I have worked out the majority of the bugs.
ddcunderground

updated to account for new training item on homepage.
The Wolf

Having a problem with the "show score" feature. I can click on it and the score and players stats for the game pop up but only for a second or two then goes back the watch/view score text.
MeauxJeaux

Great script, thanks a lot.
auron341

any way to make it so training does not show?
packers0491

im havin a problem with the show score as well, except when I click the show score things it goes goes blank in that spot for a little, then comes back. The show score is also in the wrong spot
mikeyw77

Is there another script that can cause this script not to work.  It worked awhile back, but not sure what other scripts I installed.  The team one works but not the players.

http://i127.photobucket.com/albums/p124/mikeywat512/image002.jpg
ddcunderground

Mikeyw77 you have sort script installed also that would be effecting the script.

Also packers can you put a screen shot up for me if the prob still exists
Serenity

Nice script. Smile
But too cumbersome for a lot of players on the homepage
Is there a way to turn off a few of the options?
ddcunderground

alright i have updated it now to where you can turn off team overall and team spread info this cuts the load time roughly in half. I have 31 players and with it turned off it takes approx 7 secs to do all the players and sort and resize etc. with it turned on it takes about 27 secs.

the line to change to turn it off is

//variable to control whether to show team overall and team spread info.
var showteaminfo = 1;

change it to
//variable to control whether to show team overall and team spread info.
var showteaminfo = 0;

you have to download the script again to update it.
McMichael

Is there a way to reorder the operations performed? Currently sorting of players occurs after it determines who has skill points to spend so that the background of the wrong player is recolored. This isnt really a huge problem as I know to look through my players to find the one that I need to spend skill points on but just a small pain. I had been running a separate sort so that the players were sorted before the rewrite did anything and that worked fine, just once I reduced the scripts that werent needed, this started happening. Thanks for the scripts.
ddcunderground

I am looking into adding skill points as a sort option. this should resolve your issue. I will then look into moving the blue box around as well.
ddcunderground

updated script to allow for new sorts of skill points and training points also added blue boxes following sorts
cretin

Ok i went in and set the game time countdown to = 1, but the countdown is not happening in my player boxes.
No idea why.
ddcunderground

i don't use the gametime so i had forgotten to check it after this last update i will check it
cretin

thanks....

i just noticed the countdown is working... in 10 second ticks
I also noticed this is when the score / show game seems to reset for people... it's not the clock ticking its the whole window refreshing.
The Wolf

My home page rewrite has stopped working, any on else having troubles?

All my other scrpits are still up and running except this one.  I have cleared my cache and all of that but its still a no go.


Any ideas if it is just me?
Kirghiz

The Wolf wrote:
My home page rewrite has stopped working, any on else having troubles?

All my other scrpits are still up and running except this one.  I have cleared my cache and all of that but its still a no go.


Any ideas if it is just me?


It doesn't seem to be compatible with the newest version of Firefox. I have two computers, one just installed Firefox about 20 minutes ago and it doesn't work on that one. It is still working on my other computer though.
JOSH2OTTER

The Wolf wrote:
My home page rewrite has stopped working, any on else having troubles?

All my other scrpits are still up and running except this one.  I have cleared my cache and all of that but its still a no go.


Any ideas if it is just me?


That just started happening for me too...
ddcunderground

I updated it now To account for not having a next game. should work now just reinstall and you should be good let me know if still a no go
The Wolf

Excellent job once again. Smile

Not sure when or how I ended up updating Firefox, I know I didnt do it, maybe auto update is on or one of my kids did it.  Anyways Thanks as always.
The Wolf

I figured out how Firefox updated, it was set to automatic.

Now how did I find this out?  Well the script stop working just now and I think FF updated again knocking out the homepage rewrite again.


EDIT//  Everything is working fine now. Not sure why it stopped the other day.
Cohen Domination

I got the updated script, but now it is showing my scrimmages under the next game category, and under last it just says n.
ddcunderground

i am having issues if the have no next game and no training points working on it
Cohen Domination

Sounds good man, just post it here once you get it done, and I'll download it.
blamand

Is it possible to remove some of the players links?

All of my players play on teams that i GM, and i have the "GLB Team links" installed, so i dont need such links as "Depth" and "Leaders".
blamand

I cant get blue boxes on my players.

Setting is "var turnoffblue = 0;" wich should turn on the blue boxes, am i not correct?
The Wolf

I have noticed something.

When I have 0 training points hat player has no "next game" listed.

Anyone else getting this?
Iaznab

Yeah - the blue box thing has not been working for me for a while.  Well, to be more exact.  Sometimes it works, and sometimes it doesn't.  Not sure what is different.
bamaplaya1

can you edit it to include the bonus tokens script? as is its pushing my bonus tokens down so that you cant see em
The Wolf

I just created 2 new guys and now the blue boxes are not working. They were working right before I created them so I am thinking if you have FAs they do not go blue if you have SPs.  Do you guys have FAs on your home page?
russdwright

New problem

Just noticed this after the most recent game. Last shows "n", while Next shows the score of the last game I was in.

Image follows

The Wolf

It seems ddcunderground has, well gone underground. lol  He hasn't posted since the 4th.  I hope he comes back soon this script is by far my favorite one.
ddcunderground

alright well I am back and hopefully will have to time take a look at this come tomorrow sorry for being gone for a while fellas

going to try to get this sorted out.
The Wolf

Nice to see yea back. Did someone give you a nudge? Wink

Just curious if Bort or DD have contacted you about getting this script or at least some of it as part of the main interface for home pages.
ddcunderground

nope haven't heard anything from bort wouldn't mind seeing them taking the info and making it part of the regular home page though and I think i have sorted out the whole 0 training points issue. I have updated the script take a look and let me know what else is messing up
The Wolf

Cool, I have a player with zero training points, will install and brb.


EDIT//  Another fine job Sir. Smile
Cohen Domination

If you notice in the bottom left of this screen: http://i36.tinypic.com/2rcpjeh.jpg

My only problem now is that the energy is like mixed into the rest of the player, any easy way to fix this dd?
The Wolf

Cohen Domination wrote:
If you notice in the bottom left of this screen: http://i36.tinypic.com/2rcpjeh.jpg

My only problem now is that the energy is like mixed into the rest of the player, any easy way to fix this dd?


I think that maybe due to the contract dates which are now missing.
ddcunderground

this is because Jim Browns name is so long it carries over to the 2nd line
ddcunderground

you can replace this line

playercontentstr = playercontentstr + '<div class="player_level"><span style="font-weight:normal; font-size:12px; color:black; text-align: right"><font align="right"><b>Energy: ' + playerenergy[1].substring(0, (playerenergy[1].indexOf('</div>') + 12))+ '</b></font></span></div>';

with this line

playercontentstr = playercontentstr + '<div class="player_level"><span style="font-weight:normal; font-size:12px; color:black; text-align: right"><font align="right"><br><br><b>Energy: ' + playerenergy[1].substring(0, (playerenergy[1].indexOf('</div>') + 12))+ '</b></font></span></div>';
blamand

Installed the new script.
The blue boxes works with the "Show sort" on, but not without "Show sort".  Is that only me that has that problem?
Cohen Domination

ddcunderground wrote:
you can replace this line

playercontentstr = playercontentstr + '<div class="player_level"><span style="font-weight:normal; font-size:12px; color:black; text-align: right"><font align="right"><b>Energy: ' + playerenergy[1].substring(0, (playerenergy[1].indexOf('</div>') + 12))+ '</b></font></span></div>';

with this line

playercontentstr = playercontentstr + '<div class="player_level"><span style="font-weight:normal; font-size:12px; color:black; text-align: right"><font align="right"><br><br><b>Energy: ' + playerenergy[1].substring(0, (playerenergy[1].indexOf('</div>') + 12))+ '</b></font></span></div>';


Worked like a charm, now everytime you update it will I have to re-do this?
Cohen Domination

And could you make it so that the next game countdown goes into a timer like that one script that is available? And maybe the contract expiration if possible also.
ddcunderground

blamand wrote:
Installed the new script.
The blue boxes works with the "Show sort" on, but not without "Show sort".  Is that only me that has that problem?


fixed
ddcunderground

Cohen Domination wrote:
ddcunderground wrote:
you can replace this line

playercontentstr = playercontentstr + '<div class="player_level"><span style="font-weight:normal; font-size:12px; color:black; text-align: right"><font align="right"><b>Energy: ' + playerenergy[1].substring(0, (playerenergy[1].indexOf('</div>') + 12))+ '</b></font></span></div>';

with this line

playercontentstr = playercontentstr + '<div class="player_level"><span style="font-weight:normal; font-size:12px; color:black; text-align: right"><font align="right"><br><br><b>Energy: ' + playerenergy[1].substring(0, (playerenergy[1].indexOf('</div>') + 12))+ '</b></font></span></div>';


Worked like a charm, now everytime you update it will I have to re-do this?


should be fixed now
ddcunderground

Cohen Domination wrote:
And could you make it so that the next game countdown goes into a timer like that one script that is available? And maybe the contract expiration if possible also.


can you give me more detail on exactly what you are looking for
blamand

ddcunderground wrote:
blamand wrote:
Installed the new script.
The blue boxes works with the "Show sort" on, but not without "Show sort".  Is that only me that has that problem?


fixed


It works.
Thanks a million Smile
Cohen Domination

ddcunderground wrote:
Cohen Domination wrote:
And could you make it so that the next game countdown goes into a timer like that one script that is available? And maybe the contract expiration if possible also.


can you give me more detail on exactly what you are looking for


I just want it on the place where it says next game, to count down the time like a timer, just not stay at one time. there is a script for this though, and it may be in this one as well, I don't know. And that fix you gave me earlier, could you put that in the script so that I don't have to re-do it every time I install the script.
ddcunderground

for the countdown change

var dogametimecountdown = 0;

to

var dogametimecountdown = 1;

and try downloading the script again I have included your change for jim brown
russdwright

Slight bug ...

Just installed the updated script. I have a team I GM and have the countdown timer on. With this configuration, the countdown timer only runs in the box for the team where I am a GM. The player countdown timers do not change.

Can't really post an image of this to illustrate the bug, but I hope you understand what I mean.
ddcunderground

i will take a look at it
russdwright

ddcunderground wrote:
i will take a look at it

THANKS!
cretin

the countdown timers in your player boxes do work if you have it set on... it just only updates every 10 seconds.
Personally if you can make it as a constant countdown ddc i think we would like it more.
However the way your timer works right now, which is basically every 10 seconds it refreshes the windows, i don't think it would make sense to refresh every 1 second. Plus since it refreshes, it closes the score link and shows the Watch/Show Score text again.
ddcunderground

updated to resolve weird issue with last game next game info
Falanor

Something I've noticed and wondered if you could fix.  You have given the player boxes a fixed height (or so it seems from my limited understanding of scripts) so I was wondering if you could fix the Energy, Player Overall, Team Overall bars to have them all generate on the bottom line so they line up and don't happen to appear in slightly different areas?
ddcunderground

Falanor wrote:
Something I've noticed and wondered if you could fix.  You have given the player boxes a fixed height (or so it seems from my limited understanding of scripts) so I was wondering if you could fix the Energy, Player Overall, Team Overall bars to have them all generate on the bottom line so they line up and don't happen to appear in slightly different areas?


unfortunately I am setting a table but the cells all have different heights so I tried to align them as best as possible but I can't quite get them to all level out perfectly. Sorry
Catullus 16

ddcunderground wrote:
unfortunately I am setting a table but the cells all have different heights so I tried to align them as best as possible but I can't quite get them to all level out perfectly. Sorry


i was wondering about this, too...

i don't exactly know what i'm talking about here, but is there a reason why they can't also be in rows?

       glbscripts.myfreeforum.org Forum Index -> Original Scripts Page 1, 2  Next
Page 1 of 2
Create your own free forum | Buy a domain to use with your forum