Jump to content


BobA

Member Since 23 Feb 2004
Offline Last Active Yesterday, 11:17 AM

Posts I've Made

In Topic: Overview Report - MFL Scripts

20 September 2021 - 09:26 PM

Thanks TOS.

 

 

And again let me say how I appreciate all you guys do to make these scripts and enhancements work.


In Topic: Overview Report - MFL Scripts

20 September 2021 - 09:24 AM

Hi guys...the Overview populates just fine but the 'header' displays this:

 

OVERVIEW FOR WEEK#     

 

No week number is shown. Tiny detail but I figured I'd let you know. OTOH..maybe that's what is supposed to show?

 

Anyway the module is at the top of the Numbers tab on #44355


In Topic: Commissioner Abilities - MFL Scripts

14 September 2021 - 03:28 PM

Thank you both. Much appreciated.


In Topic: Commissioner Abilities - MFL Scripts

14 September 2021 - 12:02 PM

League 44355

 

TOS... The script (before I make any change) appears to be working for me. Can you clarify...

 

My current code for this script is this (in a header message).......

<script>
var SetHPMability = 3; // 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>');
jQuery('head').append('form[action="csetup"],div[id^="csetup_"] .weekly-navbar,div[id^="csetup_"] .weekly-navbar-mobile,div[id^="csetup_"] .reportnavigation{visibility:hidden}');
</script>
 

 

Should I replace that with this (changing the HPM number to 3??.......

<script>
var add_abilities_link = true; // Set to true to add ability setup link to commish menu
var SetAbilitiesHPM = 17; // Set this value to the number of the homepage message you are loading the commissioner abilities script in
jQuery('ul li.mm-forcommissioners ul').prepend('<li><a class="no-sub" href="' + baseURLDynamic + '/' + year + '/home/' + league_id + '?MODULE=MESSAGE' + SetAbilitiesHPM + '">Custom Abilities</a></li>');
</script>
 

 

And keep the following unchanged (it's in a message not marked as header or footer).

 

<h3>FOR COMMISSIONERS > CUSTOM ABILITIES</h3>
<div id="commishContainer" style="text-align:center"></div>

<script src="https://www.mflscripts.com/mfl-apps/commissioner/script.js"></script>
 


TIA


In Topic: Mini Boxscores - MFL Scripts

10 September 2021 - 04:16 PM

Solved that same issue for me, TOS. Thanks for digging into it.