Hello,
Well I need to display 'team play' when the number of players is 4 or 6 ,
so I used
like this
but this part is not displayed when I put 4 players in the table... any idea? ..; is 'nbplayers' coded for displaycondition?
Well I need to display 'team play' when the number of players is 4 or 6 ,
so I used
Code: Select all
'displaycondition' => array(array( 'type' => 'nbplayers', 'value' =>array(4,6))),
Code: Select all
104 => array(
'name' => _('Team play'),
'displaycondition' => array(array( 'type' => 'nbplayers', 'value' =>array(4,6))),
'values' => array(
0 => array( 'name' => totranslate( "Alone/no team"), 'tmdisplay' => totranslate( "Alone/no team" )),
40=> array( 'name' => totranslate( "4 players - Team random" ), 'tmdisplay' => totranslate( "4 players - Team random" )),
42=> array( 'name' => totranslate( "4 players - Team 1-3 vs 2-4" ), 'tmdisplay' => totranslate( "4 players - Team 1-3 vs 2-4" )),
//41 => array( 'name' => totranslate( "4 players - Team elo equillibrium" ), 'tmdisplay' => totranslate( "4 players - Team elo equillibrium" )),
60=> array( 'name' => totranslate( "6 players - Team 2 players random" ), 'tmdisplay' => totranslate( "6 players - Team 2 players random" )),
//61 => array( 'name' => totranslate( "6 players - Team 2 players elo equillibrium" ), 'tmdisplay' => totranslate( "6 players - Team 2 players elo equillibrium" )),
62 => array( 'name' => totranslate( "6 players - Team 1-4 vs 2-5 vs 3-6" ), 'tmdisplay' => totranslate( "6 players - Team 1-4 vs 2-5 vs 3-6" )),
70=> array( 'name' => totranslate( "6 players - Team 3 players random" ), 'tmdisplay' => totranslate( "6 players - Team 3 players random" )),
//71 => array( 'name' => totranslate( "6 players - Team 3 players elo equillibrium" ), 'tmdisplay' => totranslate( "6 players - Team 3 players elo equillibrium" )),
72 => array( 'name' => totranslate( "6 players - Team 1-3-5 vs 2-4-6" ), 'tmdisplay' => totranslate( "6 players - Team 1-3-5 vs 2-4-6" )),
//60 => array( 'name' => totranslate( "6 players - Team 2 players" ), 'tmdisplay' => totranslate( "6 players - Team 2 players" )),
//61 => array( 'name' => totranslate( "6 players - Team 3 players" ), 'tmdisplay' => totranslate( "6 players - Team 3 players" )),
),
'startcondition' => array(
0 => array( ),
40 => array( array( 'type' => 'nbplayers', 'value' => 4, 'message' => totranslate( 'This team player 4 is only available for 4 players.' ) ) ),
42 => array( array( 'type' => 'nbplayers', 'value' => 4, 'message' => totranslate( 'This team player 4 is only available for 4 players.' ) ) ),
60 => array( array( 'type' => 'nbplayers', 'value' => 6, 'message' => totranslate( 'This team player 4 is only available for 6 players.' ) ) ),
62 => array( array( 'type' => 'nbplayers', 'value' => 6, 'message' => totranslate( 'This team player 4 is only available for 6 players.' ) ) ),
70 => array( array( 'type' => 'nbplayers', 'value' => 6, 'message' => totranslate( 'This team player 4 is only available for 6 players.' ) ) ),
72 => array( array( 'type' => 'nbplayers', 'value' => 6, 'message' => totranslate( 'This team player 4 is only available for 6 players.' ) ) ),
)
),
but this part is not displayed when I put 4 players in the table... any idea? ..; is 'nbplayers' coded for displaycondition?