Jump to content


Photo

MFL Live Scoring - REDUX


41 replies to this topic

#1 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,450 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 14 November 2019 - 10:07 AM

Habman and myself decided to update the MFL default live scoring page and use the existing hmtl and data it provides , while giving it a little makeover and a few updates.

 

Demo - H2H League - https://www63.myfant...ajax_ls?L=43570

Demo - All Play - http://www51.myfanta...ajax_ls?L=79291

 

 

1. Be sure to have a copy of jQuery library and font awesome in your header message. If already using other scripts created , you may already have this. But double check....

<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> 

 

 

2. Place this in your header message

<script>
//THIS NEEDS TO BE PLACED IN HEADER AND IS USED TO GO BACK IN HISTORY FOR MFL'S LIVE SCORING
if(document.getElementById("body_ajax_ls")) {
	var ls_liveScoringWeekCheck = parseInt(location.href.substr( location.href.indexOf("W2=")+3 , 2 ));
	if(ls_liveScoringWeekCheck>0&&ls_liveScoringWeekCheck<liveScoringWeek) {
		liveScoringWeek = parseInt(location.href.substr( location.href.indexOf("W2=")+3 , 2 ));
	}
}
</script>

 

 

3. Place the following in a footer message (THERE ARE 2 SCRIPTS IN THIS SECTION ONLY INSTALL THE ONE THAT DESCRIBES YOUR LEAGUE - H2H or ALL PLAY)

<script>
var ls_scoreboardName = "LEAGUE SCOREBOARD";   //enter text to name your scoreboard
var showTeamName = false;                      //set to true to display franchise names in scoreboard header
var showTeamIcon = true;                       //set to true to display franchise icons in scoreboard header
var ls_includeProjections = true;              //set to true to display projections next to player scores
var ls_includeInjuryStatus = true;             //set to true to display injury status as per the norm
var ls_excludeIR = true;                       //set to true to remove players on fantasy IR
var ls_excludeTaxi = true;                     //set to true to remove players on taxi squad
var ls_popup_abbrev_name_icon = 2;             // -1=disable; 0=abbrev; 1=name; 2=icon
var ls_orig_proj_when_final = true;            //set true to change pace to projection when games go final
var ls_popup_status = true;                    //set true to add status of player to popup
var ls_box_abbrev_name_icon = 2;               //0=abbrev; 1=name; 2=icon; 3=icon+abbrev; 4=icon+name
var ls_hide_bye_teams = false;                 //set to true to hide boxscore matchup teams on bye weeks
</script>

<!-- MFL LIVE SCORING SCRIPT H2H LEAGUES --> 
<script src="//nitrografixx.com/MFL-Scoreboard/mfl_ls_scoring.js?v=v=1.0.6"></script> 

<!-- MFL LIVE SCORING SCRIPT ALL PLAY LEAGUES --> 
<script src="//nitrografixx.com/MFL-Scoreboard/mfl_ls_scoring_allplay.js?v=1.0.6"></script>  

 

 

4. Here are links to the CSS file used to format and color it , copy and paste it in your main css file. Make color edits if needed. Find color changes in section that is labeled   "/* MFL SCORING COLOR CHANGES */"

 

H2H Dark version - css file

H2H Light version - css file

 

ALL PLAY Light version - css file

 

NOTE: Please keep js file linked to my server - there will be some minor updates soon. I will post if any css needs updated

If js file is update , i will post here. Then please increase the version number in the end of the js file url to 2,3,4,5 and so on......v=1


FREE Player Cuts Collection
https://www.nitrogra...om/player-cuts/


#2 NingDynasty

NingDynasty

    Member

  • Members
  • PipPip
  • 28 posts
  • Gender:Male

Posted 15 November 2019 - 12:13 AM

I tested this briefly tonight. When I would click on the different matchups the rosters from the original matchup would disappear as they should but the new matchup rosters would not show up in their place, I was just left with a blank screen. Perhaps it's just my odd css files, but I thought I'd let you know.



#3 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,450 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 15 November 2019 - 06:18 AM

Link to league ?

We have installed on 6 sites and no issues with old scoreboards or new live scoring page
Has to be in your end if think

FREE Player Cuts Collection
https://www.nitrogra...om/player-cuts/


#4 grooves12

grooves12

    Veteran

  • Members
  • PipPipPip
  • 64 posts

Posted 17 November 2019 - 02:21 PM

Any updates for Total Points leagues?



#5 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,450 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 17 November 2019 - 04:52 PM

Any updates for Total Points leagues?



Ok i see what MFL has done for the all play leagues , what a debacle mess

 

