![]() ![]() |
Jun 6 2006, 08:46 PM
Post
#1
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
I changed the scroller a bit so I figured that I had better start a new thread for the upcoming season. The previous version of the scroller had pretty much everything turned "on" by default so that when I added a new feature it would change the contents the scroller displayed on a users site. I think it is better that everything is turned "off" by default and allow the user to turn things "on" as they saw fit.
Also the new scroller file is accessed at www.habman.com/mfl/scoller2.php (Note the change from scroller.php to scroller2.php) Here are the scroller features:
- Background colour is FFFFFF (white) - Text colour is 000000 (black) - Font-Family is Arial - Font-Size is 14 px You must put the following code in a home page message to use the scroller and then add any features that you want turned on. Here is the base code CODE <iframe style="border: 2px solid #000000;" frameborder="0" scrolling="no" src="http://www.habman.com/mfl/scroller2.php?leagueid=#####&year=####&serverid=##" width="200" height="200"></iframe> This will create a 200X200 pixel Iframe that will scroll contents vertically. You must change the ##### to your leagueid, the #### to the 4-digit year that you want and the ## to your server id (see this post for more info about the server id). *** You can use %LEAGUEID% and %YEAR% in place of ##### above but beware that it won't work in the preview mode however it will work on your site. Thanks Braven112 for the tip. *** You can turn "on" the features by adding the following parameters to the src url. To change to a horizontal scroll: &horizontal=on To change the background colour to green: &bgcolor=009900 <=== colour code help To change the font colour to red: &fontcolor=FF0000 To change the font family to Comic Sans MS: &family=Comic Sans MS To change the font size to 12px: &size=12 To change the default scroll speed: &speed=1 <=== 1 is slow; 10 is fast; 2 is default To remove user ability to control speed: &control=no To round all scoring to 2 decimals: &round=2 To display scores: &showscores=on To display next weeks games: &shownext=on To display the top 3 weekly players: &topweek=3 To display the top 4 weekly players: &topweek=4 etc. all the way to 15 To display the top 3 season players: &topseason=3 To display the top 4 season players: &topseason=4 etc. all the way to 15 To set a week range for top season players - Start from week 3: &topstartweek=3 - End at week 14: &topendweek=14 To include free agents in the top player displays: &showfreeagents=on To display draft results: &showdraft=on - For deluxe leagues to display draft results from a particular conference only also include &conference=00 or &conference=01 etc. - To specify round 2 as the first draft round to display &draftstart=2 - To specify round 7 as the last draft round to display &draftend=7 To display a personalized message at the start of the scroller: &message1=your message here To display a personalized message at the end of the scroller: &message2=your message here You add the parameters in the following manner: "http://www.habman.com/mfl/scroller2.php?leagueid=%LEAGUEID%&year=%YEAR%&showscores=on&topweek=5" EDITED TO ADD: June 7, 2006: You can use percentages for the width of the iframe i.e. width="100%" rather than a fixed pixel width as shown above. June 7, 2006: Also if you change the scroller to a horizontal one by including &horizontal=on then change the iframe height to 16. June 7, 2006: Iframe Code has been updated to make it XHMTL compliant. June 8, 2006: Deluxe league support for Draft display June 9, 2006: Specify which draft rounds to display August 16, 2006: Added serverid parameter to speed up the load of the scroller. See this post for more info. August 17, 2006: Now when scrolling through the draft results if you click on the franchise name a window will open with the up-to-date roster for that franchise. -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
Jun 6 2006, 09:32 PM
Post
#2
|
|
|
Veteran ![]() ![]() ![]() Group: Validating Posts: 2651 Joined: 12-July 04 Member No.: 708 |
Awsome. I'll be giving this a try tomorrow and will let you nkow how it works out. Thanks again.
|
|
|
|
Jun 6 2006, 09:44 PM
Post
#3
|
|
|
Veteran ![]() ![]() ![]() Group: Members Posts: 74 Joined: 27-May 06 From: 37601 Member No.: 4369 |
I changed the scroller a bit so I figured that I had better start a new thread for the upcoming season. The previous version of the scroller had pretty much everything turned "on" by default so that when I added a new feature it would change the contents the scroller displayed on a users site. I think it is better that everything is turned "off" by default and allow the user to turn things "on" as they saw fit. Also the new scroller file is accessed at www.habman.com/mfl/scoller2.php (Note the change from scroller.php to scroller2.php) ................. Please don't hesitate to ask any questions or any help on getting the scroller set up. Awesome! I've got my draft scrolling along my site just like at the bottom of the tv screen on draft weekend. Now I just have to wait till August for our draft. Thanks again, Johnny |
|
|
|
Jun 6 2006, 10:01 PM
Post
#4
|
|
|
Veteran ![]() ![]() ![]() Group: Validating Posts: 2651 Joined: 12-July 04 Member No.: 708 |
I haven't tried it yet, but a question occurs to me. How will this work for a deluxe league with more than once player pool and seperate drafts?
|
|
|
|
Jun 6 2006, 10:56 PM
Post
#5
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
I haven't tried it yet, but a question occurs to me. How will this work for a deluxe league with more than once player pool and seperate drafts? I'm not sure. If you could direct me to a deluxe league I can ammend the code so that I could have something working for those type of leagues. -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
Jun 6 2006, 11:00 PM
Post
#6
|
|
|
Veteran ![]() ![]() ![]() Group: Validating Posts: 2651 Joined: 12-July 04 Member No.: 708 |
I haven't tried it yet, but a question occurs to me. How will this work for a deluxe league with more than once player pool and seperate drafts? I'm not sure. If you could direct me to a deluxe league I can ammend the code so that I could have something working for those type of leagues. Here's one: http://football.myfantasyleague.com/2006/home/49793 If you need one that actually has the scroller running, I'll have to get back to you once I've set one up. |
|
|
|
Jun 7 2006, 12:18 AM
Post
#7
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1102 Joined: 18-April 04 From: mfladdons.com Member No.: 326 |
Doesn't work I get some sort of error when I put it up on my page.
-------------------- MFLaddons.com, your home for MFL templates and graphics. Check out our Featured Templates for only $39.99 through the month of June.
|
|
|
|
Jun 7 2006, 05:16 AM
Post
#8
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
Doesn't work I get some sort of error when I put it up on my page. Hmm I put this code CODE <center><iframe style="border: 2px solid #000000;" frameborder="0" scrolling="no" src="http://www.habman.com/mfl/scroller2.php?leagueid=49793&year=2006&horizontal=on&showdraft=on" width="750" height="16"></iframe></center> to display the draft for your 49793 league up on my site and it seems to work. Can you try it again so that I can see the error? -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
Jun 7 2006, 05:24 AM
Post
#9
|
|
|
Veteran ![]() ![]() ![]() Group: Members Posts: 74 Joined: 27-May 06 From: 37601 Member No.: 4369 |
The code is working good for me.
The only question I have is there a way I can set it to only show certian rounds or the last 12 picks made? If not, no big deal....GREAT CODE! |
|
|
|
Jun 7 2006, 05:34 AM
Post
#10
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
Doesn't work I get some sort of error when I put it up on my page. The code is working good for me. The only question I have is there a way I can set it to only show certian rounds or the last 12 picks made? If not, no big deal....GREAT CODE! I went to your site to check it out and thought the same thing about displaying only certain rounds. I will work on it today and get back to you. -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
Jun 8 2006, 06:34 AM
Post
#11
|
|
|
Veteran ![]() ![]() ![]() Group: Validating Posts: 2651 Joined: 12-July 04 Member No.: 708 |
Maybe I'm pushing my luck, but I have to ask.... For deluxe leagues, is it possible to add a feature to specify the conference you want to display the draft picks for? The current setup will scroll conference00 first and then conference01. Since they are seperate player pools, I guarantee the people in the second conference are not going to want to sit through the entire first conference scroll before they see their picks.
|
|
|
|
Jun 8 2006, 01:48 PM
Post
#12
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
Maybe I'm pushing my luck, but I have to ask.... For deluxe leagues, is it possible to add a feature to specify the conference you want to display the draft picks for? The current setup will scroll conference00 first and then conference01. Since they are seperate player pools, I guarantee the people in the second conference are not going to want to sit through the entire first conference scroll before they see their picks. I ammended the code so that this will work for you. Simply add &conference=00 to show only players from the first conference, &conference=01 for the second etc. BTW even though the above code should work do you know of any deluxe leagues that already have had their draft so that I can test it out further. Thanks. -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
Jun 8 2006, 02:28 PM
Post
#13
|
|
|
Veteran ![]() ![]() ![]() Group: Validating Posts: 2651 Joined: 12-July 04 Member No.: 708 |
Maybe I'm pushing my luck, but I have to ask.... For deluxe leagues, is it possible to add a feature to specify the conference you want to display the draft picks for? The current setup will scroll conference00 first and then conference01. Since they are seperate player pools, I guarantee the people in the second conference are not going to want to sit through the entire first conference scroll before they see their picks. I ammended the code so that this will work for you. Simply add &conference=00 to show only players from the first conference, &conference=01 for the second etc. BTW even though the above code should work do you know of any deluxe leagues that already have had their draft so that I can test it out further. Thanks. Not yet, but it wouldn't be too hard to set up a test league and let it autopick rosters for this purpose. I'll get back to you with an id when ready. EDIT: Here's a test league http://football.myfantasyleague.com/2006/home/77869 |
|
|
|
Jun 8 2006, 03:26 PM
Post
#14
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
Maybe I'm pushing my luck, but I have to ask.... For deluxe leagues, is it possible to add a feature to specify the conference you want to display the draft picks for? The current setup will scroll conference00 first and then conference01. Since they are seperate player pools, I guarantee the people in the second conference are not going to want to sit through the entire first conference scroll before they see their picks. I ammended the code so that this will work for you. Simply add &conference=00 to show only players from the first conference, &conference=01 for the second etc. BTW even though the above code should work do you know of any deluxe leagues that already have had their draft so that I can test it out further. Thanks. Not yet, but it wouldn't be too hard to set up a test league and let it autopick rosters for this purpose. I'll get back to you with an id when ready. EDIT: Here's a test league http://football.myfantasyleague.com/2006/home/77869 Thanks. It seems to be working. -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
Jun 8 2006, 03:55 PM
Post
#15
|
|
|
Veteran ![]() ![]() ![]() Group: Validating Posts: 2651 Joined: 12-July 04 Member No.: 708 |
Yep. Once again, thanks for the efforts.
|
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 3rd September 2010 - 11:50 PM |