• Resolved Rowe

    (@rowe678)


    Hello,

    i’m trying to find away to make it easier to import the teams into the ‘statistics’column (screen of what i mean: https://prnt.sc/rj4qky)

    The only reference I see to this is in the ‘sp_assignments’ custom field, which has data like this when I assign the “Ajax” team to it in the Statistics section: 130_131_5302. The ‘5302’ is the Ajax team ID, so i am guessing 130/131 are the league and season but how to make it work, because when i import it as 130_131_5302 with a import pluginit doesn’t work(everything else does import), i already contacted the import plugin developers and they said that i needed to contact the Sportspress developers, but uhm yeah they are pretty inactive lately and don’t respond, so i’m hoping someone here can help trying to figure this out.

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter Rowe

    (@rowe678)

    @rochesterj No there are no stats involved. i just want a faster way to make the team visible in the statistics column instead of manually adding the team from the dropdown menu.

    After i imported the .csv with the players, the players profile will look like this:
    https://prnt.sc/rpqip5

    I need to have it look like this: https://prnt.sc/rpqicz (Team added to the statistics field)

    That can be done by manually going to every player profile and edit it and choose the team in the scroll down menu > https://prnt.sc/rj4qky but then i have to go one by one to select the team by each player! what would take a lot of time for doing that for 500 players.

    Ignore the ‘1s’ in the screenshot

    • This reply was modified 4 years, 11 months ago by Rowe.

    Hi Rowe

    Thanks for the clarification. I see what you mean now.

    As far as I know, we don’t have this option. @savvasha, do you know any easy way to do this? Maybe with a loop?

    Thanks!

    Plugin Contributor Savvas

    (@savvasha)

    We are considering that “issue” some time now. There is a “catch” that holding us back from implementing any solution. The “catch” is that the system is not able to know which Team is current for a player for a specific season, without somehow the user add this information. So any solution, can be temporary only and specific for each user case, for example a loop. That’s why there is not a global solution, yet! We are looking on it though ??

    Thanks,
    Savvas

    Thread Starter Rowe

    (@rowe678)

    @savvasha Uhm okay. but what does the ‘sp_assignments’ custom field do then? because it does look alot like the 130_131_5302 data i can find in the statistics column. is there not a way to add that custom field to the import and when people import it as 130_131_5302 it can see the league/season and the team.

    130 ID = League
    131 ID = Season
    5302 ID = Team

    ??

    • This reply was modified 4 years, 11 months ago by Rowe.
    • This reply was modified 4 years, 11 months ago by Rowe.
    Plugin Contributor Savvas

    (@savvasha)

    Well, sp_assignments are used to player-lists to distinguish filter by league, season ant team. It can be used to the “Statistics” meta-box somehow, but unfortunately currently is not used.

    Thanks,
    Savvas

    Thread Starter Rowe

    (@rowe678)

    @savvasha Ah okay, i’ll stay on my old website/system for the time being. i really hope you guys find a solution for this. it’s a pain in the a**.

    Do you maybe know how brianmiyaji did it with a custom bulk function? he talked about in in slack 2 year ago, but i can’t figure it out how he did it.

    Plugin Contributor Savvas

    (@savvasha)

    @brianmiyaji can you add anything more on this?

    Let me ping him on slack ??

    Ok, this is what Brian told me:

    @rochesterj If I remember correctly, there are 2 different meta values that are saved for each league/season/team combination. This was to add support for multiple teams played by a single player within the same league and season. The meta values are:
    sp_leagues - serialized array of [league][season][team]
    sp_assignments - string of league_season_team
    The sp_assignments were introduced later and require saving of each player to enable. If he is working on custom code to bulk edit players, adding these 2 meta values to each player should work.

    So, in general adding these 2 custom fields should work. Are you able to add these 2 right now?

    Thanks!

    Thread Starter Rowe

    (@rowe678)

    @rochesterj Yes! it worked! thanks you guys so much ??

    That’s amazing!

    I’ll pass this along to Brian ??

    Thanks!

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Statistics player field’ is closed to new replies.