Quote:
Originally Posted by pbar25
I was wondering if it was possible to take advantage of the Login authentication capabilities of Stats Lab and add in a tab or simple html button (to the right of the User Configuration panel once logged in, same view for everybody) which would allow all owners to download the league file.
Is this something I could do on my own? I'd just need a nudge in the right direction I believe.
That way instead of building authentication on a website, one could keep the league file secure within StatsLab and owners only need to log into one place for everything they need.
|
Yeah, it'd be pretty easy to add to the StatsLab header. To do so, find the html_functions.php file in your StatsLab install. Save off a copy, then follow these steps:
1. Find the following line of code:
Code:
echo " <li><a href='".$htmlpath."/history/league_".$lgID."_index.html' class='menu'>History</a></li>\n";
2. Duplicate this line of code.
3. Edit the duplicate line of code to read the following, which contains the web address of your league file:
Code:
echo " <li><a href='http://www.yourdomain.com/path/league_file.tar.gz' class='menu'>League File</a></li>\n";
You'll now have a link to your league file in the StatsLab header.