Jump to content


Photo

MFL History


101 replies to this topic

#1 theeohiostate

theeohiostate

    Veteran

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

Posted 11 February 2014 - 06:26 AM

Thanks to Paul over at MFL History for opening up his server for cross domain request , we were able to get the data from MFL History and create a module you can place within any HPM and set in one or your home page tabs. Just copy and past the code below , BE SURE TO CHANGE THE VAR to match your unique History url ID . Since we are pulling the data and placing it on MFL , the current css of your site should style your history page. While the History tables will match your site , you will need to style the sprytabs.

 

I hate using iframes and this was a great solution for yourself and your owners to have no reason to leave the MFL site while looking over your history.

 

hooked82 spent quite a few hours with me on this , and no way could i have made it work so smoothly without him taking charge and leading the way ;)

 

 

Code and Instuctions


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


#2 theeohiostate

theeohiostate

    Veteran

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

Posted 12 February 2014 - 01:48 PM

This is just about finished , big thanks to Hooker for hooking a brotha up and helping me ( I meant doing most of the work ;) ) to get this little script running properly. And to Paul over at MFLHistory for allowing us to snag the data from his server.


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


#3 hooked82

hooked82

    Veteran

  • Members
  • PipPipPip
  • 58 posts
  • Gender:Male

Posted 12 February 2014 - 04:09 PM

This is just about finished , big thanks to Hooker for hooking a brotha up and helping me ( I meant doing most of the work ;) ) to get this little script running properly. And to Paul over at MFLHistory for allowing us to snag the data from his server.

 

BTW, I'm not a hooker, but am hooked ;)



#4 theeohiostate

theeohiostate

    Veteran

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

Posted 12 February 2014 - 05:46 PM

Big thanks David , my hack attempts were getting the job done, but not fully .  MFL History Module is now complete - http://www27.myfanta...4/home/15356#9

 

and another league set up here to verify all data pulling properly  http://www33.myfanta...14/home/24122#9

 

This weekend i'll post the script - only thing each commish would need to do to use this would be to set the MFL History url ID in the given var place , and possible style the sprytabs to match your site better.

 

When loaded the MFL History should take the full appearance of your custom skin / template or MFL selected skin -  I will style the sprytabs to a neutral color and leave those for you all to customize if you feel the need.

 

 

BE GONE IFRAMES - I HATE YOU !!!!!!!!!!!!!!!


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


#5 theeohiostate

theeohiostate

    Veteran

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

Posted 12 February 2014 - 06:27 PM

first post edited with script , try it out and let me know if you see any issues


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


#6 theeohiostate

theeohiostate

    Veteran

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

Posted 14 February 2014 - 05:12 PM

MFL History script is finalized and general css updated in first post . I moved the script to a normal mfl skin and worked great, MFL History blends right into the skins fine

 

have to add 1 more shout out of thanks to hooker82 , this was a lot more difficult to get right then i had thought.

 

Should be able to paste code in 1st post on any MFL site , and with a very few css tweaks it will match your site. Much better then an entire stylesheet loaded onto the MFL History server


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


#7 hooked82

hooked82

    Veteran

  • Members
  • PipPipPip
  • 58 posts
  • Gender:Male

Posted 14 February 2014 - 06:14 PM

MFL History script is finalized and general css updated in first post . I moved the script to a normal mfl skin and worked great, MFL History blends right into the skins fine

 

have to add 1 more shout out of thanks to hooker82 , this was a lot more difficult to get right then i had thought.

 

http://www20.myfanta...2014/home/74656

 

Should be able to paste code in 1st post on any MFL site , and with a very few css tweaks it will match your site. Much better then an entire stylesheet loaded onto the MFL History server

 

Still not a hooker!  haha



#8 theeohiostate

theeohiostate

    Veteran

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

Posted 14 February 2014 - 06:44 PM

MFL History script is finalized and general css updated in first post . I moved the script to a normal mfl skin and worked great, MFL History blends right into the skins fine

 

have to add 1 more shout out of thanks to hooker82 , this was a lot more difficult to get right then i had thought.

 

Should be able to paste code in 1st post on any MFL site , and with a very few css tweaks it will match your site. Much better then an entire stylesheet loaded onto the MFL History server

 

Still not a hooker!  haha

 

 

your right , i'm sorry . your not a hooker as your services are free ;)  maybe just code whore ?


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


#9 hooked82

hooked82

    Veteran

  • Members
  • PipPipPip
  • 58 posts
  • Gender:Male

Posted 14 February 2014 - 07:05 PM

 

MFL History script is finalized and general css updated in first post . I moved the script to a normal mfl skin and worked great, MFL History blends right into the skins fine

 

