View Single Post
Old 10-01-2007, 01:43 PM   #20
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,693
I ran into a problem with my online league while working on the draft utility setup. The utility has some nifty little features that the commish can use via an Admin link to reset passwords, edit picks, and trade picks. Unfortunately, if you're the commish for the league but not a GM, you can't login.

If you open up passwords.html and login.html in a text editor like Wordpad, you can fix this with the following modification.

Search for the following line of code:
Code:
open (IN, "$info{CSV}/human_managers.csv");
Just below it will be an if statement that checks which managers to inlcude on the login screen. As released, only active managers are included. To also include the commish, you simply need a slight modification to the if statement.

Change it from:
Code:
	if ($5 > 0) {
to:
Code:
	if ($2 >0 || ($5 > 0)) {
and you should be good to go.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues
Baseball Cards - Full list of known templates and documentation on card development.
fhomess is offline   Reply With Quote