Jump to content


theeohiostate

Member Since 20 Nov 2006
Offline Last Active Private

Topics I've Started

Module expand/collapse script

01 March 2020 - 10:42 AM

The thread for this script has been archived so i can not reply to it.
 
If you are using this script , please move the module js file to a footer message , it will no longer work when placed in a header message
 
 
http://forums.myfant...showtopic=35560
 
 
 

<!-- MODULE EXPAND AND COLLAPSE SCRIPT -->
<script src="//www.nitrografixx.com/MFL-ModuleExpand/module_expand.js?v=1.0.1"></script> 

Commissioners Ability script updated

15 February 2020 - 07:21 PM

Habman has Updated this to work for 2020

 

Reference thread - http://forums.myfant...showtopic=35603

 

 

PLACE THE FOLLOWING IN A HEADER MESSAGE - BE SURE TO SET VAR FOR "SetHPMability" for where you install the script file commissioner.js
<script>

var SetHPMability = 18; // Set HPM# of where you you installed commissioner abilities script

jQuery('.myfantasyleague_ menuMobile ul li:contains("For Commissioners") a:contains("Setup")').parent().before('<li><a class="no-sub" href="' + baseURLDynamic + '/' + year + '/home/' + league_id + '?MODULE=MESSAGE' + SetHPMability + '">Custom Abilities</a></li>');
jQuery('.myfantasyleague_menu ul li:contains("For Commissioners") a:contains("Setup")').parent().before('<li><a class="no-sub" href="' + baseURLDynamic + '/' + year + '/home/' + league_id + '?MODULE=MESSAGE' + SetHPMability + '">Custom Abilities</a></li>');
</script> 

 

 
 
PLACE THE FOLLOWING IN A HOMEPAGE MESSAGE
<h3>FOR COMMISSIONERS > CUSTOM ABILITIES</h3>
<div id="commishContainer" style="text-align:center"></div>


<script src="//www.nitrografixx.com/MFL-Abilities/commissioner.js"></script> 

 


Report Issues

04 February 2020 - 02:51 PM

Might as well get this thread going

 

with MFL updates looming , might have some scripts break , so regardless of the script , make a post here if you happen to notice anything no working properly and we will take a look and get it fixed.


MFL Live Scoring - REDUX

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


CSS for mobile Transactions page , module and previously processed waiver

25 October 2019 - 10:37 AM

Following CSS will make the Transaction page/module , Draft Picks Page and Previously Processed Waivers pages all mobile friendly.

Those page are pretty jacked up and cramped on mobile , so this will make things much more fluid to read.

 

Demo - view on mobile

waivers -  https://www63.myfant...ns?L=43570&O=03

draft results - https://www63.myfant...ns?L=43570&O=17

 

 

last segment of css has optional coloring for some bg and border , you may or may not want / need to use the coloring . All other css should pretty well conform to your site , provided you dont have any existing css that is overriding what i have.

 

