Thanks Gents, that did the trick.
I wasn't sure what that field was for, so I had left it blank.
Is it possible to use that field to manage different leagues as well?
Since there's a membership fee, plus a league fee, is there any way to check
the player is registered properly?
i.e.  If someone wants to play on Wednesday's (our rec. night) they need
Membership + Wednesday
vs. Monday (our comp. night) they need Membership + Monday

Thanks again, always good to have some help w/ this stuff :)
Cheers,
Todd

On Tue, Apr 20, 2010 at 9:16 PM, Greg Schmidt <[email protected]> wrote:

> Yes, I suspect Dave's right.  There is a registration setting where you
> enter a comma-separated list of the event IDs that correspond to this
> year's
> membership, which is probably not set correctly.
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Dave O'Neill
> Sent: Tuesday, April 20, 2010 9:03 PM
> To: Development discussion for the Leaguerunner league management system
> Subject: Re: [Leaguerunner] Sudbury Taking Cheques,but no-one can join
> teams
> now
>
> On Tue, Apr 20, 2010 at 07:14:12PM -0400, Todd McDonald wrote:
> >I found the spot the code is generated, in Handler/Team.php line 947
> >if(!$this->player->is_player() ) {
> >     error_exit('Only registered players can be added to a team.');
> >} else {
> >     $he = ($this->player->gender == 'Male' ? 'he' : 'she');
> >     $his = ($this->player->gender == 'Male' ? 'his' : 'her');
> >     $him = ($this->player->gender == 'Male' ? 'him' : 'her');
> >     $mail = l(variable_get('app_admin_name', 'Leaguerunner
> Administrator'),
> >     'mailto:' . variable_get('app_admin_email','webmas...@localhost'));
> >     error_exit("Only registered players can be added to a team.
> >{$this->player->firstname} has yet to register and pay for this year's
> >membership. Please contact {$this->player->firstname} to remind $him to
> pay
> >for $his membership. If $he has        registered and paid for $his
> >membership please have $him contact $mail.");
> > So I don't see how to avoid this code.
>
> You shouldn't get to that point if everyone's paid-up... the line above
> the part you pasted:
>
>        if(!$this->player->is_member() && !$lr_session->is_admin()) {
>
> should keep you from entering that block if the player being added is
> paid up.    Take a look at is_member() in classes/person.inc.  My
> immediate guess is that the value of the membership_ids setting isn't
> correct, which would make it fail.   Check that it has the value of
> whatever registration you're using for membership -- it's under
> "Registration Settings".
>
> > Really looking for some help as I'm lost this deep into the Handlers.  I
> > can't track my way back up the stack as our provider won't let me get a
> > decent debugger going.
>
> ... the other problem being, OCUA still isn't running mainline
> Leaguerunner, and TUC is running something that's also diverged, so the
> code in SVN hasn't really been run in production -- except for you.  :/
>
> Cheers,
> Dave
> _______________________________________________
> Leaguerunner mailing list
> [email protected]
> http://www.dmo.ca/cgi-bin/mailman/listinfo/leaguerunner
>
> _______________________________________________
> Leaguerunner mailing list
> [email protected]
> http://www.dmo.ca/cgi-bin/mailman/listinfo/leaguerunner
>
_______________________________________________
Leaguerunner mailing list
[email protected]
http://www.dmo.ca/cgi-bin/mailman/listinfo/leaguerunner

Reply via email to