theeohiostate Posted July 1, 2015 Share Posted July 1, 2015 (edited) just an FYI to any myfantasyleague.com users ............... I was tired of online dice roll websites going offline , so i created a new module for MyFantasyLeague.com users , where you can install a personal dice roll into your league site. Each owner clicks a button , it rolls the dice then tabulates all results and places them in order , by franchise name , in real time . Here is my post on the MFL Forums with the script , its a simple copy/paste , into any MFL HomepageMessage , then go to your tabs setup and add it anywhere on your site. If you have any trouble getting it installed, pm me and i'll hook you up. Only takes about 2 seconds to install and be done. http://forums.myfant...showtopic=33522 since i dont have backend authorization from MFL , i couldn't inject the results to set your draft order, so that still is a manual job. Edited July 1, 2015 by theeohiostate 1 Quote Link to comment Share on other sites More sharing options...
tazinib1 Posted July 1, 2015 Share Posted July 1, 2015 Nice! Quote Link to comment Share on other sites More sharing options...
irish Posted July 1, 2015 Share Posted July 1, 2015 This is awesome! Quote Link to comment Share on other sites More sharing options...
ABearWithFurniture Posted July 1, 2015 Share Posted July 1, 2015 I must be CSS challenged as I copied/pasted the script into a home page message...and all I see is the typed script. Quote Link to comment Share on other sites More sharing options...
ABearWithFurniture Posted July 1, 2015 Share Posted July 1, 2015 Thanks...looks like a nice feature. You are the man! Quote Link to comment Share on other sites More sharing options...
theeohiostate Posted July 1, 2015 Author Share Posted July 1, 2015 (edited) Bear i updated the instructions to be " novice proof " , notice i'm being politically correct and not saying dummy proof (sure don't want Huffington or Salon posting my pics and crap) Just go back to that thread and all you need is there Edited July 1, 2015 by theeohiostate 1 Quote Link to comment Share on other sites More sharing options...
theeohiostate Posted July 1, 2015 Author Share Posted July 1, 2015 (edited) Have a huge list of other MFL addons listed here - http://forums.myfant...showtopic=33606 The 2 most popular ones are: Tabbed Roster/Trade View Script: http://football34.myfantasyleague.com/2015/options?L=42695&O=247&SEQNO=13 Custom Scoreboard: http://football34.myfantasyleague.com/2015/options?L=42695&O=247&SEQNO=10 both are just copy and paste codes , just like the Dice Roll Edited July 1, 2015 by theeohiostate Quote Link to comment Share on other sites More sharing options...
hapicamp Posted July 2, 2015 Share Posted July 2, 2015 .....really enjoying reading the links TOS, fun stuff, appreciate your time ........(he says in an understated voice/way) Quote Link to comment Share on other sites More sharing options...
rocknrobn26 Posted July 22, 2015 Share Posted July 22, 2015 Very Cool. The only problem we've run into is if a member customized his/her home page. But that's a simple fix. Quote Link to comment Share on other sites More sharing options...
ABearWithFurniture Posted July 22, 2015 Share Posted July 22, 2015 Hmmm...I must have messed something up. I pasted the code in using Google Chrome and for some reason now, only people who log in with Chrome can see the 'Roll the Dice' button. All the IE users can't see it. A programmer I'm not! Quote Link to comment Share on other sites More sharing options...
tazinib1 Posted July 22, 2015 Share Posted July 22, 2015 People still use IE??? 1 Quote Link to comment Share on other sites More sharing options...
ABearWithFurniture Posted July 22, 2015 Share Posted July 22, 2015 People still use IE??? Really...in this day and age you'd think they would have learned not to by now. Quote Link to comment Share on other sites More sharing options...
theeohiostate Posted July 22, 2015 Author Share Posted July 22, 2015 Really...in this day and age you'd think they would have learned not to by now. Shoot me a pm , with your league url I just rechecked the dice roll in IE , FF , Chrome , Safari , Mobile Windows , IOS 7 , IOS 8 , Android / Ipad / Iphone , and all were perfectly So unless your users are using a VERY old browser version of IE , shouldn't be an issue. Let them know , since i'm assuming some are using IE 6 , that in the past 10 years there have been 5 major updates to their browser lol 1 Quote Link to comment Share on other sites More sharing options...
theeohiostate Posted July 23, 2015 Author Share Posted July 23, 2015 BTW , i just finished a new script to replace the myfantasyleague draft room , i have it created for Auction leagues and Redraft leagues. I have a demo site set up , you can read my post here and need to sign in to the "TestFranchise" to view the draft room - http://forums.myfantasyleague.com/forums/index.php?showtopic=34148 1 Quote Link to comment Share on other sites More sharing options...
ABearWithFurniture Posted July 23, 2015 Share Posted July 23, 2015 So unless your users are using a VERY old browser version of IE , shouldn't be an issue. Let them know , since i'm assuming some are using IE 6 , that in the past 10 years there have been 5 major updates to their browser lol The league name is Cave Dwellers...so that might tell you something Quote Link to comment Share on other sites More sharing options...
theeohiostate Posted July 25, 2015 Author Share Posted July 25, 2015 (edited) guys just finished this script today , and its one i really hope all MFL commissioners installs for their owners.... If you play in large leagues , leagues with 30+ players on each roster (even a small league), you know that when you view the Rosters report or Team Page info , and your not lucky enough to have your team listed first , you've got some digging to do each time to scroll and find your team. This script will detect each owner logged into the league , and when you view the rosters report page or franchise information pages , it will place that users roster/team info first in line for easy access. MFL should be doing this by default , but alas they simply don't. MFL does provide a custom franchise order , but most of the commishes always place their team first and the rest of the league is off mouse scrolling.... You can copy / paste then into any homepagemessage box and mark it as a header or a footer. You will need to have a jQuery library loaded as well on your site. So if you already have one , do not load another , you only need 1 copy of jQuery to run any/all scripts. <!----- LOAD JQUERY LIBRARY - IF YOU ALREADY HAVE ON LOADED TO DO LOAD THIS ------><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script><script type="text/javascript">$(document).ready(function () {var isUserLoggedIn = typeof franchise_id === 'undefined'?false:true;if(isUserLoggedIn){console.log(franchise_id);if(endsWith(document.URL,'O=01') || endsWith(document.URL,'O=07')||document.URL.indexOf('O=07&DISPLAY') >-1){ var element = $('table.report');console.log(element.length);for(i = 0 ; i < element.length;i++){ if(element.eq(i).html().indexOf('FID='+franchise_id)>-1 || element.eq(i).html().indexOf('franchise_'+franchise_id)>-1){ var selected = '<table align="center" cellspacing="1" class="report">'+element.eq(i).html()+"</table>";var replace = '<table align="center" cellspacing="1" class="report">'+element.eq(0).html()+"</table>"; element.eq(0).html(selected); element.eq(i).html(replace); break; }}}}});function endsWith(str, suffix) {return str.indexOf(suffix, str.length - suffix.length) !== -1;}</script> MFL Forums support thread - http://forums.myfant...=34232&p=182717 Edited July 25, 2015 by theeohiostate Quote Link to comment Share on other sites More sharing options...
BillyBalata Posted August 8, 2015 Share Posted August 8, 2015 is there a way to have it display all the dice rolled besides just showing the total? Quote Link to comment Share on other sites More sharing options...
theeohiostate Posted August 9, 2015 Author Share Posted August 9, 2015 is there a way to have it display all the dice rolled besides just showing the total? currently no , but if get time this winter i may do a new roll , like a lottery ball , and show each number on a ball Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.