Welcome Guest ( Log In | Register )

11 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> Scroller, Update for 2006
habman
post 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:
  • Scroll vertically (default) or horizontally
  • Display top weekly players when they become available; the number of players to display; only starters if desired
  • Display top season players
  • Display live scores when games are in progress
  • Display final scores when games are official
  • Decimal support for team scores
  • Display next weeks games
  • Display draft results
  • Control the speed of the scroller
  • Control of font-family, font-color, font-size and background color
  • Ability to display two personalized messages
The default colour and text settings for the scroller are as follows
- 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=#####&amp;year=####&amp;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: &amp;horizontal=on

To change the background colour to green: &amp;bgcolor=009900 <=== colour code help
To change the font colour to red: &amp;fontcolor=FF0000
To change the font family to Comic Sans MS: &amp;family=Comic Sans MS
To change the font size to 12px: &amp;size=12

To change the default scroll speed: &amp;speed=1 <=== 1 is slow; 10 is fast; 2 is default
To remove user ability to control speed: &amp;control=no

To round all scoring to 2 decimals: &amp;round=2
To display scores: &amp;showscores=on
To display next weeks games: &amp;shownext=on

To display the top 3 weekly players: &amp;topweek=3
To display the top 4 weekly players: &amp;topweek=4 etc. all the way to 15

To display the top 3 season players: &amp;topseason=3
To display the top 4 season players: &amp;topseason=4 etc. all the way to 15

To set a week range for top season players
- Start from week 3: &amp;topstartweek=3
- End at week 14: &amp;topendweek=14

To include free agents in the top player displays: &amp;showfreeagents=on

To display draft results: &amp;showdraft=on
- For deluxe leagues to display draft results from a particular conference only also include &amp;conference=00 or &amp;conference=01 etc.
- To specify round 2 as the first draft round to display &amp;draftstart=2
- To specify round 7 as the last draft round to display &amp;draftend=7

To display a personalized message at the start of the scroller: &amp;message1=your message here
To display a personalized message at the end of the scroller: &amp;message2=your message here

You add the parameters in the following manner:

"http://www.habman.com/mfl/scroller2.php?leagueid=%LEAGUEID%&amp;year=%YEAR%&amp;showscores=on&amp;topweek=5"

blink.gif Confused. I know I would be. Please don't hesitate to ask any questions or any help on getting the scroller set up.

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/
Go to the top of the page
 
+Quote Post
smithktff
post 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.
Go to the top of the page
 
+Quote Post
stikman
post Jun 6 2006, 09:44 PM
Post #3


Veteran
***

Group: Members
Posts: 74
Joined: 27-May 06
From: 37601
Member No.: 4369



QUOTE (habman @ Jun 6 2006, 10:46 PM) *
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
Go to the top of the page
 
+Quote Post
smithktff
post 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?
Go to the top of the page
 
+Quote Post
habman
post 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


QUOTE (smithktff @ Jun 7 2006, 12:01 AM) *
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/
Go to the top of the page
 
+Quote Post
smithktff
post Jun 6 2006, 11:00 PM
Post #6


Veteran
***

Group: Validating
Posts: 2651
Joined: 12-July 04
Member No.: 708



QUOTE (habman @ Jun 7 2006, 12:56 AM) *
QUOTE (smithktff @ Jun 7 2006, 12:01 AM) *

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.
Go to the top of the page
 
+Quote Post
braven112
post 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.
Go to the top of the page
 
+Quote Post
habman
post 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


QUOTE (braven112 @ Jun 7 2006, 02:18 AM) *
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/
Go to the top of the page
 
+Quote Post
stikman
post 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!
Go to the top of the page
 
+Quote Post
habman
post 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


QUOTE (stikman @ Jun 7 2006, 07:24 AM) *
QUOTE (braven112 @ Jun 7 2006, 02:18 AM) *

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/
Go to the top of the page
 
+Quote Post
smithktff
post 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.
Go to the top of the page
 
+Quote Post
habman
post 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


QUOTE (smithktff @ Jun 8 2006, 08:34 AM) *
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 &amp;conference=00 to show only players from the first conference, &amp;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/
Go to the top of the page
 
+Quote Post
smithktff
post Jun 8 2006, 02:28 PM
Post #13


Veteran
***

Group: Validating
Posts: 2651
Joined: 12-July 04
Member No.: 708



QUOTE (habman @ Jun 8 2006, 03:48 PM) *
QUOTE (smithktff @ Jun 8 2006, 08:34 AM) *

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 &amp;conference=00 to show only players from the first conference, &amp;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
Go to the top of the page
 
+Quote Post
habman
post 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


QUOTE (smithktff @ Jun 8 2006, 04:28 PM) *
QUOTE (habman @ Jun 8 2006, 03:48 PM) *

QUOTE (smithktff @ Jun 8 2006, 08:34 AM) *

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 &amp;conference=00 to show only players from the first conference, &amp;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/
Go to the top of the page
 
+Quote Post
smithktff
post 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.
Go to the top of the page
 
+Quote Post

11 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 3rd September 2010 - 11:50 PM