@media (max-width:650px){
/*  NO NEED TO EDIT - format css for transactions module , transactions page and previous processed waivers page  */
 #body_options_03 table.report .rank,#transactions .rank,#body_options_17 table.report .rank+.rank
   {display:none!important}
 #body_options_03 table.report table, #body_options_03 table.report tbody, #body_options_03 table.report th, #body_options_03 table.report td, #body_options_03 table.report tr,
 #transactions table, #transactions tbody, #transactions th, #transactions td, #transactions tr,#body_processed_waivers table.report table, #body_processed_waivers table.report tbody, 
 #body_processed_waivers table.report th, #body_processed_waivers table.report td, #body_processed_waivers table.report tr,
 #body_options_17 table.report table, #body_options_17 table.report tbody, #body_options_17 table.report th, #body_options_17 table.report td, #body_options_17 table.report tr,
 #body_options_133 table.report table, #body_options_133 table.report tbody, #body_options_133 table.report th, #body_options_133 table.report td, #body_options_133 table.report tr
   {display:block}
 #body_options_03 table.report th,#transactions th,#body_processed_waivers table.report th,#body_options_17 table.report th
   {position:absolute;top:-9999px;left:-9999px}
 #body_options_03 table.report td,#transactions td,#body_processed_waivers table.report td,#body_options_17 table.report td
   {position:relative;text-align:left!important}
 #body_options_03 table.report td:before,#transactions td:before,#body_processed_waivers table.report td:before,#body_options_17 table.report td:before
   {position:absolute;left:6px;padding-right:5px;white-space:nowrap}
 #body_processed_waivers table.report td:nth-of-type(6)
   {display:block;min-height:36px}
 #body_options_03 table.report td,#transactions td,#body_processed_waivers table.report td,#body_options_17 table.report td
   {padding-left:110px!important;padding:5px 0;width:100%!important}
 #body_processed_waivers table.report td
   {padding-left:150px!important}
 #body_options_17 table.report td textarea
   {width:100%}

 /*  Set heights to scroll on mobiles  */
 #body_options_17 div.mobile-wrap,#body_processed_waivers div.mobile-wrap,#body_options_03 div.mobile-wrap
   {max-height:350px}

 /*  NO NEED TO EDIT - name for each td on transactions page and module  */
 #body_options_03 table.report td:nth-of-type(2):before,#transactions td:nth-of-type(2):before
   {content: "Franchise"}
 #body_options_03 table.report td:nth-of-type(3):before,#transactions td:nth-of-type(3):before
   {content:"Type"}
 #body_options_03 table.report td:nth-of-type(4):before,#transactions td:nth-of-type(4):before
   {content:"Transaction"}
 #body_options_03 table.report td:nth-of-type(5):before,#transactions td:nth-of-type(5):before
   {content:"Date"}

 /*  NO NEED TO EDIT - name for each td on previous processed waivers page  */
 #body_processed_waivers table.report td:nth-of-type(1):before
   {content: "Round/Group"}
 #body_processed_waivers table.report td:nth-of-type(2):before
   {content: "Franchise"}
 #body_processed_waivers table.report td:nth-of-type(3):before
   {content: "Player(s) Added"}
 #body_processed_waivers table.report td:nth-of-type(4):before
   {content:"Player(s)"}
 #body_processed_waivers table.report td:nth-of-type(5):before
   {content:"Original Request"}
 #body_processed_waivers table.report td:nth-of-type(6):before
   {content:"Reason Not Granted"}

 /*  NO NEED TO EDIT - name for each td on draft results page and module  */
 #body_options_17 table.report td:nth-of-type(1):before
   {content: "Pick"}
 #body_options_17 table.report td:nth-of-type(3):before
   {content:"Franchise"}
 #body_options_17 table.report td:nth-of-type(4):before
   {content:"Selection"}
 #body_options_17 table.report td:nth-of-type(5):before
   {content:"Date/Time"}
 #body_options_17 table.report td:nth-of-type(6):before
   {content:"Points"}
 #body_options_17 table.report td:nth-of-type(7):before
   {content:"Comments"}

 /*  NO NEED TO EDIT - name for each td on draft results page and module  */
 #body_options_17 div.mobile-wrap:last-of-type table.report td:nth-of-type(1):before
   {content: "Franchise"}
 #body_options_17 div.mobile-wrap:last-of-type table.report td:nth-of-type(2):before
   {content:"Total Wait Time"}
 #body_options_17 div.mobile-wrap:last-of-type table.report td:nth-of-type(3):before
   {content:"Avg. Wait Time"}
 #body_options_17 div.mobile-wrap:last-of-type table.report td:nth-of-type(4):before
   {content:"# Of Picks"}

 /*  OPTIONAL CSS FOR COLOR - EDIT HERE - MAY NOT NEED THESE AT ALL AND CAN DELETE  */
 #body_options_03 table.report tr:nth-child(even),#transactions tr:nth-child(even),#body_processed_waivers table.report tr:nth-child(even),#body_options_17 table.report tr:nth-child(even),#body_options_133 table.report tr:nth-child(even),#trade_bait tr:nth-child(even)
   {background: rgba(0, 0, 0, .2)!important}
 #body_options_03 table.report tr,#transactions tr,#body_processed_waivers table.report tr,#body_options_17 table.report tr
   {border-bottom:8px solid #151515}
 #body_options_03 table.report td,#transactions td,#body_processed_waivers table.report td,#body_options_17 table.report td
   {border-bottom:1px solid #111}
}