Jump to content


theeohiostate

Member Since 20 Nov 2006
Offline Last Active Private

Topics I've Started

Standings Columns User Settings Script

08 September 2020 - 09:14 AM

Created by TOS and Habman

 

If you want to allow your users to have more control , this script places a settings icon in your standings caption.

 

Each user can show or hide whichever columns in the standings tables they want to see. So a commissioner can load up as many columns as they want and allow the users to decide what they want displayed. 

 

Settings are stored in the browsers local storage for each logged in user based on the leagueID and userID

 

Demo - https://www57.myfant...andings?L=10065

 

 

Must be installed in a "Footer" marked homepage message

 

Must have a copy of font awesome installed on your site , which most of you already have is using the majority of our recent scripts.

 

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

 

 

Place if footer , and adjust the small css coloring to suit your needs

<script src="//www.nitrografixx.com/MFL-StandingsSettings/standings-settings.js?v=1.0.0"></script>

<style>
/***********************************/
/*     STANDINGS SETTINGS CSS      */
/***********************************/

/* SETTING POPUP BOX */
#standings-settings {
	box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1);
	border-radius: 3px;
	padding: 10px!important;
	background: #fff; /* use black or another color to match your sites background */
}

/* POPUP OVERLAY BACKGROUND */
.standings-settings_overlay {
	background-color: #000;
	opacity: .7
}

/* COLOR OF AN UNCHECKED CHECKBOX */
#standings-settings input+label:before {
	color: red
}

/* COLOR OF AN CHECKED CHECKBOX */
#standings-settings input:checked+label:before {
	color: green
}

/* COLOR OF LOCK DISPLAYED FOR LOCKED FRANCHISE COLUMNS */
#standings-settings #fname_checkbox:checked+label:before,
#standings-settings #fname_checkbox+label:before,
#standings-settings #ficon_checkbox:checked+label:before,
#standings-settings #ficon_checkbox+label:before,
#standings-settings #ficonname_checkbox:checked+label:before,
#standings-settings #ficonname_checkbox+label:before {
	color: red
}
</style>

Android Users

02 September 2020 - 05:39 PM

Anyone have an android phone ?

 

Can you check this page out on your mobile and see when you click to add player or remove player the button function is working.

 

http://nitrografixx.com/test.html

 

I've got some owners who use android and say the draft and drop players page , which contains the "Add to Que" and "Remove from Que" buttons do not work on their phones.


Custom Draft Tabs

31 August 2020 - 06:48 AM

Those already using the Custom Tabs - http://forums.myfant...ic=35498&page=1

 

I created Draft Tabs you can place on homepage with all draft info

 

I am reloading the content when you click each tab because MFL doesn't update these modules , so this will update the picks without reloading the page. 

 

See working on my homepage "Draft Reports" - https://www57.myfant...2020/home/10065

 

 

<!-- REPORTS TABS START -->
<div id="myfantasyleague_tabs" class="mobile-wrap">
    <table class="homepagemodule report" id="tab_draft" cellspacing="1" align="center">
    <caption><span>Draft Reports</span></caption>
    <tbody></tbody>
  </table>
  <div class="toggle_tabs">
    <table class="report">
      <tbody>
        <tr>
          <td>
            <div class="myfantasyleague_tabmenu">
              <span id="tab_title_800">800</span>
              <input id="sub800" type="checkbox">
              <label for="sub800"><span></span></label>
                <ul id="homepagetabs">
                  <li id="tab800" onclick="javascript:show_custom_tab('800');"><a class="no-sub">Draft Status<input id="sub800" type="checkbox"><label for="sub800"></label></a></li>
                  <li id="tab801" onclick="javascript:show_custom_tab('801');"><a class="no-sub">My Picks<input id="sub800" type="checkbox"><label for="sub800"></label></a></li>
                  <li id="tab802" onclick="javascript:show_custom_tab('802');"><a class="no-sub">Recent Picks<input id="sub800" type="checkbox"><label for="sub800"></label></a></li>
                  <li id="tab803" onclick="javascript:show_custom_tab('803');"><a class="no-sub">ADP<input id="sub800" type="checkbox"><label for="sub800"></label></a></li>
                  <li id="tab804" onclick="javascript:show_custom_tab('804');"><a class="no-sub">Draft List<input id="sub800" type="checkbox"><label for="sub800"></label></a></li>
                  <li id="tab805" onclick="javascript:show_custom_tab('805');"><a class="no-sub">Avg Time<input id="sub800" type="checkbox"><label for="sub800"></label></a></li>
                </ul>
            </div>
          </td>
        </tr>
      </tbody>
    </table>
    <div class="tabs_scroll">
      <div id="tabcontent800" class="homepagetabcontent">
        <module name="DRAFT_STATUS"/>
      </div>
      <div id="tabcontent801" class="homepagetabcontent">
        <module name="MY_DRAFT_PICKS"/>
      </div>
      <div id="tabcontent802" class="homepagetabcontent">
        <module name="RECENT_DRAFT_PICKS"/>
      </div>
      <div id="tabcontent803" class="homepagetabcontent" style="max-height:300px;overflow:auto">
        <module name="DRAFT_TRACKER" COUNT="250"/>
      </div>
      <div id="tabcontent804" class="homepagetabcontent">
        <module name="MY_DRAFT_LIST"/>
      </div>
      <div id="tabcontent805" class="homepagetabcontent">
        <module name="AVG_DRAFT_TIME"/>
      </div>
    </div>
  </div>
</div>

<script>
show_custom_tab(800);
jQuery("#tab800").click(function(){
	$("#tabcontent800").load(window.location.href + " #draft_status" );
});
jQuery("#tab801").click(function(){
	$("#tabcontent801").load(window.location.href + " #my_draft_picks" );
});
jQuery("#tab802").click(function(){
  jQuery("#tabcontent802").load(window.location.href + " #recent_draft_picks", function() {
    MFLPlayerPopupNewsIcon("recent_draft_picks");
  });
});
jQuery("#tab805").click(function(){
	$("#tabcontent805").load(window.location.href + " #avg_draft_time" );
});
</script>
<style>
#myfantasyleague_tabs #avg_draft_time th{text-align:left}
#myfantasyleague_tabs #avg_draft_time td{text-align:left}
#myfantasyleague_tabs #avg_draft_time td:last-of-type,
#myfantasyleague_tabs #avg_draft_time th:last-of-type{text-align:center}
#myfantasyleague_tabs #avg_draft_time .franchiseicon{max-width:150px}
</style>
<!-- REPORTS TABS END -->

 


Tutorials

10 August 2020 - 12:08 PM

I'm starting a few video tutorials for basic information.

 

Will add to these upon requests

 

Part 1

https://youtu.be/tn5rgDpkAdU

 

 

Part 2

https://youtu.be/9MnEI27xeNY


1 opening - redraft - $300 entry - league safe

05 August 2020 - 05:59 PM

14 year old league , rare opening this season

 

Redraft

 

$300 Entry

 

Leaguesite - https://www63.myfant...2020/home/43570

 

Rules - https://www63.myfant...MODULE=MESSAGE2

 

League History - https://www63.myfant...MODULE=MESSAGE6