|
|
First, review the questions below. And then if they don't help, you can submit a question to us.Category: Advanced Customization| # | Question |
| 1. | I saw a really cool feature on someone else's site - how did they do that? Answer: Many of the more advanced customizations you might see on someone else's site requires an understanding of the web languages called XHTML, JavaScript and CSS. While MyFantasyLeague.com allows you to enter custom XHTML, JavaScript and CSS into your league pages to give you literally unlimited appearance options, we do not provide support for these web languages.
However, there are lots of other resources available to you to learn more about them, including:
- Our Community Forums - there, you'll find a lot of other helpful MyFantasyLeague.com customers who are experts in site customization, and would be very eager to lend a hand.
- An XHTML Tutorial.
- A CSS Tutorial.
- A JavaScript Tutorial.
- Your local bookstore, or an on-line bookstore, for books on XHTML, JavaScript, and CSS
How helpful was this answer?
|
| 2. | I've got some custom code entered into my site, and it's not working (or does not look the way I'd like it to) - can you help me fix it? Answer: While we cannot provide HTML and/or CSS support for custom code that's been written by our customers (or third parties), these tips might help a bit:
1. If your custom HTML/CSS was written by a third party, please get in touch with that third party directly. If you're having a problem, there's an excellent chance that this is a problem they're aware of, and have already solved for someone before, so they'll be able to solve it for you in no time.
2. If you've written your own custom HTML, you need to be sure that it's valid XHTML 1.0. One way to validate your HTML is the W3C (X)HTML validation service at http://validator.w3.org/.
3. If you've written your own custom CSS, you need to be sure that it's valid CSS. One way to validate your CSS is the W3C CSS validation service at http://jigsaw.w3.org/css-validator/
4. If your league web page does not appear as you'd like it to, you should first remove all of your custom code, and then add it back one piece at a time, until you find the offending code that makes your page appear incorrectly, and then fix the custom code in that specific module.
5. Often times you'll find some other MyFantasyLeague.com customers on our Community Forums who are eager to help with your custom coding needs.
6. If all else fails, and your league web pages are unusable to you because of these customizations, this detailed tip might help:
a ) Go directly to your For Commissioners > Setup > Printer Friendly page by clicking on that link.
b ) From there, if you know the offending code was custom HTML entered into one of the "home page messages", click on the home page message in question. If the offending code was CSS, click on the "Image and Other URLs" link.
c ) From the resulting page, if it does not work for you, just edit the URL of the page you're on by adding "&PRINTER=1" to the end of the URL. For example, if you know you were editing home page message #1 which caused the problem, you can go to this page, which gives you a "printer-friendly" version of the page (which eliminates the custom HTML and CSS).
d ) From there, you should be able to edit/save the HTML or CSS in question.
Finally, if none of the above helps, we can delete all of the offending custom HTML and/or CSS for you, allowing you to use your league pages again - just submit a support ticket to us.
A note to more advanced customers - if you're looking to really take your league web page design to the next level, and plan on spending a lot of time writing custom CSS and/or HTML, the combination of the Firefox web browser and the "Web Developer" extension for Firefox will save you a ton of time and frustration. See our Advanced Customization Guide for more details on how to use these two programs.
How helpful was this answer?
|
| 3. | What "special" variables can I use in my custom code to make it generic across all leagues? Answer: One of the more common pitfalls of custom coding for MyFantasyLeague.com pages is writing code that you can share with other commissioners, and have that custom code automatically apply to their league without requiring them to edit it. To achieve that goal, all custom coding you enter and save into one of the various home page messages can use the following special variables. The special variables are automatically interpreted for the current league context.
In other words, instead of hard-coding a link to http://football5.myfantasyleague.com/2008/options?L=12345&O=07 for your rosters report, you can "genericize" that link like this:
http://%HOST%/%YEAR%/options?L=%LEAGUEID%&O=07
The full list of custom variables follows:
%HOST% = current league host, like football5.myfantasyleague.com
%YEAR% = current year, like 2008
%LEAGUEID% = current five-digit league ID, like 12345
%STATICHOST% = "static" league web server, like www5.myfantasyleague.com
%FRANCHISEID% = current franchise id, like 0001
How helpful was this answer?
|
| 4. | How do I take my league home page customization to the next level? Answer: We pride ourselves on having what we think is not only the most customizable on-line fantasy football league management service on the web, but also the most "open", too. What that "open-ness" means to you, if you're someone with some computer programming and/or web design skills, is that you can extend and customize your MyFantasyLeague.com league a great deal.
Advanced customization options include:
| 1. | Writing custom CSS to completely control all aspects of your league appearance. |
| 2. | Getting access to "raw" MyFantasyLeague.com league data in industry-standard XML format. |
| 3. | Embedding league home page modules in other web pages. |
Writing custom CSS to completely control all aspects of your league appearance
CSS (Cascading Style Sheets) is the industry-standard way of controlling all appearance-related items on web pages. MyFantasyLeague.com uses CSS to control league page appearance (including our skins), and also allows our customers to write their own CSS to completely control any/all page appearance options that you'd like to.
If you'd like to learn more about CSS, you might want to consider some on-line CSS tutorials, or visit your local or on-line bookstore for books on CSS - Eric Meyer seems to write especially good books on this topic.
Once you've learned CSS, next you'll have to learn a bit about the classes and IDs we use on the site. You can do that by setting up a free trial league on our site, and then doing a "View Source" to see our current CSS files, including the CSS files used for each of our skins, to get a better idea of how to write CSS for your MyFantasyLeague.com league pages.
Alternatively, here is another approach that might be easier, allowing you to see exactly what classes and IDs we use on your league pages:
| 1. | Download and install the Firefox web browser. |
| 3. | Go to the league page you're looking to customize. |
| 4. | From the custom toolbar that gets installed, choose the "Information > Display ID And Class Details" option, and you can see exactly what IDs and classes are used on any/all pages on the site. |
| 5. | Where this gets really cool is that you can edit the CSS right on the page, allowing you to immediately see the effects of your CSS changes right away. It will take a bit of time to play around with the web developer extension and learn about all of it's features and options, but this time will be very well spent if you're interested in really taking your design to the next level. |
Finally, once you've written your custom CSS, you can go to the For Commissioners > Setup > Appearance Setup > Images & Other URLs page and upload your custom CSS to our site (or, simply enter the URL for the CSS file on your own server).
Getting access to "raw" MyFantasyLeague.com league data in industry-standard XML format
If you're a computer programmer, we offer the MyFantasyLeague.com Developer's Program
whereby you can easily get access to raw MyFantasyLeague.com data in XML format. This will allow you to quickly and easily get that data into whatever programming environment you're most comfortable, be it PHP, ASP, Excel, Java, Perl, or any other programming language that's capable of reading XML files. This page
offers details of exactly what XML documents we offer via this service. For some examples of what others have done using our XML feed:
Embedding league home page modules in other web pages
All home page modules are "embeddable" - meaning, you can place "live" MyFantasyLeague.com content inside web pages on another web site, your "My Google" customized home page, or inside arbitrary HTML on your MyFantasyLeague.com-hosted pages. Check out the "Reports > League > Embed League Data" page available from all league pages to see how this option works. For examples of what some of our more creative customers have done with this feature, see http://www.returnofthechampions.com/ and http://uffle.com/ .
If you have any suggestions, questions or comments about any of the programs mentioned here, we'd love to hear your feedback on via your "Help > Help Center" page.
How helpful was this answer?
|
| 5. | How do I use the RSS Feed page? Answer: This screen allows you to get an RSS Feed of your key league data. RSS is a web feed
which allows you to get electronic news delivered to you in an industry-standard format.
To obtain an RSS Feed you can:
| • | Click on the "Add To Google" button if you already have a Google account |
| • | Click on the "My Yahoo" button if you already have a Yahoo!" account |
| • | Copy the URL if you're using another RSS reader, and paste that URL into your RSS reader. |
Your league RSS feed will include:
1. Your league standings.
2. Current week's live scoring summary.
3. Most recent completed week's weekly results.
4. A summary of the 5 most recent league message board posts.
To Include Your RSS Feed Into Your Facebook Profile
| 1. | Copy your league's RSS URL above. |
| 2. | Log into your Facebook account |
| 3. | On the left-hand side of your page, you'll see a list of "Applications" - find the "Notes" application, and click on that. |
| 4. | On the right-hand side of that page, you'll see a link that says "Import A Blog" - click on that link. |
| 5. | Paste your RSS URL into the field on that page, check the disclaimer checkbox, and press the "Start Importing" button. |
| 6. | In the upper-right hand corner of the next page, click on the "Confirm Import" button, and you'll be good to go! |
How helpful was this answer?
|
| 6. | How do I embed a MyFantasyLeague.com Widget on another web page? Answer: This page allows you to embed your league home page modules into other web sites, including your personalized Google or Facebook home page.
You have three locations to choose from to embed your league data.
| • | MyFantasyLeague.com Hosted Page |
Select one of the above locations and then choose a MyFantasyLeague.com Module from the list of available modules. Then press the "Generate Code" button.
From the resulting page you will either click the button to "Add to Google" if the Google Home Page was selected, otherwise the necessary code will generate for you to copy/paste this module into either a MyFantasyLeague.com home page message or another personalized web page.
NOTE: You must know HTML in order to use the "In a MyFantasyLeague.com home page." and "In another web page." options on this page.
How helpful was this answer?
|
Didn't See Your Question Above? Please review the categories or tutorials on the left-hand side of this page, search the help center, or, submit a question to us here.
|