Jump to content


Photo

MFL History


101 replies to this topic

#91 GMD2047

GMD2047

    Veteran

  • Members
  • PipPipPip
  • 31 posts

Posted 05 August 2017 - 04:12 AM

Hey, I'm interested in implementing this in my league.

Could somebody help me, please?

Not sure what to use exactly.



#92 theeohiostate

theeohiostate

    Veteran

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

Posted 05 August 2017 - 05:53 AM

add this to a HPM and link to it to display it

Change the 3 digit history ID to match the one provided from MFL History

<script src="//www.nitrografixx.com/MFL-History/history.js"></script>


<script>
 var mflHistoryId = 470;  // CHANGE 3 DIGIT HISTORY ID TO MATCH YOUR MFL HISTORY URL
</script>



<!--  HISTORY TABS HTML -->
<div id="mflhistory">
    <div id="admin"></div>

    <div id="myfantasyleague_tabs" class="mobile-wrap">
        <table class="homepagemodule report" id="tab_mflHistory" cellspacing="1" align="center">
            <caption><span>MFL History</span>
            </caption>
            <tbody></tbody>
        </table>
        <div class="toggle_tabs">
            <table class="report">
                <tbody>
                    <tr>
                        <td>
                            <div class="myfantasyleague_tabmenu">
                                <span id="tab_title_2000">2000</span>
                                <input id="sub2000" type="checkbox">
                                <label for="sub2000"><span></span>
                                </label>
                                <ul id="homepagetabs">
                                    <li id="tab2000" onclick="javascript:show_custom_tab('2000');"><a class="no-sub">Single Game<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2001" onclick="javascript:show_custom_tab('2001');"><a class="no-sub">Single Season<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2002" onclick="javascript:show_custom_tab('2002');"><a class="no-sub">Career<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2003" onclick="javascript:show_custom_tab('2003');"><a class="no-sub">PostSeason<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2004" onclick="javascript:show_custom_tab('2004');"><a class="no-sub">Milestones<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2005" onclick="javascript:show_custom_tab('2005');"><a class="no-sub">Players<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2006" onclick="javascript:show_custom_tab('2006');"><a class="no-sub">Standings<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2007" onclick="javascript:show_custom_tab('2007');"><a class="no-sub">Team Pages<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2008" onclick="javascript:show_custom_tab('2008');"><a class="no-sub">Game Center<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="tabs_scroll">
                <div id="tabcontent2000" class="homepagetabcontent">
                    <div id="mfl-singlegame"></div>
                </div>
                <div id="tabcontent2001" class="homepagetabcontent">
                    <div id="mfl-singleseason"></div>
                </div>
                <div id="tabcontent2002" class="homepagetabcontent">
                    <div id="mfl-career"></div>
                </div>
                <div id="tabcontent2003" class="homepagetabcontent">
                    <div id="mfl-postseason"></div>
                </div>
                <div id="tabcontent2004" class="homepagetabcontent">
                    <div id="mfl-milestones"></div>
                </div>
                <div id="tabcontent2005" class="homepagetabcontent">
                    <div id="mfl-players"></div>
                </div>
                <div id="tabcontent2006" class="homepagetabcontent">
                    <div id="mfl-standings"></div>
                </div>
                <div id="tabcontent2007" class="homepagetabcontent">
                    <div id="mfl-teampages"></div>
                </div>
                <div id="tabcontent2008" class="homepagetabcontent">
                    <div id="mfl-gamecenter"></div>
                </div>
            </div>
        </div>
    </div>
    <script>
        show_custom_tab(2000);
    </script>
</div>

 

 

 

add this css and style to match your site