unreadable on mobiles , everything is overlapped

 

will take a whole new script for this , not sure when we can get to it , took about 50 hours on this last one and i'm burnt out now


FREE Player Cuts Collection
https://www.nitrogra...om/player-cuts/


#6 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,450 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 18 November 2019 - 09:53 AM

serveral js and css updates over the weekend

 

if you are using , please update the js file version to insure your site is downloading the lastest file

 

review the css documents for any changes

 

i like using this site https://www.diffchecker.com/

 

insert old css and new css to see what changes have been made


FREE Player Cuts Collection
https://www.nitrogra...om/player-cuts/


#7 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,450 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 19 November 2019 - 05:36 PM

see first post , script needed added to a header message if you are using this

 

update your version number on js file as well

 

we added a nav menu to view/import previous weeks scores


FREE Player Cuts Collection
https://www.nitrogra...om/player-cuts/


#8 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,450 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 23 November 2019 - 06:55 PM

several more updates , update your var and css


FREE Player Cuts Collection
https://www.nitrogra...om/player-cuts/


#9 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,450 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 24 November 2019 - 11:01 AM

All Play Leagues added - see first post


FREE Player Cuts Collection
https://www.nitrogra...om/player-cuts/


#10 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,450 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 26 November 2019 - 12:23 PM

add NFL boxscores , update your js file version number , and recheck CSS for changes

 

Hopefully this is the last update , will review on Thursday and Sunday games , if no issues are found , this should be it


FREE Player Cuts Collection
https://www.nitrogra...om/player-cuts/


#11 Moon

Moon

    Veteran

  • Members
  • PipPipPip
  • 72 posts
  • Gender:Male
  • Location:CT

Posted 27 November 2019 - 12:34 AM

theohiostate, the passion you have for maximizing the capabilities of the MFL site is greatly appreciated. Simplicity and clean look of your sites translates really well to modern approach to accessing apps/data - i.e. phone, tablet. Thank you for the time you donate to the community.



#12 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,450 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 27 November 2019 - 07:18 AM

theohiostate, the passion you have for maximizing the capabilities of the MFL site is greatly appreciated. Simplicity and clean look of your sites translates really well to modern approach to accessing apps/data - i.e. phone, tablet. Thank you for the time you donate to the community.

 

thanks moon , but i can not take full credit , habman has been doing a lot of work on this. I started out with doing something small and it turned out to be more then i could handle and he stepped in and made it much better.


FREE Player Cuts Collection
https://www.nitrogra...om/player-cuts/


#13 BobA

BobA

    Veteran

  • Members
  • PipPipPip
  • 790 posts
  • Gender:Male
  • Location:Houston, Texas

  • 2019 MFL: 44355

Posted 27 November 2019 - 11:15 AM

TOS...questions on behalf of the 'scripting impaired' :ph34r:

 

I have a header message with jquery and font awesome and the custom tabs script included. First of all, I have two jquery scripts, like so:

 

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
 

Should I remove one?

 

And I assume that I can just put script from point #2 below them.

 

And I should put the applicable script from point #3 into a separate message as designate it as "in footer of all league messages'?

 

Thanks much in advance and thanks for all the work you and Habman put into the community (and for answering noob questions!)


2020 League Home

 

The Ed Hughes Football League, Since 1980
2020...Our 41st Season!! 


----------
"Yes, well, everybody in Casablanca has problems. Yours may work out." -Rick Blaine


#14 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 3,450 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 27 November 2019 - 09:51 PM

TOS...questions on behalf of the 'scripting impaired' :ph34r:

 

I have a header message with jquery and font awesome and the custom tabs script included. First of all, I have two jquery scripts, like so:

 

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
 

Should I remove one?

 

And I assume that I can just put script from point #2 below them.

 

And I should put the applicable script from point #3 into a separate message as designate it as "in footer of all league messages'?

 

Thanks much in advance and thanks for all the work you and Habman put into the community (and for answering noob questions!)

 

 

you can leave your scripts as is , and just add the script for font awesome under those 2 in your header

 

yes, you need to place the rest in a message marked footer


FREE Player Cuts Collection
https://www.nitrogra...om/player-cuts/


#15 BobA

BobA

    Veteran

  • Members
  • PipPipPip
  • 790 posts
  • Gender:Male
  • Location:Houston, Texas

  • 2019 MFL: 44355

Posted 27 November 2019 - 10:18 PM

Thanks TOS!


2020 League Home

 

The Ed Hughes Football League, Since 1980
2020...Our 41st Season!! 


----------
"Yes, well, everybody in Casablanca has problems. Yours may work out." -Rick Blaine




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users