• This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.
  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Support Bracket/Tournament List colour problems.

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
4,459
Ok, in fact I looked into the doc of the script and there are parameters to achieve what you did instead of the css.

So I would recommend you to revert the modification and edit the xfa_tourn_tournament_bracket template.

Search for:
Code:
    $('.tournamentBracket').bracket({
        init: bracketData,
        centerConnectors: true,
        skipConsolationRound: {xen:if '{$tournament.third_place}', false, true},
        skipGrandFinalComeback:  {xen:if '{$tournament.mode} == "consolation"', true, false},
        <xen:if is="{$canEditTournament}">
        save: function(){}, /* without save() labels are disabled */
        </xen:if>
        decorator: {edit: edit_fn, render: render_fn}
    });
You would need to add additional parameters to the call, eg.:
Code:
    $('.tournamentBracket').bracket({
        init: bracketData,
        teamWidth: 60,
        scoreWidth: 20,
        matchMargin: 10,
        roundMargin: 50,
        centerConnectors: true,
        skipConsolationRound: {xen:if '{$tournament.third_place}', false, true},
        skipGrandFinalComeback:  {xen:if '{$tournament.mode} == "consolation"', true, false},
        <xen:if is="{$canEditTournament}">
        save: function(){}, /* without save() labels are disabled */
        </xen:if>
        decorator: {edit: edit_fn, render: render_fn}
    });
These are some default parameters given on the script description page, you have to adapt them to your needs.

Clément
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
4,459
If you confirm it works might be able to provide that as style properties in a new version.
 

Hecter

Member
Joined
Jan 16, 2016
Messages
79
If you confirm it works might be able to provide that as style properties in a new version.
Worked perfectly, it could do with some tidying but for now I am more than happy to use as is.