WordPress.org

Ready to get started?Download WordPress

Forums

LeagueManager
Zero in score results and edit bug (12 posts)

  1. chleray
    Member
    Posted 9 months ago #

    I have the 3.8.9 version.
    We use League manager for soccer and volleyball.

    League manager is a great plugin but we have two big troubles:

    1/ When we enter results, every games (every cells of the scores not played) get 0-0 as score result.
    Every time, we must erase every 0. It is very long and frustrating.
    Where does this bug come from? Is there a solution?

    2/ I've seen this bug in other posts but I repeat: when you edit a game, you loose the day of the game. So, in the calendar, games don't appear anymore. It is important in the editor menu the number of the day is displayed and might be easily changed.
    For the moment, we erase the games with errors and we create a new game.

    Thanks!

    https://wordpress.org/plugins/leaguemanager/

  2. maximdesign
    Member
    Posted 9 months ago #

    I have the very same problem.
    I use both the latest versions of League Manager and WordPress.
    Also I can't update score results, they remain 0-0.

    Any solutions?!?

  3. Necho
    Member
    Posted 9 months ago #

    I have the same problem.
    I have 190 matches in my database for my tournament and i can't update the last result of my 40 last games... they remain 0-0.

  4. cheche
    Member
    Posted 8 months ago #

    I have not idea of the implications of this change. Test it on your own setup.

    cheche@casa:~/projectos/guijuelo/leaguemanager/trunk/admin$ svn diff matches.php
    Index: matches.php
    ===================================================================
    --- matches.php	(revisión: 939884)
    +++ matches.php	(copia de trabajo)
    @@ -68,7 +68,7 @@
     			<td><?php echo ( empty($match->location) ) ? 'N/A' : $match->location ?></td>
     			<td><?php echo ( '00:00' == $match->hour.":".$match->minutes ) ? 'N/A' : mysql2date(get_option('time_format'), $match->date) ?></td>
     			<td style="text-align: center;">
    -				<input class="points" type="text" size="2" style="text-align: center;" id="home_points_<?php echo $match->id ?>_regular" name="home_points[<?php echo $match->id ?>]" value="<?php echo (isset($match->home_points) ? $match->home_points : 0) ?>" /> : <input class="points" type="text" size="2" style="text-align: center;" id="away_points[<?php echo $match->id ?>]" name="away_points[<?php echo $match->id ?>]" value="<?php echo (isset($match->away_points) ? $match->away_points : 0) ?>" />
    +				<input class="points" type="text" size="2" style="text-align: center;" id="home_points_<?php echo $match->id ?>_regular" name="home_points[<?php echo $match->id ?>]" value="<?php echo (isset($match->home_points) ? $match->home_points : null) ?>" /> : <input class="points" type="text" size="2" style="text-align: center;" id="away_points[<?php echo $match->id ?>]" name="away_points[<?php echo $match->id ?>]" value="<?php echo (isset($match->away_points) ? $match->away_points : null) ?>" />
     			</td>
     			<?php do_action( 'matchtable_columns_'.$league->sport, $match ) ?>
     		</tr>
    @@ -84,4 +84,4 @@
     		<input type="hidden" name="updateLeague" value="results" />
     		<p style="margin: 0;" class="submit"><input type="submit" name="updateResults" value="<?php _e( 'Update Results','leaguemanager' ) ?> &raquo;" class="button" /></p>
     	<?php endif; ?>
    -</form>
    \ No newline at end of file
    +</form>

    `

  5. baalam
    Member
    Posted 6 months ago #

    For all of you looking for the fix you need to go to your matches.php file under the admin folder and replace this line (71):

    <?php echo (isset($match->home_points) ? $match->home_points : 0) ?>" /> : <input class="points" type="text" size="2" style="text-align: center;" id="away_points[<?php echo $match->id ?>]" name="away_points[<?php echo $match->id ?>]" value="<?php echo (isset($match->away_points) ? $match->away_points : 0) ?>" />

    With this one:

    <?php echo (isset($match->home_points) ? $match->home_points : null) ?>" /> : <input class="points" type="text" size="2" style="text-align: center;" id="away_points[<?php echo $match->id ?>]" name="away_points[<?php echo $match->id ?>]" value="<?php echo (isset($match->away_points) ? $match->away_points : null) ?>" />

    You're welcome

  6. zsootthey
    Member
    Posted 6 months ago #

    Thank you baalam!
    This solution is solved my problem!

  7. stabiasport
    Member
    Posted 6 months ago #

    Hello, I ran what was said to Balaam, but says: "lgmngr / admin / match.php (inactive)"
    Nothing happens, perhaps because inactive.
    How do I activate it?

  8. stabiasport
    Member
    Posted 6 months ago #

    Maybe it works for the inclusion of new match, because for the previous match I had to cancel all 0: 0 of extra time and penalties.

  9. isydee
    Member
    Posted 5 months ago #

    @stabiasport
    I had the same problem... check this file leaguemanager/sports/soccer.php

    If you have around #136 #137 and #138 this code
    ( isset($match->halftime['minus']) ? $match->halftime['minus'] : 0 )
    ( isset($match->overtime['away']) ? $match->overtime['away'] : 0 )
    ( isset($match->penalty['away']) ? $match->penalty['away'] : 0 )

    The code should be:
    ( isset($match->halftime['minus']) ? $match->halftime['minus'] : "" )
    ( isset($match->overtime['away']) ? $match->overtime['away'] : "" )
    ( isset($match->penalty['away']) ? $match->penalty['away'] : "" )

    The 0 can be replaced by "" or download here the file https://plugins.trac.wordpress.org/browser/leaguemanager/trunk/sports/soccer.php

  10. stabiasport
    Member
    Posted 5 months ago #

    Thank you very much! for your support

  11. slina
    Member
    Posted 5 months ago #

    <?php echo (isset($match->home_points) ? $match->home_points : null) ?>" /> : <input class="points" type="text" size="2" style="text-align: center;" id="away_points[<?php echo $match->id ?>]" name="away_points[<?php echo $match->id ?>]" value="<?php echo (isset($match->away_points) ? $match->away_points : null) ?>" />

    this isn´t working in ice hockey... I can´t save matches... please help me guys...

  12. bialbog
    Member
    Posted 3 months ago #

    Thank you Balaam, it works great.

Reply

You must log in to post.

About this Plugin

About this Topic