WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: LeagueManager] No teams during match create (14 posts)

  1. aidanmcg33
    Member
    Posted 5 years ago #

    Im trying to set up matches but no teams appear in the drop downs. I have created teams already and these are listed in the database table.

  2. longing
    Member
    Posted 5 years ago #

    Dasselbe Problem bei mir. Eine neue Liga lässt sich anlegen, aber die eingetragenen Teams tauchen einfach nicht in der Tabelle auf. In der Ligenübersicht steht zwar die Anzahl der Teams die man angemeldet hat, aber sonst sind keine Einträge zu sehen. Natürlich kann man dann auch keine Wettkämpfe starten.

  3. aidanmcg33
    Member
    Posted 5 years ago #

    Can you translate that to english?

  4. aidanmcg33
    Member
    Posted 5 years ago #

    Ah i got it ok. Yea but ive no idea how to fix it.

  5. dpmcalister
    Member
    Posted 5 years ago #

    I have the same problem, but with WordPress 2.7. Looking through phpMyAdmin, the teams are being entered into the database, but they do not appear on the show league page, nor on the add match page (although the correct number of teams is showing on the league manager page for that league).

    Additionally, the league settings are not being updated when I click save and remain at the default.

  6. aidanmcg33
    Member
    Posted 5 years ago #

    Add a field 'logo' to the database table for teams.

  7. aidanmcg33
    Member
    Posted 5 years ago #

    also for the points option. i hard coded the points values in leaguemanager.php -> calculatepoints function.

    $points['plus'] = $num_win * 2 + $num_draw * 1 + $num_lost * 0;

  8. wordpredia
    Member
    Posted 5 years ago #

    aidanmcg33, thank yo for your tips.
    Adding a field "logo" its possible to add the macth!

    Bul you can explain a few how set the point system. The preferences page dont save the settings

    This code secuence is correct?

    $points['plus'] = $num_win * 2 + $num_draw * 1 + $num_lost * 0;
    $points['plus'] = $num_win * $this->preferences->forwin + $num_draw * $this->preferences->fordraw + $num_lost * $league_settings->forloss;
    $points['minus'] = $num_draw * $this->preferences->fordraw + $num_lost * $this->preferences->forwin;
    return $points[$option];

  9. Kolja
    Member
    Posted 5 years ago #

    I'm sorry for the inconvenience. There was a bug that the database tables for leagues and teams were not correctly created. I just released 2.4.1 which fixes this bug. After deactivating and re-activating the plugin it sould work.

  10. longing
    Member
    Posted 5 years ago #

    It still doesn't work for me. Can't save settings, teams don't appear on the table.

  11. Kolja
    Member
    Posted 5 years ago #

    Sorry to hear this. Did you de- and re-activate the plugin? Can you try to uninstall the plugin? Make sure the database tables are deleted. There still my be a bug in creating them since for me it works fine. Otherwise, if you are willing to grant me access to your database, via phpMyAdmin, I would check if everything was created correctly.
    If you want you can mail me access data to

    kolja [dot] schleich [at] googlemail [dot] com

  12. longing
    Member
    Posted 5 years ago #

    I deactivated the plugin, deleted the old database tables from 2.4 and activated 2.4.1 again. Now it works fine! Thanks for the update!

  13. Kolja
    Member
    Posted 5 years ago #

    OK, so there obviously is an error in the upgrade process. I'm glad it works now :)

  14. shortd81
    Member
    Posted 5 years ago #

    Same problem

Topic Closed

This topic has been closed to new replies.

About this Topic