Jump to content


Photo

One Click Install - MFL Scripts


177 replies to this topic

#1 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 4,173 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 26 December 2020 - 05:58 PM

Please use this thread to post all questions related to the One Click script.

See troubleshooting section at very bottom of this post before submitting a question.

 

IF YOU HAVE ALREADY INSTALLED THIS TEMPLATE PLEASE CHECK THIS THREAD (CLICK HERE) FOR ANY UPDATES


 

Access ALL of MFLScripts here.
 


 

This following script will make it effortless to :
 
1. setup your existing or new site so that the settings are adjusted so you can start adding custom scripting. (runtime for script execution is 20sec.)
 
2. reset your site to its MFL default settings. (runtime for script execution is 1min. 10sec.)
 
3. install our custom template on click of a button. (runtime for script execution is 1min. 10sec.)

 

 

 

The Script contains 4 separate functions you can execute on your site.
 
Load Template - Installing this template will delete all your current homepage messages , tab layout and any css files uploaded.
 
Adjust Settings - Some of your current league settings will be adjusted to not conflict with any custom script.
No homepage message , tabs or css will be edited.
 
Reset MFL - This option will reset your site to MFL Default. All your current Homepage Messages , Tabs Layout and CSS files will be removed
 
Remove this script - This option simply removes this script from your site if just testing to see what it looks like. All other options above will automatically remove the script when completed.

 

 

 

 

 

ONE CLICK SCRIPT INSTALLATION

 

 

BEFORE installing the script , navigate to For Commissioners>Setup>Locate the "Appearance" section of right side column > Click link called "Reports and Security Settings" > Now find the option for "Use Advanced Editor on league type-in boxes?" make sure to set this to NO , then save the page.
 
Script MUST be placed in your homepage message #1 and marked as a "Footer"  - once message is saved , go to your homepage and a popup will appear. Click on which of the 3 types of install you want to do , follow the on screen directions. If choosing to install our template , note if you league name is real long you will need to adjust its font size. See instruction in the next post under the "Header Section 4"
 
DO NOT PROCEED TO INSTALLATION IF YOU HAVE NOT DONE OR UNDERSTOOD ABOVE !!
<!------------------------------------------------------------------------------------------------------------>
<!------------------------------------------------------------------------------------------------------------>
<!-----------------------------------------------IMPORTANT !!!!----------------------------------------------->
<!------------------------------------------------------------------------------------------------------------>
<!-----------------------------BEFORE YOU INSTALL NAVIGATE TO "FOR COMMISSIONERS"----------------------------->
<!------------------------------------------------------------------------------------------------------------>
<!-----------------------------------CLICK ON REPORTS AND SECURITY SETTINGS----------------------------------->
<!------------------------------------------------------------------------------------------------------------>
<!--------------------------FIND USE ADVANCED EDITOR AND SET TO NO AND SAVE THE PAGE-------------------------->
<!------------------------------------------------------------------------------------------------------------>
<!------------------------------------------------------------------------------------------------------------>
<!------------------------------------------------------------------------------------------------------------>
<!------------------------------------------------------------------------------------------------------------>
<!------------------------------------------------------------------------------------------------------------>
<!-----------------------------------------------IMPORTANT !!!!----------------------------------------------->
<!------------------------------------------------------------------------------------------------------------>
<!------------------------------------PLACE IN HPM #1 AND MARK AS A FOOTER------------------------------------>
<!------------------------------------------------------------------------------------------------------------>
<!---------------------------GO TO YOUR LEAGUES HOMEPAGE AND READ POPUP THAT APPEARS-------------------------->
<!------------------------------------------------------------------------------------------------------------>
<!------------------------------------------------------------------------------------------------------------>

<!---------------------------------------------LOAD JQUERY LIBRARY-------------------------------------------->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

<!--------------------------------------------LOAD ONE CLICK SCRIPT------------------------------------------->
<script type="text/javascript" src="https://www.mflscripts.com/mfl-apps/global/installer.js"></script>

 

 

"Load Template" Preview

loadTemplate.jpg

 

 

 

 

"Adjust Settings" PreviewloadSettings.jpg

 

 

 

 

"MFL Reset" Preview

loadReset.jpg

 

 

 

 

"Remove this script" Preview

loadRemove.jpg

 

 

 

 

 

 

 

 

 

TROUBLESHOOTING TIPS

 

1. Recopy the code above and try again. Be sure your advanced editor is turned off.

 

2. Right click mouse on your page where script displays and click "Inspect Element" . In the browsers new popup window that displays , click on the "Console" tab. Now click on the "Errors" section. Here you will find a list of any errors that have occurred. Many errors our self explanatory and you can address yourself. If your error is showing cross site  CORS has been blocked , then you need to check every CSS, JS and IMAGE file on your site and be sure they all are using https  url and not http. Another error that appears could be "too many requests" , this happens when you refresh your site many times and MFL blocks your IP for 15 minutes for submitting too many API request. If thats the case , just wait 15-20 minutes and try again.

 

3. If the above wasn't any help , then post a question and we will do our best to help when the time allows.


All the scripts I post were created by Habman , with some small contributions from myself. The man has done an outstanding job giving the community a variety of options to enhance the site. Thank you sir !!


#2 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 4,173 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 26 December 2020 - 06:14 PM

Start Homepage Message Explanation For Custom Template Installation

 

I will go through each homepage message 1 by 1 and give you some info on how to change or edit them and what they are.

 

At the very bottom , i will explain how to change the icons by the tabs on the homepage using CSS.

 

 

 

 

------------------------------------------------------------------------------------
--------   #1 - Header   --------
------------------------------------------------------------------------------------
 
HEADER SECTION 1

 

This section deals with setting up a cookie so users can select what color scheme they want and it will save it. This needs left alone unless you decide you don't want the Skin Selector used on your site , in that case you can remove this line.

<script>
function setTheme(themeName){localStorage.setItem('theme_'+year+'_'+league_id, themeName);document.documentElement.className = themeName;}
(function(){if(localStorage.hasOwnProperty('theme_'+year+'_'+league_id)) setTheme(localStorage.getItem('theme_'+year+'_'+league_id));})();
jQuery('noscript').remove();
</script> 

 

HEADER SECTION 2

 

This section deals with setting the viewport for mobiles , you can leave this alone. It also props your browser tab to display your league name ('title', 'Weapons of DMD') , for example. You can change "Weapons of DMD" to your league name. The next 2 lines address adding a fav icon image to be displayed in the browser tab bar , you can leave this image as is or create your  own and edit the urls

<meta name="viewport" content="width=device-width, initial-scale=1">
<script>jQuery(document).prop('title', 'Weapons of DMD');</script>
<link rel="shortcut icon" href="https://www.mflscripts.com/ImageDirectory/script-images/favicon.ico" type="image/x-icon" />
<script>jQuery('head').append('<link href="https://www.mflscripts.com/ImageDirectory/script-images/favicon.ico" rel="shortcut icon" type="image/x-icon" />');
</script>

 

HEADER SECTION 3

 

This section deals with the style and html for the skin selector , the skin selector is the paint brush icon in top left of the template where you can click and select from a variety of color schemes. If you want to display only 1 color and not give yourself and your owners the ability to select their own , you can remove this entire section , along with the local storage script shown in the first line of this section. (SKIP IF LEAVING SKIN SELECTOR INSTALLED).

