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.]]

Roll Them Bones


theeohiostate
 Share

Recommended Posts

All of you MFL users can inset this script into any home page message and you'll have a Roll Them Bones box for your site ready to go

 

Here is the code, the only thing that needs changed, is to enter your email addy in place of the text i show ENTER EMAIL ADDY , leave all parentheses in place

 

 

<script language="JavaScript" type="text/javascript"><!--if(franchise_id==undefined) var franchise_id;else { var diceFName = franchiseDatabase['fid_' + franchise_id].name; var diceEmail = "ENTER EMAIL ADDY"; var diceRolls = 3; var diceMax   = 100; document.write('<table cellspacing="1" class="homepagemodule report"><caption><span>Fantasy Draft Lottery</span></caption><tbody>'); document.write('<tr><th>Official Dice Roll</th></tr>'); document.write('<tr class="oddtablerow"><td>Press the button below to roll the dice to determine your position in next season\'s fantasy draft.<br /><br />This is the official roll and the results will be sent to the commissioner via e-mail.<br /><br />Good Luck!</td></tr>'); document.write('<tr class="eventablerow"><td style="text-align: center;">'); document.write('<form name="diceSimulator" action="http://www.habman.com/mfl/apps/dicesimulator.php" method="post" target="diceSimulator">'); document.write('<input type="hidden" name="email" value="'+diceEmail+'">'); document.write('<input type="hidden" name="rolls" value="'+diceRolls+'">'); document.write('<input type="hidden" name="max" value="'+diceMax+'">'); document.write('<input type="hidden" name="fid" value="'+franchise_id+'">'); document.write('<input type="hidden" name="lid" value="'+league_id+'">'); document.write('<input type="hidden" name="fname" value="'+diceFName+'">'); document.write('<input type="submit" value="Roll the Dice">'); document.write('</form>'); document.write('</td></tr></tbody></table>');}// --></script>

 

 

 

 

 

 

 

 

You can see it function on a test site i set up

 

http://www16.myfantasyleague.com/2009/home/49127

Link to comment
Share on other sites

right atop the page on the main tab

 

I'm either blind or stupid...maybe both....but I still can't find it. There is a bar that says "testing"....and below it, several tabs in this order:

 

Main, Team Sites, NFL Schedule, Depth Chart, Champ pages, teampages, carousel Rotator, Depth Charts #1

 

No sign of "Roll Dem Bones" on any tab at the top of the page, either.

Link to comment
Share on other sites

interesting, anyway to lock it out after one use so a commish doesn't get spammed with emails? no way to tell if the commish really rolled what he rolled either

 

 

It works great theeohiostate....I got it hooked up and running

 

To answer Robash its simple ...You can enter more than 1 e-mail in the code.. you could add several others ..So when the Commish rolled or anyone else .The e-mail would go to multiple owners...

Link to comment
Share on other sites

interesting, anyway to lock it out after one use so a commish doesn't get spammed with emails? no way to tell if the commish really rolled what he rolled either

 

 

 

This is a feature I would add to a home page message , insert into your home page content only for a specified time. Only members logged ontot the site can see the dice roll , so no guest can submit a roll.

 

Other question was answered on email for commish

Link to comment
Share on other sites

I cut and paste into a MFL home page message and all I get is the exact script that I cut and paste...no fancy button to roll them bones.

 

Any help for me?

Edited by Pancake
Link to comment
Share on other sites

I cut and paste into a MFL home page message and all I get is the exact script that I cut and paste...no fancy button to roll them bones.

 

Any help for me?

 

 

cut and paste all script within the code tags listed above.

 

Make sure you advanced editor is turned off when inserting anything into a homepage message.

 

Look for this under the Reports and Other Settings commish setup features

 

Use "Advanced Editor" on league type-in boxes? Set to No

 

Clear out the script, save, then reenter in.

Edited by theeohiostate
Link to comment
Share on other sites

cut and paste all script within the code tags listed above.

 

Make sure you advanced editor is turned off when inserting anything into a homepage message.

 

Look for this under the Reports and Other Settings commish setup features

 

Use "Advanced Editor" on league type-in boxes? Set to No

 

Clear out the script, save, then reenter in.

 

Ohhhhh! So shiny and beautiful! I have a fancy new Roll them bones button.

 

Many many thanks!

Link to comment
Share on other sites

I likey. It was much more idiot proof than I had imagined. In fact there's no way to screw it up. That is what most of my leagues would need. :wacko:

 

I also like this over the Evil Dice website because I was finding out (months after the fact) that people would not put in any email address and roll the dice many many times until they rolled around 4 or 5 high rolls (lowest roll - 1st pick) in a row and then they figured the odds are that a low roll would come up next.....so they put the commishs email address in rolled their "official roll". Most of them got the low roll they wanted.

 

This takes that right out of the mix. Hit the button once and your done!

Link to comment
Share on other sites

OK this works great as long as http://www.habman.com/mfl/apps/dicesimulator.php is up and running. The script directs to the dice simulator at this website.

 

Wondering if The Huddle can host a dice simulator and put its crack coding team on this as its likely that The Huddle will be around alot longer than this other website.?

 

What do you say DMD?

Link to comment
Share on other sites

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