minj / foxtrick

FoxTrick is a browser extension for the Hattrick online football manager game, currently available for Firefox, Google Chrome, as well as for Opera.
https://www.foxtrick.org
GNU General Public License v3.0
69 stars 49 forks source link

Supported teams are really supported manager (or just primary team) #1641

Open murko69 opened 4 years ago

murko69 commented 4 years ago

I just figured this out really - at least I think so :) You can support another team (if you are a supporter yourself) at least that's what the headline is on Hattrick when you want to do this. However.... It's the manager and not the team that is giving you the support. I was just aware that I had TWO supporting teams from my own league, but only ONE is visible with the Foxtrick feature SupportersList icon

The reason I only see one team with the "supporter teams icon" is that the other team is not a primary team, it's a secondary team. <= I'm guessing!

If that's correct, is it somehow possible to add the "supporter" -team icon also on secondary teams since the support actually comes from the manager? Teams you support is listed (5 random) on the manager page and not the team page so that's why I guess this "issue" is the way it is.

See image below: supporter-teams-issue

minj commented 4 years ago

Your analysis is correct, the support is user->team. This is historically so before multiple teams were a thing.

CHPP

As you can see the actual data coming from CHPP is a list teams. Primary teams, of course.

While userIds are available, they are not useful for pages like series, where links contain teamIds only. It is obviously possible to fetch the list of all teams having the userId but that is unpractical. Even my measly team has 29 supporters, think of the flagchasers etc. Fetching so much data from HT is prohibitively "expensive".

This is rather the territory of CHPP feature enhancement.