<style>
.ThemeSwith_overlay{content:"";background-color:#000;opacity:.7;width:100%;height:100%;position:fixed;left:0;top:0}
#myMFLSkinSelection{position:fixed;left:0;right:0;top:0;bottom:0;margin:auto;width:200px;box-shadow:0 0 1px 1px rgba(0,0,0,0.1);border-radius:3px;padding:10px!important;background:var(--mobile-wrap-bg,#fff);z-index:1;height:300px;overflow:auto}
</style>
<div class="MFLSkinSelection">
<i class="fa fa-paint-brush MFLSkinSelectionbtn" aria-hidden="true" title="Select Skin Color"></i>
<div class="ThemeSwith_overlay" style="display:none"></div>
<div id="myMFLSkinSelection" class="MFLSkinSelection-content" style="display:none">
<p style="text-align:center;font-weight:bold;color:black;text-decoration:underline;margin:0">Skin Selection</p>
<a onclick="setTheme('theme-blueonblue')" style="color:#2073D6;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Blue-Orange"></i>Blue-Blue</a>
<a onclick="setTheme('theme-blue-orange')" style="color:#080e25;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Blue-Orange"></i>Blue-Orange</a>
<a onclick="setTheme('theme-dark-blue')" style="color:#004e8c;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Dark Blue"></i>Dark Blue</a>
<a onclick="setTheme('theme-light-blue')" style="color:#0076B6;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Blue Grey"></i>Light Blue&Grey</a>
<a onclick="setTheme('theme-brown')" style="color:#61553c;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Brown"></i>Brown</a>
<a onclick="setTheme('theme-brown-gold')" style="color:#100e09;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Brown-Gold"></i>Brown-Gold</a>
<a onclick="setTheme('theme-gold')" style="color:#c18210;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Gold"></i>Gold</a>
<a onclick="setTheme('theme-green')" style="color:#00864b;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Green"></i>Green</a>
<a onclick="setTheme('theme-grey')" style="color:#888"><i class="fa fa-circle" aria-hidden="true" title="Grey"></i>Grey</a>
<a onclick="setTheme('theme-orange')" style="color:#C46210;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Orange"></i>Orange</a>
<a onclick="setTheme('theme-purple')" style="color:#592f93;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Purple"></i>Purple</a>
<a onclick="setTheme('theme-red')" style="color:#D3212D;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Red"></i>Red</a>
<a onclick="setTheme('theme-redonred')" style="color:#ce1804;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Red 2 Tone"></i>Red 2 Tone</a>
<a onclick="setTheme('theme-teal')" style="color:#028887;cursor:pointer"><i class="fa fa-circle" aria-hidden="true" title="Teal"></i>Teal</a>
<a onclick="setTheme('theme-niners nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/SFO.svg" style="width:30px;margin-right:10px;max-height:20px">49ers</a>
<a onclick="setTheme('theme-bears nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/CHI.svg" style="width:30px;margin-right:10px;max-height:20px">Bears</a>
<a onclick="setTheme('theme-bengals nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/CIN.svg" style="width:30px;margin-right:10px;max-height:20px">Bengals</a>
<a onclick="setTheme('theme-bills nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/BUF.svg" style="width:30px;margin-right:10px;max-height:20px">Bills</a>
<a onclick="setTheme('theme-broncos nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/DEN.svg" style="width:30px;margin-right:10px;max-height:20px">Broncos</a>
<a onclick="setTheme('theme-browns nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/CLE.svg" style="width:30px;margin-right:10px;max-height:20px">Browns</a>
<a onclick="setTheme('theme-bucs nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/TBB.svg" style="width:30px;margin-right:10px;max-height:20px">Bucs</a>
<a onclick="setTheme('theme-cardinals nfltheme')" style="color:#000;cursor:pointer;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/ARI.svg" style="width:30px;margin-right:10px;max-height:20px">Cardinals</a>
<a onclick="setTheme('theme-charger nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/LAC.svg" style="width:30px;margin-right:10px;max-height:20px">Chargers</a>
<a onclick="setTheme('theme-chiefs nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/KCC.svg" style="width:30px;margin-right:10px;max-height:20px">Chiefs</a>
<a onclick="setTheme('theme-colts nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/IND.svg" style="width:30px;margin-right:10px;max-height:20px">Colts</a>
<a onclick="setTheme('theme-cowboys nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/DAL.svg" style="width:30px;margin-right:10px;max-height:20px">Cowboys</a>
<a onclick="setTheme('theme-dolphins nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/MIA.svg" style="width:30px;margin-right:10px;max-height:20px">Dolphins</a>
<a onclick="setTheme('theme-eagles nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/PHI.svg" style="width:30px;margin-right:10px;max-height:20px">Eagles</a>
<a onclick="setTheme('theme-falcons nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/ATL.svg" style="width:30px;margin-right:10px;max-height:20px">Falcons</a>
<a onclick="setTheme('theme-giants nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/NYG.svg" style="width:30px;margin-right:10px;max-height:20px">Giants</a>
<a onclick="setTheme('theme-jaguars nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/JAC.svg" style="width:30px;margin-right:10px;max-height:20px">Jaguars</a>
<a onclick="setTheme('theme-jets nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/NYJ.svg" style="width:30px;margin-right:10px;max-height:20px">Jets</a>
<a onclick="setTheme('theme-lions nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/DET.svg" style="width:30px;margin-right:10px;max-height:20px">Lions</a>
<a onclick="setTheme('theme-packers nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/GBP.svg" style="width:30px;margin-right:10px;max-height:20px">Packers</a>
<a onclick="setTheme('theme-panthers nfltheme')" style="color:#000"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/CAR.svg" style="width:30px;margin-right:10px;max-height:20px">Panthers</a>
<a onclick="setTheme('theme-patriots nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/NEP.svg" style="width:30px;margin-right:10px;max-height:20px">Patriots</a>
<a onclick="setTheme('theme-raiders nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/OAK.svg" style="width:30px;margin-right:10px;max-height:20px">Raiders</a>
<a onclick="setTheme('theme-rams nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/LAR.svg" style="width:30px;margin-right:10px;max-height:20px">Rams</a>
<a onclick="setTheme('theme-ravens nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/BAL.svg" style="width:30px;margin-right:10px;max-height:20px">Ravens</a>
<a onclick="setTheme('theme-redskins nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/WAS.svg" style="width:30px;margin-right:10px;max-height:20px">Redskins</a>
<a onclick="setTheme('theme-saints nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/NOS.svg" style="width:30px;margin-right:10px;max-height:20px">Saints</a>
<a onclick="setTheme('theme-seahawks nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/SEA.svg" style="width:30px;margin-right:10px;max-height:20px">Seahawks</a>
<a onclick="setTheme('theme-steelers nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/PIT.svg" style="width:30px;margin-right:10px;max-height:20px">Steelers</a>
<a onclick="setTheme('theme-texans nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/HOU.svg" style="width:30px;margin-right:10px;max-height:20px">Texans</a>
<a onclick="setTheme('theme-titans nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/TEN.svg" style="width:30px;margin-right:10px;max-height:20px">Titans</a>
<a onclick="setTheme('theme-vikings nfltheme')" style="color:#000;cursor:pointer"><img src="https://www.mflscripts.com/ImageDirectory/script-images/nflTeamsvg_2/MIN.svg" style="width:30px;margin-right:10px;max-height:20px">Vikings</a>
</div></div>

 

 

If you decided to remove the skin selector script , local storage and html as mentioned in 2 of the sections above , you will need to define which color scheme you want to use. To do that you will need to insert this snippet in the header file in leau of the skin selector files.  (SKIP IF LEAVING SKIN SELECTOR INSTALLED)

<script>document.body.classList.add("skinname");</script>

 

In the script you just inserted , where the text shows "skinname" , you can define the color scheme you want to use , here are the available choices.  (SKIP IF LEAVING SKIN SELECTOR INSTALLED)


Dark Skin Template Installs - replace skinname with one of these choices : theme-dk-orange ,  theme-dk-red , theme-dk-blue , theme-dk-gold

 

Light Skin Template Installs - replace skinname with one of these choices : theme-light-blue,theme-redonred,theme-blue-orange,theme-brown-gold,theme-blueonblue,theme-dark-blue,theme-brown,theme-gold,theme-green,theme-grey,theme-orange,theme-purple,theme-red,theme-teal

 

I also created skins with matching NFL Icons you can select to use by themselves - replace skinname with one of these choices: theme-niners,theme-bears,theme-bengals,theme-bills,theme-broncos,theme-browns,theme-bucs,theme-cardinals,theme-charger,theme-chiefs,theme-colts,theme-cowboys,theme-dolphins,theme-eagles,theme-falcons,theme-giants,theme-jaguars,theme-jets,theme-lions,theme-packers,theme-panthers,theme-patriots,theme-raiders,theme-rams,theme-ravens,theme-redskins,theme-saints,theme-seahawks,theme-steelers,theme-texans,theme-titans,theme-vikings

 

 

HEADER SECTION 4

 

This section has the SVG images for the league logo and the icon menu bar.

 

 

League Logo and League Name Text

 

The League logo is a SVG file. Here is the HTML for the League Logo

      <div class="banner-icon">
        <a href="//%HOST%/%YEAR%/home/%LEAGUEID%" title="Go to Homepage" style="position:relative;text-decoration:none">
        <div id="logo_svg_inserticon"></div>
            <svg class="bannericon" viewBox="0 0 55.79 47.81">
              <use href="#lightSkin-logo"></use>
              <text style="display:none"></text>
            </svg>
        </a>
      </div>          <!--- Close banner-icon ---> 

 

 

 

If you want to remove the league logo and replace with your own custom image , you would delete the HTML above and in its place add the following HTML while changing out the image URL

      <div class="banner-icon">
        <a href="//%HOST%/%YEAR%/home/%LEAGUEID%" title="Go to Homepage" style="position:relative;text-decoration:none">
        <div id="logo_svg_inserticon"></div>
          <img class="bannericon" align="middle" src="https://www.mflscripts.com/ImageDirectory/characters/Boxer.png">
        </a>
      </div>          <!--- Close banner-icon --->

 

 

Below the SVG league logo you will see the HTML and CSS for the League Name Text and Slogan Text (Fantasy Football League). When you setup your site you filled out a var setting that asked for you league name , this is where that name was inserted. You can manually edit your league name and slogan here. You may find that your league name is not displaying correctly , it might be too long and getting clipped. This is a easy fix , just make the font size smaller if you have a longer league name , make the font size larger is you have a very short league name. You can play with the font size quickly and get the results you want. Look for these 2 areas below to adjust font size or manually edit league name.

<!--- ADJUST FONT SIZE OF LEAGUE NAME AND SLOGAN(FANTASY FOOTBALL LEAUGE)TEXT HERE --->
.league_name_text{font-size:30px}
.league_slogan_text{font-size:14px}
.establshed-svgtext{font-size:12px}

<!--- MANUALLY CHANGE LEAGUE NAME AND SLOGAN TEXT HERE --->
<text text-anchor="middle" x="50%" y="50%" style="font-family:'Roboto Condensed',sans-serif;text-transform:uppercase;font-weight:600"><tspan class="league_name_text" style="fill:var(--main,#080e25)">Weapons of</tspan><tspan class="league_name_text"> </tspan><tspan class="league_name_text" style="fill:var(--accent,#B82601)">DMD</tspan><tspan class="league_slogan_text" x="50%" dy="15" style="font-family:'Open Sans',sans-serif;font-style:italic;fill:#444;font-weight:300">Fantasy Football League</tspan><tspan class="establshed-svgtext" x="50%" dy="15" style="font-family:'Roboto Condensed',sans-serif;fill:#777;font-weight:300;font-style:italic">B.O.T.H 2003</tspan></text>

 

 

Menu Icon Bar

Locate this bit of HTML which creates the icon menu bar. You can add , remove , rename and change the URLs here. To add or use a different icon , refer to the SVG Page , and grab a new Icon HTML code to install or replace an existing one with. If you look at the html below for "Standings" you see this class "svg-iconlink icon-hide" , the icon-hide class hides the icon on desktop and shows it on mobile , so you can add or remove that class to any icon if you only want to show - hide for desktop and mobile.

    <div class="banner-rightside">

      <div class="bannerlinkicons">

        <div class="icon-bar">

          <!-- STANDINGS SVG -->
          <a class="svg-iconlink icon-hide" href="//%HOST%/%YEAR%/standings?L=%LEAGUEID%">
            <svg class="svg-icon icon-standings-v2" viewBox="0 0 85.3 158.94">
              <use xlink:href="#icon-standings-v2"></use>
            </svg>
            <div class="svg-text">Standings</div>
          </a>

          <!-- LINEUP SVG -->
          <a class="svg-iconlink" href="//%HOST%/%YEAR%/lineup?L=%LEAGUEID%">
            <svg class="svg-icon icon-lineup" viewBox="0 0 126.32 122.5">
              <use xlink:href="#icon-lineup-v2"></use>
            </svg>
            <div class="svg-text">Submit Lineup</div>
          </a>

          <!-- ADD DROP SVG -->
          <a class="svg-iconlink" href="//%HOST%/%YEAR%/add_drop?L=%LEAGUEID%">
            <svg class="svg-icon icon-trade" viewBox="0 0 234.61 242.39">
              <use xlink:href="#icon-trade"></use>
            </svg>
            <div class="svg-text">Add/Drop</div>
          </a>

          <!-- TRADES SVG -->
          <a class="svg-iconlink" href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=05">
            <svg class="svg-icon icon-trade" viewBox="0 0 170.37 100">
              <use xlink:href="#icon-trade-v2"></use>
            </svg>
            <div class="svg-text">Trades</div>
          </a>

          <!-- ROSTER SVG -->
          <a class="svg-iconlink" href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=07">
            <svg class="svg-icon icon-roster" viewBox="0 0 74.38 67.51">
              <use xlink:href="#icon-helmet"></use>
            </svg>
            <div class="svg-text">Rosters</div>
          </a>

          <!-- SCOREBOARD SVG -->
          <a class="svg-iconlink" href="//%HOST%/%YEAR%/ajax_ls?L=%LEAGUEID%">
            <svg class="svg-icon icon-scoreboard" viewBox="0 0 254.49 236.32">
              <use xlink:href="#icon-scoreboard-v2" />
            </svg>
            <div class="svg-text">Scoreboard</div>
          </a>

          <!-- CHAT SVG -->
          <a class="svg-iconlink icon-hide" href="//%HOST%/%YEAR%/home/%LEAGUEID%?MODULE=LEAGUE_CHAT" onclick="openChatWindow(this); return false;" target="_blank">
            <svg class="svg-icon icon-chat" viewBox="0 0 119.75 100">
              <use xlink:href="#icon-chat-v2"></use>
            </svg>
            <div class="svg-text">Chat</div>
          </a>

          <!-- CALENDAR SVG -->
          <a class="svg-iconlink" href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=123">
            <svg class="svg-icon icon-calendar" viewBox="0 0 156 172.38">
              <use xlink:href="#icon-calendar"></use>
            </svg>
            <div class="svg-text">Calendar</div>
          </a>

          <!-- HISTORY SVG -->
          <a class="svg-iconlink" href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=247&SEQNO=6">
            <svg class="svg-icon icon-history" viewBox="0 0 100 87">
              <use xlink:href="#icon-history"></use>
            </svg>
            <div class="svg-text">History</div>
          </a>

          <!-- RULES SVG -->
          <a class="svg-iconlink" href="//%HOST%/%YEAR%/home/%LEAGUEID%?MODULE=MESSAGE2">
            <svg class="svg-icon icon-rules" viewBox="0 0 135.12 194.78">
              <use xlink:href="#icon-rules"></use>
            </svg>
            <div class="svg-text">Rules</div>
          </a>

        </div>        <!--- Close icon-bar --->

      </div>          <!--- Close bannerlinkicons --->

    </div>            <!--- Close banner-rightside ---> 

 

 

 

 

 

 

HEADER SECTION 5

 

This section has all the script var settings for the template header. The script installs scripts for Mobile Menu , Enhanced Chat , Player Popup , Mini Boxscores , Marquee , Submit Lineups , Custom Tabs , IR Report and Diceroll. Here you can review all the script vars and make adjustment to fit your league. To focus on these var settings below , this is where you can decide to load and not load certain scripts. Always leave the Mobile Menu , Tabs set to true , the other scripts you can turn off if you don't want to use them.

// HEADER JS FILE OPTIONS
var load_mobileMenu_script=true;      //Set to true to load https://www.mflscripts.com/mfl-apps/mobileMenu/script.js
var load_chat_enhanced=true;          //Set to true to load https://www.mflscripts.com/mfl-apps/chat/enhanced.js
var load_popup=true;                  //Set to true to load https://www.mflscripts.com/mfl-apps/popups/players/script.js
var load_mini_boxscore=true;          //Set to true to load https://www.mflscripts.com/mfl-apps/scoreboard/mini-boxscore/script.js
var load_marquee=true;                //Set to true to load https://www.mflscripts.com/mfl-apps/marquee/script.js
var load_lineups_submit_script=true;  //Set to true to load https://www.mflscripts.com/mfl-apps/lineups/submit/script.js
var load_tabs_script=true;            //Set to true to load https://www.mflscripts.com/mfl-apps/tabs/script.js
var load_irReport_script=true;        //Set to true to load https://www.mflscripts.com/mfl-apps/injuredReserve/IRreport/script.js
var load_diceRoll_script=true;        //Set to true to load https://www.mflscripts.com/mfl-apps/diceRoll/script.js 

 

 

 

 

 

 

HEADER SECTION 6

 

Here is a copy of Header Section 6 so we can review. The first line is the HTML for the Marqee. If not using the Marquee you can remove remove or mark this html out , also you have to set the header script var load_marquee=true; to false. The second line is the HTML required with using the Mini Scoreboard. If your not wanting to use the mini boxes you can remove or mark this html out , also you have to set the header script var load_mini_boxscore=true; to false.

The next line is the header.js file - do not remove this file !!

The next line is the responsive.css file  - do not remove this file !!

Next is a css file for your league icons - this file was created for icons that are 300px wide and 50px tall. If you league isn't using icons or other sized icons , just remove this linked stylesheet.

The remaining lines in this section should not be touched, leave as is.

<!-- TICKER HTML -->
<div class="ticker-wrapper"></div>

<!-- MINI SCOREBOARD HTML -->
<div id="MFLBoxWrapper"></div> 

<script src="https://www.mflscripts.com/mfl-apps/global/header.js"></script>
<link rel="stylesheet" type="text/css" href="https://www.mflscripts.com/mfl-apps/lineups/submit/responsive.css">
<link rel="stylesheet" type="text/css" href="https://www.mflscripts.com/mfl-apps/global/css/300x50-icons.css">

<!-- ADD POPUP MESSAGE ICON TO MENU SO IT LOADS QUICKLY THEN REMOVE IT ONCE SCRIPT ADDS TO MENU -->
<script>jQuery('.myfantasyleague_menu ul,.MFLSkinSelection').css('visibility','visible');</script>
<!-- WRAP ALL CONTENT -->
<div id="container-wrap"><!--- ENTER ALL HPMS AFTER THIS AND CLOSE IN FOOTER -->

 

 

 

-----   END #1 Header   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #2 - Custom Rules   --------
------------------------------------------------------------------------------------

 

In homepage message #2 the Custom Rules html file is located. You access the Rules message by clicking on the "Rules" icon in the banner area. This is quite an undertaking when creating custom rules , so if you decide not to use the script , you can just delete this homepage message , and then go the the "#1 - Header" file and do a search for  "<!-- RULES SVG -->" , once you find that area of the Header Message , you can adjust the url to redirect the Rules icon to the default MFL Rules page. To do that....

 

Locate this link

<a class="svg-iconlink" href="//%HOST%/%YEAR%/home/%LEAGUEID%?MODULE=MESSAGE2"> 

 

 

And replace with this

<a class="svg-iconlink" href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=26"> 

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #2 Custom Rules   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #3 - Quick Links   --------
------------------------------------------------------------------------------------

 

In homepage message #3 the Quick Links html file is located. This report was created using the Custom Tabs script and generator. You can edit the html to replace any module you want included or excluded. This message in place on the home page in the "Home" tab, use the MFL Homepage Tabs setup to move it if needed. The current modules i have placed in this tab grouping are: LEAGUE CHAT , TWITTER FEED , OWNER ACTIVITY , MY OPTIONS , MY SCRATCHPAD , you can edit the message to add or remove any module you want.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #3 Quick Links   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #4 - Overview   --------
------------------------------------------------------------------------------------

 

In homepage message #4 the Overview html and script is placed. You can locate this report on the Home page "Reports" tab. Adjust the var settings if needed.This report is embedded into the HTML of the #5 - Reports Tabs. To move or remove it , you will need to edit that message.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #4 Overview   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------

--------   #5 - Reports Tabs   --------
------------------------------------------------------------------------------------

 

In homepage message #5 the Reports Tabs html file is located. This report was created using the Custom Tabs script and generator. You can edit the html to replace any module you want included or excluded. This message in place on the home page in the "Reports" tab, use the MFL Homepage Tabs setup to move it if needed. The current modules i have placed in this tab grouping are: TRANSACTIONS,MESSAGE8(NFL Schedule),POWER RANK,WEEKLY SUMMARY,NEXT WEEKS FANTASY SCHEDULE,LAST WEEKS FANTASY RESULTS,MESSAGE4(Overview Script) , you can edit the message to add or remove any module you want.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #5 Reports Tabs   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #6 - History   --------
------------------------------------------------------------------------------------

 

In homepage message #6 the History html and script is placed. You can locate this report on the by Clicking the "History" link in the banner area on icon that says "History". You can refer to support thread to setup the var settings. With the script installed , click on the "History" link and then click on the "Admin" tab and run "Install/Update League History" button , when finished , click the "Install/Update Player History" button. Once both updated refresh the page and your league history will be completed.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #6 History   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #7 - Slider   --------
------------------------------------------------------------------------------------

 

In homepage message #7 the Slider html and script is placed. The slider is not located anywhere on the site , as i do not use it , but i do include the script for those that like using them. You can edit the html in this file to place whatever images or modules you want to include in the slider and then use the MFL Tabs Setup page to add this message to your site.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #7 Slider   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #8 - NFL Schedule   --------
------------------------------------------------------------------------------------

 

In homepage message #8 the NFL Schedule html and script is placed. You can locate this report on the Home page "Reports" tab. No adjustments are needed for this message at all. This report is embedded into the HTML of the #5 - Reports Tabs. To move or remove it , you will need to edit that message.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #8 NFL Schedule   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #9 - Todays Calendar Events   --------
------------------------------------------------------------------------------------

 

In homepage message #9 the Todays Calendar Events html and script is placed. You can locate this report on the Home page "Home" tab. No adjustments are needed for this message at all. This report can be moved around to any tab or wherever you want by using the MFL Homepage Tabs Layout settings.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #9 Todays Calendar Events   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #10 - Lineup IR Alert   --------
------------------------------------------------------------------------------------

 

In homepage message #10 the Lineup Alert and IR Alert scripts are located. Due to lack of homepage messages , i combined both scripts into a single message and display them both at the same time in same area. You can locate this report on the Home page "Home" tab. Use the forum support thread for info on all the possible var settings. This report can be moved around to any tab or wherever you want by using the MFL Homepage Tabs Layout settings.

 

IR Forum Support Thread

Lineup Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #10 Lineup IR Alert   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #11 - Playoff Seedings   --------
------------------------------------------------------------------------------------

 

In homepage message #11 the Playoff Seedings html and script is placed. You can locate this report on the Home page "Playoffs" tab, or using the MFL menu Reports > League > Playoff Seedings. You will need to edit the var settings to match you league playoff settings. Use the forum support thread for info on all the possible var settings. This report can be moved around to any tab or wherever you want by using the MFL Homepage Tabs Layout settings.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #11 Playoff Seedings   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #12 - Draft Reports   --------
------------------------------------------------------------------------------------

 

In homepage message #12 the Draft Reports html file is located. This report was created using the Custom Tabs script and generator. You can edit the html to replace any module you want included or excluded. This report is not placed on the site anywhere , i only install it during our live or email drafts. To place this report on your site use the MFL homepage tabs setup and place anywhere you want. The current modules i have placed in this tab grouping are: DRAFT STATUS ,MY DRAFT PICKS ,RECENT DRAFT PICKS ,DRAFT TRACKER ,MY DRAFT LIST ,AVG DRAFT TIME , you can edit the message to add or remove any module you want.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #12 Draft Reports   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #13 - Pools   --------
------------------------------------------------------------------------------------

 

In homepage message #13 the Pools html file is located. This report was created using the Custom Tabs script and generator. You can edit the html to replace any module you want included or excluded. This message is loaded onto the homepage tabs called "Pools". This report can be moved around to any tab or wherever you want by using the MFL Homepage Tabs Layout settings.. The current modules i have placed in this tab grouping are: FANTASY CONFIDENCE POOL ,NFL SURVIVOR POOL ,NFL CONFIDENCE POOL, TOP SURVIVOR PICKS , you can edit the message to add or remove any module you want.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #13 Pools   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #14 - Top Players-FA   --------
------------------------------------------------------------------------------------

 

In homepage message #14 the Top Players-FA html file is located. This report was created using the Custom Tabs script and generator. You can edit the html to replace any module you want included or excluded. This message is loaded onto the homepage tabs called "Players" , you can edit its location by using the MFL homepage tabs setup.  This report can be moved around to any tab or wherever you want by using the MFL Homepage Tabs Layout settings. The html also has custom images for each player you can edit and change to your own. I have tabs setup for MVP , QB , RB , WR , TE , PK and DEF , so if you league uses different positions like individual defensive players you will have to edit the html to add them.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #14 Top Players-FA   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #15 - Top Add-Drop   --------
------------------------------------------------------------------------------------

 

In homepage message #15 the Top Add-Drop html file is located. This report was created using the Custom Tabs script and generator. You can edit the html to replace any module you want included or excluded.  This report can be moved around to any tab or wherever you want by using the MFL Homepage Tabs Layout settings. This message is loaded onto the homepage tabs called "Players" , you can edit its location by using the MFL homepage tabs setup. The html also has custom images for each player you can edit and change to your own.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #15 Top Add-Drop   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #16 - Dice Roll   --------
------------------------------------------------------------------------------------

 

In homepage message #16 the Dice Roll html and js files are located. There are several var settings that can be adjusted if you want. The Dice Roll script is only used by myself before the draft to determine a draft order. So if you looking for a way to access this report on the template , you will have to go the the Homepage Tabs setup and add this message to display on your site, as i only install if for a few weeks before the season starts. If your league has no need for this script , you can simply delete this message, then go to the #20 - Footer file and set the var for this script to false. var load_diceRoll_script = false;

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #16 Dice Roll   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------    #17 - EMPTY   --------
------------------------------------------------------------------------------------

 

This is an open homepage message you can use to install other scripts or html

 

 

 

-----   END #17 Empty   -----

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #18 - Commissioner Abilities   --------
------------------------------------------------------------------------------------

 

In homepage message #18 the commissioner abilities html and js file are located. If you don't want to use this script just delete this message , then go the #1 - Header message and locate the setting var add_abilities_link = true;  , and set it to false , now the link menu under Commissioners called "Custom Abilities" will be removed also.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 

 

-----   END #18 Commissioner Abilities   -----

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------
--------   #19 - IR Report   --------
------------------------------------------------------------------------------------

 

In homepage message 19 you find the script for the IR Report  , there are a few var settings you can change to align with your league settings if the ones applied are not. I have some custom css in this message as well to fit the color scheme of the template. There really isn't much in this message to do other then reviewing those few var settings. I have this message being loaded into "Home" home page tabs.  This report can be moved around to any tab or wherever you want by using the MFL Homepage Tabs Layout settings. If you don't want to use the IR Report , you can delete files in this message. Go to the homepage tabs setup and remove this message from being displayed on your page , then in footer message , set the ir report var to "false" so the script doesn't load.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

 
 
-----   END #19 IR REPORT   -----
 
 
 
 
 
 
 
 
 
------------------------------------------------------------------------------------
--------   #20 - Footer   --------
------------------------------------------------------------------------------------
 
In homepage message #20 you find the template footer file.
 
The first script you see is a small snippet to update the owner activity status. This function piggy backs on the MFL common function "updateOnlineStatus" so when you click on the "Activity" tab on the homepage the Owner Activity module will push an update for latest teams activity. This function is optional and can be removed. If you move the location of the "Owner Activity" module within the tab group, this will need adjusted "#tab202" and "#tabcontent202" are specific to the tab and location of the module.
jQuery("#tab202").click(function(){
  $("#tabcontent202").load(window.location.href + " #owner_activity", function() {
    updateOnlineStatus();
  });
});

 

 

Next , is a function that will center the playoff brackets and rename a few items for the seedings. This will need manually adjusted depending on how your playoffs are setup. This function is not necessary and you may remove it , if you don't feel like having to do any updating.

// PLAYOFF BRACKET TEXT CHANGE
jQuery('#playoff1').find('td:contains("Winner of Game #2")').text("Worst Remaining Seed").attr("style","justify-content:center");
jQuery('#playoff1').find('td:contains("Winner of Game #1")').text("Best Remaining Seed").attr("style","justify-content:center");
jQuery('#playoff1').find('td:contains("Winner of Game #3")').text("Winner").attr("style","justify-content:center");
jQuery('#playoff1').find('td:contains("Winner of Game #4")').text("Winner").attr("style","justify-content:center"); 

 

 

Moving on down in the footer file , the next list of items you see are the var settings for the Rosters Script. Set these var to the needs of your league.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

// ROSTERS OPTIONS
var tradeViewPermission = true;     // true = display trade button , false = hide trade button
var fid_commish         = "0004";   // enter 4 digit franchiseID of commissioners franchise , if commish has no franchise skip
var showNav             = false;     // true = mfl nav menu for weekly rosters and display grid , false = hide mfl nav menu
var showMFLdefaultBtn   = true;     // set to true to add button to click and show MFL default rosters page

                                    // If using contracts and/or salaries you MUST set leagueTypeNormal to false
var leagueTypeNormal    = true;     // set to true for none salary and/or contract leagues , false if using contracts or salaries

// IF LEAGUETYPENORMAL IS TRUE THEN SET THIS OTHERWISE IGNORE
var SetLeftColumnWidth  = 150;      // set width of icons/text names that toggle to display rosters - 200px should be max setting

// IF USING ICONS VERSE NAME THEN SET THIS OTHERWISE IGNORE
var SetCaptionIconWidth = 250;      // set width of icons in roster table captions

var RosterEnableMedia   = true;     // true = if your skin is using responsive design must set true , false = skin not using responsive css

 

 

 

Moving on down in the footer file , the next list of items you see are the var settings for the Live Scoring Script. Set these var to the needs of your league.

 

Forum Support Thread

refer to support thread for specific questions or information regarding this script

// LIVE SCORING OPTIONS
var ls_scoreboardName = "EMPIRE 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 = false; //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
var ls_show_win_probability = true; //set to true to show MFL H2H win probability - only used for H2H leagues and MFL setting must be set to "Yes" 

 

 

The next portion of script is the var settings for the global footer js file. Here you can decide what scripts to load or not load onto your site. I use all the scripts , but you can review the var settings and turn off anything your not wanting to use. The scripts to load are ModuleExpand , Live Scoring , Standings Settings , Popup Addon , Notifications , Rosters , History , IR Report , Dice Roll. Several of the scripts files listed here have their own homepage messages as well. Although we are loading the script in the footer , we place the HTML within its own homepage message to control where on the site we want them to be displayed. Those homepage messages have their own post here so refer to them for specific info.

Click on the script names above to refer to support thread for specific questions or information regarding the specific script

// FOOTER JS FILE OPTIONS
var load_moduleExpand_script     = true;       //Set to true to load https://www.mflscripts.com/mfl-apps/moduleExpand/script.js
var load_replace_mflScoring_h2h  = true;       //Set to true to load https://www.mflscripts.com/mfl-apps/scoreboard/replace-mflScoring/h2h.js
var load_standingSettings_script = true;       //Set to true to load https://www.mflscripts.com/mfl-apps/standingSettings/script.js
var load_popupAddon_script       = true;       //Set to true to load https://www.mflscripts.com/mfl-apps/popups/addon/script.js
var load_notification_script     = true;       //Set to true to load https://www.mflscripts.com/mfl-apps/popups/notfications/script.js
var load_rosters_script          = true;       //Set to true to load https://www.mflscripts.com/mfl-apps/rosters/script.js
var load_history_script          = true;       //Set to true to load https://www.mflscripts.com/mfl-apps/history/integrated/script.js
var load_irReport_script         = true;       //Set to true to load https://www.mflscripts.com/mfl-apps/injuredReserve/IRreport/script.js
var load_diceRoll_script         = true;       //Set to true to load https://www.mflscripts.com/mfl-apps/diceRoll/script.js

 

 
Now we move down futher to find the remainig var settings for files being loading in our global footer js file. If your not using the script you can remove the var settings or just leave them alone in the event you decide to use them at some point. The Popup Addon , Notification var settings are here. Review the settings and adjust them if needed.
// MFL POPUP ADD-ON
var enableAddonNewPM = true;
var enableAddonNewPost = true;
var enableAddonPoll = true;
var enableAddonTrade = true;

// USER NOTIFICAION SLIDE DOWN
var includeVisitorNotification = true;
var includeTradeNotification = true;
var includeIRNotification = true;

//THE BELOW VAR IS USED TO SET THE FREQUENCY OF CHECKS
var checkEverySecond_notificationVisitor = 60;            // 60 seconds or 1 minute;
//THE BELOW VARS ARE USED TO SET THE DELAY BEFORE SHOWING SAME OWNER/MESSAGE AGAIN
var sameVisitor_notification_interval = 5*60;   // 5*60  =  300 seconds or 5  minutes before showing same visitor again
var trade_notification_interval = 60*60;        // 60*60 = 3600 seconds or 60 minutes
//THE BELOW VAR IS USED TO SET THE DISPLAY TIME BEFORE HIDING
var notification_duration_seconds = 1.5;        // 2.5 seconds
</script>

<!-- REQUIRED HTML FOR MFL POPUP ADD-ON -->
<div id="message_board_check" style="display:none"><module name="MESSAGE_BOARD_SUMMARY"/></div>
<div id="poll_check" style="display:none"><module name="POLL_SUMMARY"/></div>
<div id="poll_check" style="display:none"><module name="POLL"/></div>
<div id="trade_check" style="display:none"><module name="TRADES"/></div>

 

Finally we load the footer js file and close out the wrapper for our site that was created in the Message #1 - our header file. Periodically you may want to change the version numbers on all scripts loaded. This will insure the latest copy is being loaded to your site. Or you can clear your browsers cache file or do a hard refresh. I make it a habit to change my version numbers so the rest of the leagues owners don't have to worry about it.  simply change 1.4.7 , to 1.4.8 , 1.4.9 , 1.5.0 ect ect ect .......

<!-- GLOBAL FOOTER  -->
<script src="https://www.mflscripts.com/mfl-apps/global/footer.js"></script>

</div><!--- CLOSE CONTAINER WRAP IN HEADER -->

 

 

Last we have the HTML that builds our page footer. Pretty straight forward here , you can edit the HTML , change the link and link name URLs as you wish
<footer>
  <div class="footercontainer-outer">
    <div class="footercontainer">
      <div class="container first-container">
        <div><span class="f-title-icon">Defending League Champions</span><span class="f-icon"><img alt=Cincy Slammers height=32 src="https://www.mflscripts.com/minis/empire/mini-CincySlammers.svg?v=1.0.4" title="Cincy Slammers"></span><span class="f-link"><a>2019 Cincy Slammers</a></span></div>
      </div>
      <div class="container">
        <div><span class="f-title">Management</span><span class="f-link"><a href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=02">Submit Lineup</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/add_drop?L=%LEAGUEID%">Add/Drop</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=05">Trades</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=50">Setup</a></span></div>
      </div>
      <div class="container">
        <div><span class="f-title">Franchise</span><span class="f-link"><a href="//%HOST%/%YEAR%/accounting_report?L=%LEAGUEID%">Accounting</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=03">Transactions</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/home/%LEAGUEID%?MODULE=MESSAGE17">League Rosters</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=26">By-Laws</a></span></div>
      </div>
      <div class="container">
        <div><span class="f-title">Stats</span><span class="f-link"><a href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=08">Sortable Stats</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/top?L=%LEAGUEID%&SEARCHTYPE=ADVANCED&COUNT=30&CATEGORY=freeagent&POSITION=*&DISPLAY=points&TEAM=*">Free Agents</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/fantasy_box_score?L=%LEAGUEID%">Box Scores</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/depth_chart?L=%LEAGUEID%">Depth Charts</a></span></div>
      </div>
      <div class="container">
        <div><span class="f-title">Features</span><span class="f-link"><a href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=52">Draft</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/ajax_ls?L=%LEAGUEID%">Scoreboard</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=17">Draft Results</a></span><span class="f-link"><a href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=101">Power Rank</a></span></div>
      </div>
    </div>
  </div>
</footer>

-----   END #20 FOOTER   -----

 
 
 
 
 
 
 
 
 
------------------------------------------------------------------------------------
--------   CSS NOTES   --------
------------------------------------------------------------------------------------

 

I would recommend keeping the css url linked to my server, this way you get any updates to the site , any new scripts will be styled.

If you want to make changes to the CSS , then i would suggest using <style></style> tags the #1 - Header message.

Just over ride the CSS by embedding new CSS in the Header message, just place as first line in header. That way you have easy way to manage what you have edited from the provided stylesheet linked to my server. For example....

 

If you wanted to change the icons that are being used for the Home Page tabs named Home , My Team , Reports , Players , Latest News , Playoffs , Pools , you could over ride them by placing new CSS within the "Header" message.

 

The homepage tabs have unique ID that start with li#tab0 , even though "Home" is Tab 1 , its ID starts with "0" , so "My Team" is actually li#tab1.

 

Keeping that in mind , lets say we want to rename or add a tab and call it "NEW TAB" - depending on the order "NEW TAB" is in , we count from 0,1,2,3,4 and so on.....We determine "NEW TAB" is the 4th tab , so its ID is li#tab3.

 

To make an edit for "NEW TAB" 's icon , we first go find our icon. Go to Font Awesome Icons , and search for the icon you want to use for the new tab or a tab you renamed. Find the 4 digit Unicode number for the icon.

 

Now in the header message we make the change

 

The current CSS for li#tab3 is as follows

#tabmenu-wrap li#tab3 a:before,
#tabmenu-wrap #tab_title.tab3:before {
  content: "\f0c0"
} 

 

 

