WordPress.org

Forums

LeagueManager
[resolved] how can I change the option of when results will be updated? (7 posts)

  1. erknrio
    Member
    Posted 1 year ago #

    I have a problem with the results update:

    I want that the soccer results will updated not when the match just end otherwise three or four days later.

    Can you help me?

    http://wordpress.org/plugins/leaguemanager/

  2. erknrio
    Member
    Posted 1 year ago #

    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 :).

  3. ben52
    Member
    Posted 1 year ago #

    When you introduce the score you update the result in matches league and standing....
    if you want to update 3/4 days later introduce the score later on
    the plugin is automatic dont accept any delay.

  4. erknrio
    Member
    Posted 1 year ago #

    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 ;).

  5. ben52
    Member
    Posted 1 year ago #

    try this code in a text widget:
    [matches league_id=21 match_day=1]
    Change the id and the match day and you can see the result as match you want.

  6. erknrio
    Member
    Posted 1 year ago #

    Is not perfect but it works. Thanks :).

  7. erknrio
    Member
    Posted 1 year ago #

    I found it!!

    In the plugin folder lib/core.php line 391. Change this:

    elseif ( $current && $match = $this->getMatches( "league_id = '".$this->league_id."' ANDseason= '".$this->season."' AND DATEDIFF(NOW(),date) <= 0", 1 ) )

    For this:

    elseif ( $current && $match = $this->getMatches( "league_id = '".$this->league_id."' ANDseason= '".$this->season."' AND DATEDIFF(NOW(),date) <= X", 1 ) )

    Just change 0 by X, where X is the days after the matchday.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • LeagueManager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic