OBBLM league structure question
Moderator: TFF Mods
-
- Veteran
- Posts: 225
- Joined: Tue Jul 27, 2010 5:01 pm
- Location: Calgary
OBBLM league structure question
OBBLM gurus,
I'm just starting with our OBBLM installation and I'm wondering how (if I can that is) achieve the following league/division structure.
Our league will have 4 divisions
There will be 3-4 teams in each division
Each team will play some games in their division, and then some cross division games.
I'd like to have the teams grouped by division so that I can see the standings relative to the division as well as the entire league.
I'm not quite sure if this is possible, but I might not understand the League/Division/Tournament setup.
I have our league set up as follows
League
- Div A
--- Season 1
- Div B
--- Season 1
- Div C
--- Season 1
- Div D
--- Season 1
as far as I can tell, if I enter a scheduled match between a team from Div A and Div B, I have to pick which division to assign it to.
Any ideas? I'm sure what I want to do is painfully simple once I see how to do it
Thanks!
edit:
I guess to be clearer, I'd like to have a divisional set up like the MLB, NFL or NHL. Games are played in and across divisions, but standings within the division take all games into account.
I'm just starting with our OBBLM installation and I'm wondering how (if I can that is) achieve the following league/division structure.
Our league will have 4 divisions
There will be 3-4 teams in each division
Each team will play some games in their division, and then some cross division games.
I'd like to have the teams grouped by division so that I can see the standings relative to the division as well as the entire league.
I'm not quite sure if this is possible, but I might not understand the League/Division/Tournament setup.
I have our league set up as follows
League
- Div A
--- Season 1
- Div B
--- Season 1
- Div C
--- Season 1
- Div D
--- Season 1
as far as I can tell, if I enter a scheduled match between a team from Div A and Div B, I have to pick which division to assign it to.
Any ideas? I'm sure what I want to do is painfully simple once I see how to do it
Thanks!
edit:
I guess to be clearer, I'd like to have a divisional set up like the MLB, NFL or NHL. Games are played in and across divisions, but standings within the division take all games into account.
Reason: ''
Coach of the Fancy Lads
Blood Bowl League of Calgary
http://twitter.com/bloodbowlcgy
@dsavillian on twitter
It's called Blood Bowl, not Fun Bowl
Blood Bowl League of Calgary
http://twitter.com/bloodbowlcgy
@dsavillian on twitter
It's called Blood Bowl, not Fun Bowl
-
- Father of TTGN
- Posts: 53
- Joined: Tue Jul 28, 2009 4:05 am
Re: OBBLM league structure question
We also have another issue where the League drop-down in the Create Team page for a Coach has no Leagues in it even though we have a league with divisions assigned to it
Reason: ''
-
- Veteran
- Posts: 225
- Joined: Tue Jul 27, 2010 5:01 pm
- Location: Calgary
Re: OBBLM league structure question
We ended up finding the conference module tucked away in the modules folder. Enabled it, created the SQL tables and bingo!
Seems to work really well so far
Seems to work really well so far
Reason: ''
Coach of the Fancy Lads
Blood Bowl League of Calgary
http://twitter.com/bloodbowlcgy
@dsavillian on twitter
It's called Blood Bowl, not Fun Bowl
Blood Bowl League of Calgary
http://twitter.com/bloodbowlcgy
@dsavillian on twitter
It's called Blood Bowl, not Fun Bowl
- nicholasmr
- Experienced
- Posts: 110
- Joined: Mon Oct 22, 2007 1:01 pm
- Location: Copenhagen, Denmark
- Contact:
Re: OBBLM league structure question
Reason: ''
-
- Father of TTGN
- Posts: 53
- Joined: Tue Jul 28, 2009 4:05 am
Re: OBBLM league structure question
We read the wiki quite a few times.
The issue appears to be that the install code for the conferences module wasn't run. Once I manaully created the tables we were good to go.
Reason: ''
-
- Emerging Star
- Posts: 418
- Joined: Tue Jul 14, 2009 8:41 pm
- Contact:
Re: OBBLM league structure question
After enabling a module, I believe upgrade.php will handle any table creation needed.
Reason: ''
Webhosting with the latest version of OBBLM installed: OBBLM Web Hosting (be sure to choose the OBBLM tab)
-
- Veteran
- Posts: 225
- Joined: Tue Jul 27, 2010 5:01 pm
- Location: Calgary
Re: OBBLM league structure question
funnyfingers wrote:After enabling a module, I believe upgrade.php will handle any table creation needed.
We ended up figuring it out by just creating the SQL tables manually
Handy that we are both programmers
Reason: ''
Coach of the Fancy Lads
Blood Bowl League of Calgary
http://twitter.com/bloodbowlcgy
@dsavillian on twitter
It's called Blood Bowl, not Fun Bowl
Blood Bowl League of Calgary
http://twitter.com/bloodbowlcgy
@dsavillian on twitter
It's called Blood Bowl, not Fun Bowl
-
- Emerging Star
- Posts: 418
- Joined: Tue Jul 14, 2009 8:41 pm
- Contact:
Re: OBBLM league structure question
Just letting you know how to properly do it.
Reason: ''
Webhosting with the latest version of OBBLM installed: OBBLM Web Hosting (be sure to choose the OBBLM tab)
- mzukerman
- Emerging Star
- Posts: 396
- Joined: Sun Feb 13, 2011 7:34 pm
- Location: Long Island, NY
- Contact:
Re: OBBLM league structure question
Hey all, we had the module added but I'm getting "Error Adding Conference". I have admin privileges and created the league first.
Any ides?
Any ides?
Reason: ''
- DoubleSkulls
- Da Admin
- Posts: 8219
- Joined: Wed May 08, 2002 12:55 pm
- Location: Back in the UK
- Contact:
Re: OBBLM league structure question
Conferences are something I added.
The structure is League - Division - Tournament - Conference, so if you don't have a tournament then you may get an error.
The structure is League - Division - Tournament - Conference, so if you don't have a tournament then you may get an error.
Reason: ''
Ian 'Double Skulls' Williams
- mzukerman
- Emerging Star
- Posts: 396
- Joined: Sun Feb 13, 2011 7:34 pm
- Location: Long Island, NY
- Contact:
Re: OBBLM league structure question
After we enabled the Conference and LeagueTables modules by setting them to "true" in the settings_modules.php file, we ran the Upgrade.php script. We selected the upgrade from 9.0 to 9.1 even though we were already at 9.1 and it said that the SQL for the Modules completed successfully. However we checked the MYSQL DB and there is no table called conference.DoubleSkulls wrote:Conferences are something I added.
The structure is League - Division - Tournament - Conference, so if you don't have a tournament then you may get an error.
Is there anything else we need to enable to signal to the Upgrade.php script to create the conference related tables?
Reason: ''
- DoubleSkulls
- Da Admin
- Posts: 8219
- Joined: Wed May 08, 2002 12:55 pm
- Location: Back in the UK
- Contact:
Re: OBBLM league structure question
Ah, I think its not linked to upgrades, but you needed to update before the initial install.
You'll need to either run it by hand or reinstall I'm afraid (if you put the new install in a new DB you could copy any content over).
You'll need to either run it by hand or reinstall I'm afraid (if you put the new install in a new DB you could copy any content over).
Code: Select all
return array(
# Table name => column definitions
'conferences' => array(
# Column name => column definition
'conf_id' => $CT_cols[T_NODE_TOURNAMENT].' NOT NULL PRIMARY KEY AUTO_INCREMENT',
'f_tour_id' => $CT_cols[T_NODE_TOURNAMENT].' NOT NULL ',
'name' => $CT_cols['name'],
'type' => 'TINYINT UNSIGNED',
'date_created' => 'DATETIME',
),
'conference_teams' => array(
'f_conf_id' => $CT_cols[T_NODE_TOURNAMENT].' NOT NULL ',
'f_team_id' => $CT_cols[T_OBJ_TEAM].' NOT NULL ',
'PRIMARY KEY' => '(f_conf_id,f_team_id)',
),
);
Reason: ''
Ian 'Double Skulls' Williams
- mzukerman
- Emerging Star
- Posts: 396
- Joined: Sun Feb 13, 2011 7:34 pm
- Location: Long Island, NY
- Contact:
- mzukerman
- Emerging Star
- Posts: 396
- Joined: Sun Feb 13, 2011 7:34 pm
- Location: Long Island, NY
- Contact:
- siggyllama
- Veteran
- Posts: 167
- Joined: Mon Nov 15, 2010 6:12 pm
Re: OBBLM league structure question
This was really useful, thanks for posting. (And a tip for anyone trying to create the database table: if you make the 'name' row type VARCHAR (a good idea), don't forget to specify a limit (64 should work).)
Is there any way, short of coding the PHP myself, of getting the conference standings, as in the League Tables plugin, to display on the Home page?
Is there any way, short of coding the PHP myself, of getting the conference standings, as in the League Tables plugin, to display on the Home page?
Reason: ''