Forum Replies Created

Viewing 15 replies - 31 through 45 (of 45 total)
  • Wow, I don’t see this error, thanks :).

    Do you have a screenshot or code?

    Is not perfect but it works. Thanks :).

    Ok, but I can’t to do that. I need the score when the match day is done and a few days later, Thanks for reply ;).

    Where is the function for the current match day?

    isCurrMatchDay

    I can change this match day to show the results of the before match day :).

    This is the problem the Team Roster are discontinued I only use the leaguemanager plugin and don’t have problem.

    In the documentation you can see a note in which he says that the team roster plugin does not work well.

    20$ :S. I saw templates for 30$, a plugin for 20$ :S.

    I have the same problem when I import teams, but not when I import matches :S. Are you importing something?

    The short answer: yes! The long answer:

    In the standings php file that you use, at the end insert this code:

    <?php var_dump($team); ?>

    With this code you can see all the variables stored in $team like, won, lose and tie matches. For example:

    With this code you can show the done matches:
    <?php echo $team->done_matches ?></td>

    With this code you can show the won matches:
    <?php echo $team->won_matches ?></td>

    With this code you can show the tie(draw) matches:
    <?php echo $team->draw_matches ?></td>

    With this code you can show the lost matches:
    <?php echo $team->lost_matches ?></td>

    I hope I can help you :).

    The “Diff” th use a function to load it. In standings-extend.php you can find this code:

    <?php do_action( ‘leaguemanager_standings_header_’.$league->sport ) ?>

    for that:

    <th class="num">F:C</th>
    <th class="num">DIff</th>

    And this code:

    <?php do_action( 'leaguemanager_standings_columns_'.$league->sport, $team, $league->point_rule ) ?>

    for that:

    <td class='num'><?php echo $team->points2 ?></td>
    <td class='num'><?php echo $team->diff?></td>p echo $team->diff?></td>

    And finallay you can add a new css class to Diff row to change this css :D.
    I hope I help you :).

    If I understand you want to create a new sport, ok? In this case you can use the examples of templates in the “templates” dir to change all you need, of course, you can use the files in “sports” dir to create your new sport based on a existing sport.

    In the documentation you will know how to do that. If you don’t find all you need you can use a sport like soccer (football) to do some changes and apply this changes to you own sport.

    Sorry for my english, I am spanish and is difficult to explain that in other language :S.

    I use this plugin with wordpress 3.6 and it works perfect, however, you should make a backup if a problem occurs, specially if you done personal changes :).

    Solved :).

    This is my standings-soccer-php (sorry for spanish comments):

    <?php if ( isset($_GET[‘team’]) && !$widget ) : ?>
    <?php leaguemanager_team($_GET[‘team’]); ?>
    <?php else : ?>

    <?php if ( $teams ) : ?>

    <table class=”leaguemanager standingstable” summary=”” title=”<?php _e( ‘Standings’, ‘leaguemanager’ ) .’ ‘.$league->title ?>”>
    <tr>
    <th class=”num”><?php echo _c( ‘Pos|Position’, ‘leaguemanager’ ) ?></th>
    <th class=”num”> </th>
    <?php if ( $league->show_logo ) : ?>
    <th class=”logo”> </th>
    <?php endif; ?>

    <th><?php _e( ‘Team’, ‘leaguemanager’ ) ?></th>
    <?php if ( 1 == $league->standings[‘pld’] ) : ?>
    <th class=”num” title=”Jugados”><?php _e( ‘Pld’, ‘leaguemanager’ ) ?></th>
    <?php endif; ?>
    <?php if ( 1 == $league->standings[‘won’] ) : ?>
    <th class=”num” title=”Ganados”><?php echo _c( ‘G|Ganados’,’leaguemanager’ ) ?></th>
    <?php endif; ?>
    <?php if ( 1 == $league->standings[‘tie’] ) : ?>
    <th class=”num” title=”Empatados”><?php echo _c( ‘E|Empates’,’leaguemanager’ ) ?></th>
    <?php endif; ?>
    <?php if ( 1 == $league->standings[‘lost’] ) : ?>
    <th class=”num” title=”Perdidos”><?php echo _c( ‘P|Perdidos’,’leaguemanager’ ) ?></th>
    <?php endif; ?>
    <th class=”num” title=”Goles Favor: Goles Contra”>GF:GC</th>
    <th class=”num” title=”Puntos”><?php _e( ‘Pts’, ‘leaguemanager’ ) ?></th>
    </tr>
    <?php if ( $teams ) : ?>
    <?php foreach( $teams AS $team ) : ?>

    <tr class='<?php echo $team->class ?>’>
    <td class=’rank’><?php echo $team->rank ?></td><!–posicion–>
    <td class=”num”><?php echo $team->status ?></td><!–flechita –>
    <?php if ( $league->show_logo ) : ?>
    <td class=”logo”>
    <?php if ( $team->logo != ” ) : ?>
    <img src='<?php echo $team->logoURL ?>’ alt='<?php _e(‘Logo’,’leaguemanager’) ?>’ title='<?php _e(‘Logo’,’leaguemanager’).” “.$team->title ?>’ />
    <?php endif; ?>
    </td>
    <?php endif; ?>

    <td title=”<?php echo $team->title ?>”>pageURL ?>”><?php echo $team->title ?></td>
    <?php if ( 1 == $league->standings[‘pld’] ) : ?>
    <td class=’num’ title=”Partidos Jugados”><?php echo $team->done_matches ?></td>
    <?php endif; ?>
    <?php if ( 1 == $league->standings[‘won’] ) : ?>
    <td class=’num’ title=”Partidos Ganados”><?php echo $team->won_matches ?></td>
    <?php endif; ?>
    <?php if ( 1 == $league->standings[‘tie’] ) : ?>
    <td class=’num’ title=”Partidos Empatados”><?php echo $team->draw_matches ?></td>
    <?php endif; ?>
    <?php if ( 1 == $league->standings[‘lost’] ) : ?>
    <td class=’num’ title=”Partidos Perdidos”><?php echo $team->lost_matches ?></td>
    <?php endif; ?>
    <td class=’num’ title=”Goles Favor: Goles Contra”><?php echo $team->points2 ?></td>
    <td class=’num’ title=”Puntos”><?php echo $team->points ?></td>
    </tr>
    <?php endforeach; ?>
    <?php endif; ?>
    </table>
    <h6>Si encuentra algún error en la clasificación, por favor, comuníquelo a soporte@marchadeportiva.com</h6>
    <?php endif; ?>
    <?php endif; ?>

    I resolved my own problem. I explain the steps I did:

    STEP 1
    I needed the information from the $team variable but I don’t knew how to get it. I used the

    <?php vardump($team); ?>

    to know which were the $team options.

    STEP 2
    I created a new template for the standings that I needed. I changed the “standings-extend.php” to “standings-soccer.php”

    STEP 3
    Delete this lines of code:
    Form th

    <?php do_action( ‘leaguemanager_standings_header_’.$league->sport ) ?>

    From td

    <?php do_action( ‘leaguemanager_standings_columns_’.$league->sport, $team, $league->point_rule ) ?>

    STEP 4
    Add this new lines in the position of the deleted lines:

    From th

    <th class=”num”>F:C</th>

    From td

    <td class=’num’><?php echo $team->points2 ?></td>
    <td class=’num’><?php echo $team->points ?></td>

    STEP 5
    In your post/page change the standings mode from extend (or other that you have) to your own template.

    VersusMx if your have another question do it otherwise I mark this topic as resolved.

    Well, what line of code?

    <?php do_action( ‘leaguemanager_standings_columns_’.$league->sport, $team, $league->point_rule ) ?>
    <td class=’num’ title=”Puntos”><?php echo $team->points ?></td>

    This line show Dif & Points but it call other function. Ok, tell me what code modify in this line (or template) and I will do it ;-).

Viewing 15 replies - 31 through 45 (of 45 total)