Jump to content


sackdaddy

Member Since 25 Feb 2007
Offline Last Active Sep 13 2019 09:52 AM

Posts I've Made

In Topic: Fantasy Survivor Script Update for 2017

12 September 2019 - 08:25 PM

Was thinking that a fun variation on the Fantasy Survivor would be (for lack of a better name) Fantasy Limbo. Was thinking that in Week 1 you'd have the lowest score eliminated, the same as you have in Survivor. In Week 2, you'd have everybody that didn't score ABOVE whatever that lowest Week 1 score was get eliminated, along with the next lowest score. Each week the bar of what you needed to score would get higher and higher until there was only 1 team left.

 

Thoughts?


In Topic: Auction Bidding Screen

20 May 2019 - 06:58 PM

TOS! You. Are. The. Man! Thank you so much, knew you guys would come to the rescue.

In Topic: Auction Bidding Screen

17 May 2019 - 05:23 PM

A new offseason so we’ve been running into this problem again. Any way to move the Bid column from the right side of the table to the left, by the players names? Thanks!

In Topic: CSS issues

17 March 2019 - 11:48 AM

Anybody else having trouble with nitrografixx hosted files this morning? My header images and menus load and then it stalls out and says 'Waiting for nitrografixx.com...'


In Topic: misc tid bits

21 October 2018 - 04:08 PM

This might be useful to some wanting to show , hide , add different style depending on if the user logged in is a commissioner / owner / guest. Add to header message

 

This will add a unique class tag to the body of each mfl page , which will allow you to use css to hide items based on user permissions.

 

All logged in owners will have a body.owners-only

Commissioner will have a body.commish-only

And guest will have a body.guest-only

<script type="text/javascript">
$(document).ready(function () {
  if((typeof franchise_id !== 'undefined') && (franchise_id >= parseInt("0000") || franchise_id<=parseInt("0096"))){
    $('body').addClass('owners-only');
      if(franchise_id=="0000") {
        $('body').addClass('commish-only').removeClass('owners-only');          
      }
  }
  else{
    $('body').addClass('guest-only');

    // REDIRECT ALL GUESTS TO THE LOGIN PAGE - NO CUSTOM HTML - CSS - SCRIPTS CAN BE SEEN BY ANY GUEST
    //var url = "http://%HOST%/%YEAR%/login?L=%LEAGUEID%&PRINTER=1";    
    //$(location).attr('href',url);
  }

// HERE YOU CAN PLACE FUNCTIONS TO REMOVE REPORTS FROM GUEST VIEW EXAMPLE BELOW
// $('.guest-only #league_chat').remove();

});
</script> 

 

 

Example of CSS to hide modules/reports using the new class added to determine login status (i prefer using the jQuery remove method in example area above , as it removes the HTML from the DOM , whereas CSS will not)

 

You don't want guest to read your chat , in your css , just add

.guest-only #league_chat {display:none;} /* ========  or use visibility:hidden;  ======== */ 

 

You want to make some notes in your homepage message and add to your homepage , but there is no need for anyone else to see it

.guest-only #your-custom-html-id ,.owners-only #your-custom-html-id {display:none;} /* ========  or use visibility:hidden;  ======== */ 

 

 

EDIT: I stumbled across %FRANCHISEID% last night, this solves my question.

 

 

I'm curious if there's possibly a variation of this that could be used to display certain modules/images that would show for the logged in user? I'm trying to create a team locker room and I used all the 'My' modules ('My Roster' 'My Trophy Case' 'My Bye Weeks') and then hoped to used the js workaround to create a module and also display their reports from All-Time Series Records. I'd like to include a few other items, specifically the...

 

REPORTS > PLAYER > STARTER PTS - PLAYER

 

...report. Is there an easy js fix for this outside of using 12 seperate modules with each franchise's id coded in?