have to add 1 more shout out of thanks to hooker82 , this was a lot more difficult to get right then i had thought.

 

http://www20.myfanta...2014/home/74656

 

Should be able to paste code in 1st post on any MFL site , and with a very few css tweaks it will match your site. Much better then an entire stylesheet loaded onto the MFL History server

 

Still not a hooker!  haha

 

 

your right , i'm sorry . your not a hooker as your services are free ;)  maybe just code whore ?

 

Works for me



#10 theeohiostate

theeohiostate

    Veteran

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

Posted 15 February 2014 - 10:28 PM

updated first post :

 

added to script -  place css tag into each odd and even row table for the history

added conditional css so you can set the tables to display side by side


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


#11 Greenville Jazz

Greenville Jazz

    Newbie

  • Members
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Greenville, TX

Posted 19 February 2014 - 11:33 PM

...and here I thought he just liked rugby. :)

 

Thanks guys, I just tried it out on our site and it fits right in with the rest of the pages.



#12 Agent575

Agent575

    Veteran

  • Members
  • PipPipPip
  • 315 posts
  • Gender:Male

Posted 26 February 2014 - 03:10 PM

Thanks for this TOS, Hooked82 and Paul@MFLhistory.  Love it!


signaturerosterwarspresident.jpg
advertisingeternals.jpg
signaturemyfantasygraphics.jpg


#13 theeohiostate

theeohiostate

    Veteran

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

Posted 02 March 2014 - 12:52 PM

Agent i saw your post on MFL History forums , if your moving around the main tabbed links on the MFL History control panel , you'll need to edit the html for this add on as well , shifting them around in the HTML for the TabbedPanels

 

if your just moving around the actual modules within each tab group, those should automatically take using this script. If they don't let me know so i can zero in on an answer for you.


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


#14 Agent575

Agent575

    Veteran

  • Members
  • PipPipPip
  • 315 posts
  • Gender:Male

Posted 04 March 2014 - 09:38 AM

Agent i saw your post on MFL History forums , if your moving around the main tabbed links on the MFL History control panel , you'll need to edit the html for this add on as well , shifting them around in the HTML for the TabbedPanels

 

if your just moving around the actual modules within each tab group, those should automatically take using this script. If they don't let me know so i can zero in on an answer for you.

 

Thanks TOS.  I am only having an issue with one specific module. 

 

TEAM PAGES tab.

 

I want ALL TIME RECORD to be top left.

I want TEAM NAME HISTORY to be top right.

 

When I did it, it looks right on the actual MFL HISTORY page here http://www.mflhistor...recordtype=team

But every time, the ALL TIME RECORD module moves tot he right here http://www30.myfanta...MODULE=MESSAGE4


signaturerosterwarspresident.jpg
advertisingeternals.jpg
signaturemyfantasygraphics.jpg


#15 hooked82

hooked82

    Veteran

  • Members
  • PipPipPip
  • 58 posts
  • Gender:Male

Posted 04 March 2014 - 10:15 AM

Agent i saw your post on MFL History forums , if your moving around the main tabbed links on the MFL History control panel , you'll need to edit the html for this add on as well , shifting them around in the HTML for the TabbedPanels
 
if your just moving around the actual modules within each tab group, those should automatically take using this script. If they don't let me know so i can zero in on an answer for you.

 
Thanks TOS.  I am only having an issue with one specific module. 
 
TEAM PAGES tab.
 
I want ALL TIME RECORD to be top left.
I want TEAM NAME HISTORY to be top right.
 
When I did it, it looks right on the actual MFL HISTORY page here http://www.mflhistor...recordtype=team
But every time, the ALL TIME RECORD module moves tot he right here http://www30.myfanta...MODULE=MESSAGE4

 
I think the problem lies in the following:

    function styleResult() {
        $('.leaguehistorymodule .homepagemodule').addClass('report');
        $('.leaguehistorymodule .homepagemodule caption').each(function () {
            $(this).html('<span>' + $(this).text() + '</span>');
        $('.newalign .leaguehistorymodule:nth-child(odd)').addClass("column-left");
        $('.newalign .leaguehistorymodule:nth-child(even)').addClass("column-right");
        });
    } 

 

Can you try changing the two lines to look like this:

OLD:
        $('.newalign .leaguehistorymodule:nth-child(odd)').addClass("column-left");
        $('.newalign .leaguehistorymodule:nth-child(even)').addClass("column-right");
NEW:
        $('.newalign div .leaguehistorymodule:nth-of-type(odd)').addClass("column-left");
        $('.newalign div .leaguehistorymodule:nth-of-type(even)').addClass("column-right");

 

Give that a try and let me know if it works for you

*Just updated the new JS*


Edited by hooked82, 04 March 2014 - 10:26 AM.




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users