Jump to content
[[Template core/front/custom/_customHeader is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

Dice Rolls for Draft Picks


theeohiostate
 Share

Recommended Posts

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 by theeohiostate
  • Like 1
Link to comment
Share on other sites

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 by theeohiostate
  • Like 1
Link to comment
Share on other sites

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 by theeohiostate
Link to comment
Share on other sites

  • 3 weeks later...

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

  • Like 1
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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 by theeohiostate
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information