/***************************************/
/*            MFL HISTORY              */
/***************************************/
#mflhistory .toggle_tabs .mobile-wrap {box-shadow:none;}
.standingstable .headerrow th{background:rgba(45,45,45,.7);color:#fff;font-size:22px;text-transform:uppercase;border-bottom:3px solid #1f1f1f}
#mflhistory td.gamedetailcell:first-of-type{color:#da3636}
#mflhistory .gamecentertable td.gamescore{color:#da3636}
#mflhistory .homepagemodule.prevmatchups caption{background:rgba(0,0,0,.5);color:#ccc}
#mflhistory .winnermark{color:#da3636}

 


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


#93 GMD2047

GMD2047

    Veteran

  • Members
  • PipPipPip
  • 31 posts

Posted 15 August 2017 - 10:28 PM

Thanks. My only problem now is that I'm not locating the history ID.

 

Can you point me in the right direction, please?

I tried Report>Rules>History and pretty much every other place that said history and I don't see a 3 digit code.

 

Thanks



#94 lurkmaster

lurkmaster

    Veteran

  • Members
  • PipPipPip
  • 106 posts
  • Gender:Male

Posted 16 August 2017 - 05:16 AM

Thanks. My only problem now is that I'm not locating the history ID.

 

Can you point me in the right direction, please?

I tried Report>Rules>History and pretty much every other place that said history and I don't see a 3 digit code.

 

Thanks

 

Do you have an account at MFLHistory.com?  It's basically an add-on to myfantasyleague



#95 StevenB14

StevenB14

    Veteran

  • Members
  • PipPipPip
  • 37 posts
  • Gender:Male

Posted 18 August 2017 - 09:02 AM

TOS - Is the css required? I changed over my previous code to the one above and that combined with the custom tab script works perfectly. Don't see anything different when I add in the css.

#96 Moon

Moon

    Veteran

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

Posted 16 August 2019 - 01:18 PM

add this to a HPM and link to it to display it

Change the 3 digit history ID to match the one provided from MFL History

<script src="//www.nitrografixx.com/MFL-History/history.js"></script>


<script>
 var mflHistoryId = 470;  // CHANGE 3 DIGIT HISTORY ID TO MATCH YOUR MFL HISTORY URL
</script>



<!--  HISTORY TABS HTML -->
<div id="mflhistory">
    <div id="admin"></div>

    <div id="myfantasyleague_tabs" class="mobile-wrap">
        <table class="homepagemodule report" id="tab_mflHistory" cellspacing="1" align="center">
            <caption><span>MFL History</span>
            </caption>
            <tbody></tbody>
        </table>
        <div class="toggle_tabs">
            <table class="report">
                <tbody>
                    <tr>
                        <td>
                            <div class="myfantasyleague_tabmenu">
                                <span id="tab_title_2000">2000</span>
                                <input id="sub2000" type="checkbox">
                                <label for="sub2000"><span></span>
                                </label>
                                <ul id="homepagetabs">
                                    <li id="tab2000" onclick="javascript:show_custom_tab('2000');"><a class="no-sub">Single Game<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2001" onclick="javascript:show_custom_tab('2001');"><a class="no-sub">Single Season<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2002" onclick="javascript:show_custom_tab('2002');"><a class="no-sub">Career<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2003" onclick="javascript:show_custom_tab('2003');"><a class="no-sub">PostSeason<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2004" onclick="javascript:show_custom_tab('2004');"><a class="no-sub">Milestones<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2005" onclick="javascript:show_custom_tab('2005');"><a class="no-sub">Players<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2006" onclick="javascript:show_custom_tab('2006');"><a class="no-sub">Standings<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2007" onclick="javascript:show_custom_tab('2007');"><a class="no-sub">Team Pages<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                    <li id="tab2008" onclick="javascript:show_custom_tab('2008');"><a class="no-sub">Game Center<input id="sub2000" type="checkbox"><label for="sub2000"></label></a>
                                    </li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="tabs_scroll">
                <div id="tabcontent2000" class="homepagetabcontent">
                    <div id="mfl-singlegame"></div>
                </div>
                <div id="tabcontent2001" class="homepagetabcontent">
                    <div id="mfl-singleseason"></div>
                </div>
                <div id="tabcontent2002" class="homepagetabcontent">
                    <div id="mfl-career"></div>
                </div>
                <div id="tabcontent2003" class="homepagetabcontent">
                    <div id="mfl-postseason"></div>
                </div>
                <div id="tabcontent2004" class="homepagetabcontent">
                    <div id="mfl-milestones"></div>
                </div>
                <div id="tabcontent2005" class="homepagetabcontent">
                    <div id="mfl-players"></div>
                </div>
                <div id="tabcontent2006" class="homepagetabcontent">
                    <div id="mfl-standings"></div>
                </div>
                <div id="tabcontent2007" class="homepagetabcontent">
                    <div id="mfl-teampages"></div>
                </div>
                <div id="tabcontent2008" class="homepagetabcontent">
                    <div id="mfl-gamecenter"></div>
                </div>
            </div>
        </div>
    </div>
    <script>
        show_custom_tab(2000);
    </script>
</div>

 

 

 

add this css and style to match your site

/***************************************/
/*            MFL HISTORY              */
/***************************************/
#mflhistory .toggle_tabs .mobile-wrap {box-shadow:none;}
.standingstable .headerrow th{background:rgba(45,45,45,.7);color:#fff;font-size:22px;text-transform:uppercase;border-bottom:3px solid #1f1f1f}
#mflhistory td.gamedetailcell:first-of-type{color:#da3636}
#mflhistory .gamecentertable td.gamescore{color:#da3636}
#mflhistory .homepagemodule.prevmatchups caption{background:rgba(0,0,0,.5);color:#ccc}
#mflhistory .winnermark{color:#da3636}

 

We have this script in a HPM and it works as prescribed.

 

We just defined a few custom reports with the Record Designer function in MFL History and put them in a tab named "Other Records". Three simple queries to show top 30 franchise points in a game by position (WR and RB - starters only), and most franchise points in a season by position (all - starters) and a corresponding PPG calculation. It shows up in a pulldown menu below the standard tabs as "Select Tab: Other Records" and "Go" to run the report page. Works perfectly and I verified the results as being accurate.

 

The same selection option comes over to our MFL site as a sub menu selection under the Team Records tab, BUT when you make a selection it says "Requested URL not found on this server". Is there something I can add/change to the HPM message to get this to show up on our MFL site? Do I need to add a tab 2009 and tabcontent2009 and mfl-otherrecords to those similar listings above, or is there more to this?

 

If anyone has done this I'd appreciate some insight. Thanks.



#97 theeohiostate

theeohiostate

    Veteran

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

Posted 16 August 2019 - 02:34 PM

Link to league ?
I will check it out

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


#98 Moon

Moon

    Veteran

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

Posted 16 August 2019 - 04:09 PM

Thank TOS



#99 theeohiostate

theeohiostate

    Veteran

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

Posted 17 August 2019 - 08:16 AM

messed around with this a few hours and couldn't get it working sorry , hide those inputs using css on your MFL site until i have time to look again


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


#100 Moon

Moon

    Veteran

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

Posted 17 August 2019 - 09:24 AM

Sorry it took up so much time, TOS. Thank you for the effort. Don't worry about coming back to this unless finding a fix is useful for you. I've sent Paul at MFL History a note to ask about this and a couple of other things. The designer feature is a neat idea albeit limited. Doesn't look like much has changed or improved since it was first rolled out. Not sure how many people use MFL History, but it is a league favorite with our gang as people enjoy looking back over 12 year history and tracking new records broken in the current season. I think everybody would love it if they had it.  



#101 grooves12

grooves12

    Veteran

  • Members
  • PipPipPip
  • 47 posts

Posted 24 August 2019 - 09:02 AM

.



#102 dejesusofnazareth

dejesusofnazareth

    Veteran

  • Members
  • PipPipPip
  • 176 posts
  • Gender:Male
  • Location:DynastyOGs

Posted 27 August 2019 - 12:09 PM

Just FYI Paul has enabled SSL on his site now.





Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users