In our header message , we over ride that css by adding this

<style>
#tabmenu-wrap li#tab3 a:before,
#tabmenu-wrap #tab_title.tab3:before {
  content: "\f1ea"
}
<style>

 

We changed the icon from "f0c0" to "f1ea" , so now our "NEW TAB"  displays the new icon. You can do this for all the tabs or for new tabs you add. Just use  the example above , and change the li#tab and #tab_title.tab  numbers to match the tab your wanting to change.

 

If you decide you dont want any icons displaying next to the tabs , you can simply add this to remove them all.

<style>#tabmenu-wrap li[id*="tab"] a:before{display:none}</style> 

 

 

 

If your using the Rosters script but not using team icon images , but rather using text instead , then add the following css to your site

 

Lightskin

#roster_column_left td a {
	background: red;
	border-radius: 3px;
	width: 100%;
	display: block;
	padding: 3px 5px;
	background: var(--mobile-wrap-bg, #fff);
	box-shadow: 0 0 1px 1px rgb(0 0 0 / 10%);
	color: var(--main, #080e25);
}

#roster_column_left td {
	padding-bottom: 5px
}

#roster_column_left td a:hover {
	background: var(--gradient-dark, #9c2000);
	background-image: none;
	background-image: -webkit-linear-gradient(top, var(--gradient-light, #cb2a01), var(--gradient-dark, #9c2000));
	background-image: -moz-linear-gradient(top, var(--gradient-light, #cb2a01), var(--gradient-dark, #9c2000));
	background-image: -ms-linear-gradient(top, var(--gradient-light, #cb2a01), var(--gradient-dark, #9c2000));
	background-image: -o-linear-gradient(top, var(--gradient-light, #cb2a01), var(--gradient-dark, #9c2000));
	background-image: linear-gradient(to bottom, var(--gradient-light, #cb2a01), var(--gradient-dark, #9c2000));
}

@media only screen and (max-width: 58em) {
	#roster_column_left td a {
		white-space: nowrap;
	}
	#roster_column_left td {
		padding-right: 5px
	}
}

 

Darkskin

#roster_column_left td a {
	background: red;
	border-radius: 3px;
	width: 100%;
	display: block;
	padding: 3px 5px;
	box-shadow: 0 0 5px rgb(0 0 0 / 50%);
	background: rgba(45, 45, 45, .4);
	color: #fff
}

#roster_column_left td {
	padding-bottom: 5px
}

#roster_column_left td a:hover {
	background: var(--accent, #ff4200);
	background-image: none;
	background-image: -webkit-linear-gradient(top, var(--accent-light, #FA5C25), var(--accent-dark, #B52F00));
	background-image: -moz-linear-gradient(top, var(--accent-light, #FA5C25), var(--accent-dark, #B52F00));
	background-image: -ms-linear-gradient(top, var(--accent-light, #FA5C25), var(--accent-dark, #B52F00));
	background-image: -o-linear-gradient(top, var(--accent-light, #FA5C25), var(--accent-dark, #B52F00));
	background-image: linear-gradient(to bottom, var(--accent-light, #FA5C25), var(--accent-dark, #B52F00));
}

@media only screen and (max-width: 58em) {
	#roster_column_left td a {
		white-space: nowrap;
	}
	#roster_column_left td {
		padding-right: 5px
	}
}

 

 

-----   END CSS NOTES   -----


All the scripts I post were created by Habman , with some small contributions from myself. The man has done an outstanding job giving the community a variety of options to enhance the site. Thank you sir !!


#3 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 4,173 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 31 December 2020 - 09:52 AM

TEMPLATE CHANGES

 

 

2-07-21 - Player Popup Script - new feature

 

Check out the post here to find out how to get the new feature installed on your template

http://forums.myfant...=38185&p=201100

 

 

 

 

 

2-04-21 - NEW Marquee Script

 

1. Open up #1 - Header file and find these settings

// HEADER JS FILE OPTIONS
var load_mobileMenu_script=true;      //Set to true to load https://www.mflscripts.com/mfl-apps/mobileMenu/script.js
var load_chat_enhanced=true;          //Set to true to load https://www.mflscripts.com/mfl-apps/chat/enhanced.js
var load_popup=true;                  //Set to true to load https://www.mflscripts.com/mfl-apps/popups/players/script.js
var load_mini_boxscore=true;          //Set to true to load https://www.mflscripts.com/mfl-apps/scoreboard/mini-boxscore/script.js
var load_lineups_submit_script=true;  //Set to true to load https://www.mflscripts.com/mfl-apps/lineups/submit/script.js
var load_tabs_script=true;            //Set to true to load https://www.mflscripts.com/mfl-apps/tabs/script.js
var load_irReport_script=true;        //Set to true to load https://www.mflscripts.com/mfl-apps/injuredReserve/IRreport/script.js
var load_diceRoll_script=true;        //Set to true to load https://www.mflscripts.com/mfl-apps/diceRoll/script.js

 

We are going to now add the marquee var to the above area , so you new HEADER JS FILE OPTIONS WILL LOOK LIKE THIS

// HEADER JS FILE OPTIONS
var load_mobileMenu_script=true;      //Set to true to load https://www.mflscripts.com/mfl-apps/mobileMenu/script.js
var load_chat_enhanced=true;          //Set to true to load https://www.mflscripts.com/mfl-apps/chat/enhanced.js
var load_popup=true;                  //Set to true to load https://www.mflscripts.com/mfl-apps/popups/players/script.js
var load_mini_boxscore=true;          //Set to true to load https://www.mflscripts.com/mfl-apps/scoreboard/mini-boxscore/script.js
var load_marquee=true;                //Set to true to load https://www.mflscripts.com/mfl-apps/marquee/script.js
var load_lineups_submit_script=true;  //Set to true to load https://www.mflscripts.com/mfl-apps/lineups/submit/script.js
var load_tabs_script=true;            //Set to true to load https://www.mflscripts.com/mfl-apps/tabs/script.js
var load_irReport_script=true;        //Set to true to load https://www.mflscripts.com/mfl-apps/injuredReserve/IRreport/script.js
var load_diceRoll_script=true;        //Set to true to load https://www.mflscripts.com/mfl-apps/diceRoll/script.js 

2. Now we need to add the HTML for the new Marquee , so in the same #1 - Header message search for the following

<!-- MINI SCOREBOARD HTML -->
<div id="MFLBoxWrapper"></div>

 

Now just add the Marquee HTML right above the MINI SCOREBOARD , so the new HTML now will look like this

<!-- TICKER HTML -->
<div class="ticker-wrapper"></div>

<!-- MINI SCOREBOARD HTML -->
<div id="MFLBoxWrapper"></div>

 

3. Lastly , we will add the Marquee vars to the same #1 - Header message , refer back to the first step and locate the "// HEADER JS FILE OPTIONS"

In that section we added the new var for the marquee , now we need to add all the var settings for the marquee. So find the HEADER JS FILE OPTIONS and paste the following directly under that section , but ABOVE the closing </script> tag.

// TICKER DISPLAY SETTINGS
var tickerHomePageOnly      = false;        // SET TO TRUE IF YOU HAVE TICKER AS A HEADER MESSAGE BUT ONLY WANT IT ON HOME PAGE; FALSE FOR ALL PAGES
var tickerName              = "Headlines";  // ENTER TICKER NAME
var responsiveTicker        = true;         // SET TO TRUE IF YOUR MFL THEME/SKIN IS RESPONSIVE FOR MOBILE SO THAT THE MARQUEE WILL BE ALSO
var isLeagueIDP             = false;        // SET TO TRUE IF YOU WANT TO INCLUDE IDP OPTIONS; IF FALSE THEN ALL IDP SETTINGS BELOW WILL BE IGNORED
var tickerSize              = "medium";     // ENTER TICKER SIZE "small" , "medium" or "large" 
var tickerLastPlayoffWeek   = 16;           // SET TO LAST PLAYOFF WEEK  LEAGUES
var tickerSpeedDefault      = 2;            // # - SET DEFAULT SCROLL SPEED FROM 0 (slowest) to 6 (fastest)
var tickerDelay             = 3;            // SECONDS TO DELAY BEFORE SCROLLING 1 (shortest) to 6 (longest)

// CUSTOM MESSAGES 
var tickerContent = new Array();
//ADD CUSTOM MESSAGE(S) IN THE FORMAT BELOW
//tickerContent.push( ({"header":"MESSAGE TITLE" , "message":"MESSAGE CONTENT"}) );
tickerContent.push( ({"header":"League Update" , "message":"The league will rollover to 2021 as soon as MFL makes the option available"}) );

//BOTH STANDARD AND LIVE DISPLAY (also includes custom messages above if any)
var includeFranchiseIcons      = true;   // true or false; when showing players include franchise icon if on a MFL roster REQUIRES cache.js
var includeLatestArticles      = 5;      // 0=disabled; #=The number of articles to show

//STANDARD DISPLAY SETTINGS (when NFL games have not kicked off in a given week)
var includeTopPlayerStats      = 5;      // 0=disabled; #=The number of top yardage (Pass/Rush/Rec) to show;
var includeTopPlayerStatsIDP   = false;  // true or false; only applicable when displaying top players and shows the number of top tackles/sacks for IDP;
var includeTopPlayerPts        = 5;      // 0=disabled; #=The number of ytd fantasy pts by position offense to show;
var includePowerRank           = false;  // true or false; show power rank
var includeAltPowerRank        = false;  // true or false; show alternate power rank
var includePointScoredTeam     = false;  // true or false; show franchise point scored ranking
var includeAllplayRecord       = true;   // true or false; show all play ranking
var includeLastWeekResults     = true;   // true or false; show results for fantasy matchups
var includeNextWeekMatchups    = true;   // true or false; show next weeks fantasy matchups
var includeLastWeekNflResults  = true;   // true or false; show results for nfl matchups
var includeNextWeekNflMatchups = true;   // true or false; show next weeks nfl matchups
var includeWaiverOrder         = true;   // true or false; current waiver priority
var includeDraft               = true;   // true or false; used in conjunction with below draft settings
var draftShowEntire            = false;  // true or false; show entire draft; both picks made and future pending selections
var draftTopPicksOnly          = 0;      // #=Display the top # of picks in the draft; only applicable if draftShowEntire = false;
var draftShowPicksMade         = 5;      // #=Display the last # of picks made; only applicable if draftShowEntire = false and draftTopPicksOnly = 0;
var draftShowPicksPending      = 5;      // #=Display the next # of picks pending; only applicable if draftShowEntire = false and draftTopPicksOnly = 0;

//LIVE DISPLAY SETTINGS (when NFL games have kicked off in a given week)
var includeLiveLeaders         = 5;      // 0=disabled; #=The number of live leaders (Pass/Rush/Rec), when applicable, to show;
var includeLiveLeadersIDP      = false;  // true or false; only applicable when displaying live leaders	
var includeNflMatchups         = true;   // true or false; show live NFL matchups
var includeNflMatchupLeaders   = true;   // true or false; show live NFL matchup leaders
var includeFantasyMatchups     = true;   // true or false; show live Fantasy matchups

// TICKER COLORING - DARK SKIN
// NOTES: tickerWidth - when used inside the container wrap set to "100%" , when used outside the container wrap set to "calc(1148px - 6px)"
var tickerWidth     = "calc(1148px - 6px)";            // set max width of ticker - set to 100% if you want it full width

// NOTES: tickerWidth - when used inside the container wrap set to "0 auto 10px auto" , when used outside the container wrap set to "10px auto 0 auto"
var tickerMargin    = "10px auto 0 auto";              // set ticker margin - currently set for margin top 10px , margin bottom 0px and side to side auto to center 
   
var tickerFont      = "Roboto Condensed";              // set font for ticker - default is Roboto Condensed
var tickerBorder    = "#444";                          // set border color for ticker
var bigHeadingBG    = "#1c1c1c";                       // set color of background behind text "Headlines" and the border of the ticker
var tickerTxtShdw   = "transparent";                   // set the color of the drop shadow for "Headlines" text and icons set to "transparent" to remove
var bigHeadingClr   = "var(--accent, #ff4200)";        // set color of the text for "Headlines"
var tickerHeadBG    = "#222";                          // set the bg color for the ticker header
var tickerCogWheel  = "var(--accent, #ff4200)";                        // set the color for the ticker cogwheel
var tickerHeadClr   = "#ccc";                          // set the text color for the ticker header
var tickerTxtBG     = "#111";                          // set the bg color for the ticker scrolling text
var tickerTxtClr    = "#eee";                          // set the text color for the ticker scrolling text
var tickerTxtWgt    = "300";                           // set the text weight for the ticker scrolling text
var tickerTxtTrans  = "none";                          // set the text-transform for the ticker scrolling text - change to "uppercase" to capitalize
var tickerLinkClr   = "#eee";                          // set the color for the links in scrolling text
var tickerLinkHvr   = "#fff";                          // set the color for the links on hover in scrolling text
var tickerBoxShdw   = "0 0 5px rgba(0,0,0,.5)";        // set box shadow - if you dont want shadow set to "none"
var controlsGreen   = "lime";                          // set color for the controls boxes when positive setting - current color green
var controlsRed     = "red";                           // set color for the controls boxes when negative setting - current color red

 

Finally , in the above var settings i have the //TICKER COLORING setup for the dark skin , if using the light skin , replace those var settings with the ones here below.

// TICKER COLORING - LIGHT SKIN
// NOTES: tickerWidth - when used inside the container wrap set to "100%" , when used outside the container wrap set to "calc(1148px - 6px)"
var tickerWidth     = "100%";           // set max width of ticker - set to 100% if you want it full width

// NOTES: tickerWidth - when used inside the container wrap set to "0 auto 10px auto" , when used outside the container wrap set to "10px auto 0 auto"
var tickerMargin    = "0 auto 10px auto";             // set ticker margin - currently set for margin top 10px , margin bottom 0px and side to side auto to center    

var tickerFont      = "Roboto Condensed";             // set font for ticker - default is Roboto Condensed
var tickerBorder    = "var(--accent, #B82601)";       // set border color for ticker
var bigHeadingBG    = "var(--accent, #B82601)";       // set color of background behind text "Headlines" and the border of the ticker
var bigHeadingClr   = "#fff";                         // set color of the text for "Headlines"
var tickerHeadBG    = "#fff";                         // set the bg color for the ticker header
var tickerCogWheel  = "var(--accent, #B82601)";       // set the color for the ticker cogwheel
var tickerTxtShdw   = "transparent";                  // set the color of the drop shadow for "Headlines" text and icons set to "transparent" to remove
var tickerHeadClr   = "var(--accent, #B82601)";       // set the text color for the ticker header
var tickerTxtBG     = "#eee";                         // set the bg color for the ticker scrolling text
var tickerTxtClr    = "#000";                         // set the text color for the ticker scrolling text
var tickerTxtWgt    = "300";                          // set the text weight for the ticker scrolling text
var tickerTxtTrans  = "none";                         // set the text-transform for the ticker scrolling text - change to "uppercase" to capitalize
var tickerLinkClr   = "#000";                         // set the color for the links in scrolling text
var tickerLinkHvr   = "var(--accent, #B82601)";       // set the color for the links on hover in scrolling text
var tickerBoxShdw   = "0 0 1px 1px rgba(0,0,0,0.1)";  // set box shadow - if you dont want shadow set to "none"
var controlsGreen   = "green";                        // set color for the controls boxes when positive setting - current color green
var controlsRed     = "red";                          // set color for the controls boxes when negative setting - current color red

 

 

Save the message , and that is it for the new marquee update.

 

 

 

------------------------------------------------------------------------------------
---------------
------------------------------------------------------------------------------------

 

 

 

 

 

1-21-21 - NEW Rosters Script

 

1. Remove the contents of homepage message #17 - Rosters - delete all contents and resave the message.

 

2. Go to homepage message #1 - Header and locate the following

          <!-- ROSTER SVG -->
          <a class="svg-iconlink" href="//%HOST%/%YEAR%/home/%LEAGUEID%?MODULE=MESSAGE17">
            <svg class="svg-icon icon-roster" viewBox="0 0 74.38 67.51">
              <use href="#icon-helmet"></use>
            </svg>
            <div class="svg-text">Rosters</div>
          </a>

 

 

Change the above to this

          <!-- ROSTER SVG -->
          <a class="svg-iconlink" href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=07">
            <svg class="svg-icon icon-roster" viewBox="0 0 74.38 67.51">
              <use href="#icon-helmet"></use>
            </svg>
            <div class="svg-text">Rosters</div>
          </a>

 

Next locate this and delete it.

var SetHPMroster = 17; // Set HPM# of roster-trade script

 

Now save the message.....

 

3. Next open up #20 - Footer and find this

<a href="//%HOST%/%YEAR%/home/%LEAGUEID%?MODULE=MESSAGE17">League Rosters</a>

change the above to this

<a href="//%HOST%/%YEAR%/options?L=%LEAGUEID%&O=07">League Rosters</a>

 

Find the section below....

// PLAYOFF BRACKET TEXT CHANGE
$('#playoff1').find('td:contains("Winner of Game #2")').text("Worst Remaining Seed").attr("style","justify-content:center");
$('#playoff1').find('td:contains("Winner of Game #1")').text("Best Remaining Seed").attr("style","justify-content:center");
$('#playoff1').find('td:contains("Winner of Game #3")').text("Winner").attr("style","justify-content:center");
$('#playoff1').find('td:contains("Winner of Game #4")').text("Winner").attr("style","justify-content:center");

 

 

Copy the var setting below and paste them directly under the section referred to above. Set the var to however you want.

// ROSTERS OPTIONS
var tradeViewPermission = true;     // true = display trade button , false = hide trade button
var fid_commish         = "0004";   // enter 4 digit franchiseID of commissioners franchise , if commish has no franchise skip
var showNav             = false;     // true = mfl nav menu for weekly rosters and display grid , false = hide mfl nav menu
var showMFLdefaultBtn   = true;     // set to true to add button to click and show MFL default rosters page

                                    // If using contracts and/or salaries you MUST set leagueTypeNormal to false
var leagueTypeNormal    = true;     // set to true for none salary and/or contract leagues , false if using contracts or salaries

// IF LEAGUETYPENORMAL IS TRUE THEN SET THIS OTHERWISE IGNORE
var SetLeftColumnWidth  = 150;      // set width of icons/text names that toggle to display rosters - 200px should be max setting

// IF USING ICONS VERSE NAME THEN SET THIS OTHERWISE IGNORE
var SetCaptionIconWidth = 250;      // set width of icons in roster table captions

var RosterEnableMedia   = true;     // true = if your skin is using responsive design must set true , false = skin not using responsive css   // true = if your skin is using responsive design must set true , false = skin not using responsive css

 

Save the message , and that is it for the new rosters update.


All the scripts I post were created by Habman , with some small contributions from myself. The man has done an outstanding job giving the community a variety of options to enhance the site. Thank you sir !!


#4 Creelmank

Creelmank

    Veteran

  • Members
  • PipPipPip
  • 37 posts
  • Gender:Male

Posted 01 January 2021 - 09:16 AM

Happy New Year!

 

Amazing work TOS!  You & Hab are such  a blessing for the MFL Community!



#5 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 4,173 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 02 January 2021 - 12:48 PM

script updated , removed all var settings , now within the popup each time you select something , the details are on the page to guide you through the setup process. Note the question "?" when setting up template while entering in league name , year established and league slogan , hover over them for details.

 

At some point we will be making a backup and restore script , so you can backup your site - all homepage messages and css files , have them stored on our server with a timestamp for last backup you made , then click a button and restore your league to that latest backup


All the scripts I post were created by Habman , with some small contributions from myself. The man has done an outstanding job giving the community a variety of options to enhance the site. Thank you sir !!


#6 UCanCallMeMitch

UCanCallMeMitch

    Veteran

  • Members
  • PipPipPip
  • 3,829 posts
  • Gender:Male
  • Location:Colorado

  • 2021 MFL: 74144

Posted 02 January 2021 - 02:43 PM

At some point we will be making a backup and restore script , so you can backup your site - all homepage messages and css files , have them stored on our server with a timestamp for last backup you made , then click a button and restore your league to that latest backup

 

If you aren't getting paid by MFL  for all that you and habman do, you should.   :D  :P


ldsportslogoindex_32x32.png  LuckyDog Sports 
" Fantasy Fun For Football Fanatics "


#7 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 4,173 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 02 January 2021 - 02:47 PM

MFL has little interest in the customization we do. We are less then 1% of their users , they are great about working with us on requests but again the user percentage is so small they are not willing to go as far as we'd like but that is understandable considering the top line of their business isn't reliant on a few fantasy sites geeks making tweaks.


All the scripts I post were created by Habman , with some small contributions from myself. The man has done an outstanding job giving the community a variety of options to enhance the site. Thank you sir !!


#8 mjsa1967

mjsa1967

    Member

  • Members
  • PipPip
  • 15 posts

Posted 04 January 2021 - 11:02 AM

This is amazing!  I'm going through everything and was wondering how I could scale the mini-boxscore icons.  I used the css script in the head so the scoreboards would look the same, but then added a custom css that scaled the icon size depending on how many teams plays (I hide the teams on bye).  

 

How could this be integrated into the template without messing anything up?  I would like to keep the link to your CSS.

 

/* MINI-SCOREBOARD */
    #MFLBoxWrapper {margin-top:4px;margin-bottom:-6px!important}
    #MFLBoxWrapper { max-width: 1148px; margin: 10px auto!important}
        #MFLBoxContainer .MFLLiveTeam img{min-height:45px;max-height:45px;height:45px;}
        #MFLBoxContainer {height:1px;position:relative;min-height:115px!important;}


#9 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 4,173 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 04 January 2021 - 11:05 AM

Got a link ?
I will look at it in a few hours when I get in
But the reason we added the display of bye teams is so the boxscores fill the width otherwise with only a few teams you cant really stretch the that wide

All the scripts I post were created by Habman , with some small contributions from myself. The man has done an outstanding job giving the community a variety of options to enhance the site. Thank you sir !!


#10 mjsa1967

mjsa1967

    Member

  • Members
  • PipPip
  • 15 posts

Posted 04 January 2021 - 12:04 PM

Yeah, I thought so with the bye week teams.  I was playing with the var statements to see how it would look with bye weeks and without.  Without definitely could use the scaleable icons, but in mobile they would be bigger than needed. Trying to figure out a good balance if possible.

 

2020 after the one-click install - https://www56.myfant...20/home/35962#0

 

A different 2020 site with the custom css (no live scoreboard mod) - https://www65.myfant...20/home/22493#0



#11 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 4,173 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 04 January 2021 - 01:02 PM

ok i added some css to the script so the matchups wouldn't stretch out , still looks better leaving bye week matchups displayed , but this is about the only alternative if displaying only a few matchups

 

you will need to update the version# on your global header js file , or do a few hard refreshes to see the change


All the scripts I post were created by Habman , with some small contributions from myself. The man has done an outstanding job giving the community a variety of options to enhance the site. Thank you sir !!


#12 mjsa1967

mjsa1967

    Member

  • Members
  • PipPip
  • 15 posts

Posted 04 January 2021 - 01:33 PM

Thanks!

 

ok i added some css to the script so the matchups wouldn't stretch out , still looks better leaving bye week matchups displayed , but this is about the only alternative if displaying only a few matchups

 

you will need to update the version# on your global header js file , or do a few hard refreshes to see the change



#13 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 4,173 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 04 January 2021 - 01:51 PM

Thanks!

 

ok i added some css to the script so the matchups wouldn't stretch out , still looks better leaving bye week matchups displayed , but this is about the only alternative if displaying only a few matchups

 

you will need to update the version# on your global header js file , or do a few hard refreshes to see the change

 

 

Here is css for your history tab you created

#tabmenu-wrap li#tab7 a:before, #tabmenu-wrap #tab_title.tab7:before {
    content: "\f1da";
}

 

Though i would not recommend placing that history script inside the homepage tabs.......

 

you need to do historical linking for your franchises and rerun the history updates for season 2020 only so the icons for those teams appear


All the scripts I post were created by Habman , with some small contributions from myself. The man has done an outstanding job giving the community a variety of options to enhance the site. Thank you sir !!


#14 grooves12

grooves12

    Veteran

  • Members
  • PipPipPip
  • 99 posts

Posted 04 January 2021 - 05:36 PM

TOS,

 

Are you having problems with hosting? A number of scripts weren't working. I just tried the one-click install script and it just sits spinning on the "do not leave page" screen.



#15 theeohiostate

theeohiostate

    Veteran

  • Members
  • PipPipPip
  • 4,173 posts
  • Gender:Male
  • Location:O-H-I-O

Posted 04 January 2021 - 05:56 PM

no issues , all my sites and server are up

 

i just enabled CDN for my domain which took a few minutes to propagate , but that is done already

 

is your IP in North America ?  As i have banned all IP outside North America due to so many brute force attacks


All the scripts I post were created by Habman , with some small contributions from myself. The man has done an outstanding job giving the community a variety of options to enhance the site. Thank you sir !!




Reply to this topic



  


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users