Skip to content

Hattrick support request

LA-MJ edited this page Oct 30, 2016 · 20 revisions

Request for small Hattrick enhancements

It would be a huge help for Foxtrick team if some things were implemented on the HT side.

Admittedly, this is a rather large list that need not be done at once or even fully completed to be useful.

The items are sorted roughly in the order of decreasing importance.

Thank you for your time and consideration. Every little bit helps.

TOC

NEW!!!

These are new ideas/difficulties that came up since the list was first created.

Tactic rating in HT-Live

Tactic rating is currently only specified in match event texts. However, this was historically an unavailable/hidden/unknown feature, meaning that not all languages use the available tactic rating.

It would be nice to list the tactical rating somewhere separately in the UI. This is especially true for the old HT-Live since it is still available as an option via HT settings.

Player data in match order interface

ht.playerManager.players array in Match Order interface has a lot of useful data we can use:

MO-data

However, one distinct information is curiously missing: mother club bonus. Would it be possible to add it?

Player skills and attributes in transfer compare

Transfer compare helpfully lists the criteria used to develop the player list:

TC criteria

We have an idea to list the attributes of the original player (i. e. the one that is being compared to) in a table alongside these criteria. However these are done using plain text nodes and are L10N-dependent.

First option would be creating this feature on the HT side. Barring that, it would be nice to wrap age and skill names in spans with distinct class names. E.g.:

<span class="pm">Playmaking</span> = <a href="/Help/Rules/AppDenominations.aspx?lt=skill&amp;ll=10#skill" class="skill">outstanding</a>

CHPP API enhancements

We need MOAR data 😃

  • youthtraining: get current training and the one that was active during last match or by matchID even
  • avatars: avatars for NT teamIDs are unavailable (throw errors); ability to get avatar by playerID
  • playerdetails: new field: matchesCurrentTeam
  • players: TransferDetails, GoalsCurrentTeam and ArrivalDate from playerdetails; OwnerNotes is curiously missing for Seniors; new field: matchesCurrentTeam.
  • nationalplayers is too bare, needs more fields from players, esp. Specialty; avatar info as well perhaps?
  • search: no youth support, esp. youth leagues

Changes that would be useful to reduce complexity/instability

These changes would make more features possible/bug-free or allow us to implement them without CHPP access.

Player data in match report (esp. NT)

  • There are no avatars for NT teams in avatars.xml (ticket id #34855).
  • Similarly, it is not possible to get NT player specialties unless fetching them one by one for each player.
  • Generally speaking, match data from #matchdata [id$="lblPlayerData"] is very useful on the match report page. It would be nice to have specialty/avatar information here as well.

Automatically redirect to Last played match

Leaving matchID blank for the old match lineup page would redirect to the last played match. Trying the same with the new match page leads to an error Expected=matchID.

It would be nice to have this functionality for the new match lineup page as well.

HTOIntegrated teamIDs in HeadToHead

When you go to a HTH tab (e. g. Latest matches) for a tournament match the tab link uses tournament teamIDs, e. g. HomeTeamID=7504003 (my teamID is actually 672194).

We'd like to use real HomeTeamID and AwayTeamID values on HTH. My testing indicates the actual teamID values are not really needed (can be 0) for HT to show the correct match list. Other tabs break though.

Alternatively, HT team IDs could be added somewhere else in HTML, of course.

Consistency is key

A lot of trouble comes from the fact that same things are done differently all over Hattrick.

For example, we have quite a popular feature that turns main site menu into a drop down menu:

MainMenuDropDown

It learns and fills up on the fly by traversing the DOM. However it requires quite a lot of hacks since the menu is different all over the place on each page. E.g. some links in #sidebar (right menu) are often wrapped in paragraphs or spans; useless <br> or other styling elements are used. You could make use of some consistent util functions for some things ;)

Anyway, the actual small problem that leads to another set of hacks is this: Manager Network in consistency

Why would you guys use a different structure for the same purpose? Would it be possible to make Manager network identical to mail: replace the (1) link with a span and remove the Network span?

Useful feature requests

These requests are needed for extremely frequent user feature requests that would require a lot of CHPP access

Match type information on supported teams page

Next match link

Supported teams page includes links to next and previous match for each team. However, additional information about the matches (match type icon, most importantly) would be invaluable to enable filtering & sorting.

Salary and character in transfer search

We've been asked numerous times to include player salary and character on transfer search result page. Using CHPP for each player in this case is extremely inefficient.

Secondary team information on the forum

People also want to see secondary team info on forum messages

Other remarks

Some things proposed to us are better handled by HTs. Other things are just friendly reminders directly from Foxtrick team;)

Using relative protocol to prevent insecure resource warnings with HTTPS

There are multiple warnings on stage in the form:

Mixed Content: The page at 'https://stage.hattrick.org/Club/' was loaded over HTTPS, but requested an insecure image 'http://res.hattrick.org/kits/13/129/1281/1280529/matchKitLarge.png'. This content should also be served over HTTPS.

Team player list and match report are the worst.

DONE \o/

These requests have been fulfilled already and are here for archive purposes only. We are dully grateful for your cooperation.

Street teams on match report

There is a common theme with a lot of the problems: textNodes. They tend to over-complicate things for us. E. g. see this match: Street team

Proposal:

<h1 class="hasByline">
  <span class="teamName">Footballeurs de rue</span>
  <span id="matchResult">0 - 8</span>
  <a href="/Club/?TeamID=1757282" title="Yaute FC" class="teamName">Yaute FC</a>
</h1>

Team names in HT-Live

As visible in the image below, when a match is collapsed in HT-Live both team names are joined in a textNode.

[collapsed state] Collapsed match in HT-Live

[expanded state, i. e. .rtsSelected] Expanded match in HT-Live

There are a few problems with this. Firstly, some team names include ' - ' in them (no kidding) making team name detection buggy in collapsed state. Secondly, only short names are used (in expanded case as well) making own team detection problematic and the title attribute useless. Thirdly, street teams are just the worst!

Proposal to wrap team names in collapsed state and use full team names for the title attribute:

<!-- collapsed state -->
<span class="teamName" title="FC Evaldas">Evaldas</span>
 - 
<span class="teamName" title="Kavalieriai">Kavalieriai</span>
<!-- expanded state -->
<a href="/Club/?TeamID=273107&amp;BrowseIds=273107,671242" title="FC Evaldas">Evaldas</a>
 - 
<a href="/Club/?TeamID=671242&amp;BrowseIds=671242,273107" title="Kavalieriai">Kavalieriai</a>
<!-- P.S. street teams should use span.teamName here as well -->

Wrap fan club size on team page in a span

Fan club

Fan club name may include numbers and that (along with uncertainty from L10N) makes fan club size detection buggy. Proposal:

<p>Sirgalių klube Stormers F.C yra <span id="fanClubSize">127</span> nariai</p>

Missing HTO filter in match archive

HTO filter

Once HTO filter was introduced on the match page people on stage complained that Match archive still displays HTO matches by default. Similar checkbox was promised there but was not delivered.

There is actually a filter there but the default view is All that includes HTO. Personally I don't find much sense in displaying HTO matches in archive at all (they are soon deleted). As a compromise there perhaps should be another category (All -HTO) that is displayed by default.

Clone this wiki locally