Site
Home / Forum / General Discussion / [Request] Add historical players in lineups & timeline

[Request] Add historical players in lineups & timeline


Posted: 02 Apr 2022 10:47

Ovokx

Posts: 1,768
Joined: 2020

Hi Zag,
It would be great to be able to add historical players to be displayed on events related to season and team in order to be able to add lineups and timelines for past events.

Nowadays, if you want to add mentioned info to, for example, 2005 UCL Final, all the displayed players are from current season in both teams, and moving retired players to their past teams, add info, and move them back to retirement is a tedious work.

Thank you!

Posted: 05 Apr 2022 21:50

zag


Posts: 3,511
Joined: 2020

Mmm yes good point, I'm not sure how but I will have a look at fixing.

I guess it can be hacked by moving the player from retired into the team temporarily, then back again once added to the timeline.

Posted: 06 Apr 2022 11:39

Ovokx

Posts: 1,768
Joined: 2020

Mmm yes good point, I'm not sure how but I will have a look at fixing.

By using player transfer history you will find team and season


I guess it can be hacked by moving the player from retired into the team temporarily, then back again once added to the timeline.


yes, as I already mentioned, this is the only way to do it, but too tedious to work with

zag
Posted: 10 Oct 2022 12:08
avzubkof

Posts: 52
Joined: 2020

Hi! Great idea in the beginning. I tried to start one of the last seasons of the Champions League - a lot of time is spent on the movement of the players. No new ideas for simplification yet? Sincerely, avzubkof


zag
Posted: 10 Oct 2022 13:42

zag


Posts: 3,511
Joined: 2020

It is something multiple people have asked for, but I am open to any ideas.

They must work in both the User Interface and logical ways without slowing down the current process.

Posted: 10 Oct 2022 14:15

zag


Posts: 3,511
Joined: 2020

OK I had a think about it and managed to write a little feature to merge both the current lineup and the historical lineups in one list.

It's not massively obvious but the historical players are listed below the current players in the drop down box.

To add a historical player, you would need to add them using the "Former teams" feature on the player page first.

All former players should now show up on the lineup feature.

Example https://www.thesportsdb.com/edit_event_lineup.php?e=1571096&h=1



avzubkof, Ovokx
Posted: 11 Oct 2022 17:21
avzubkof

Posts: 52
Joined: 2020

Cool. Thanks. Is it possible to do something similar with "timeline"? For complete convenience and comfort


Ovokx
Posted: 12 Oct 2022 17:25

Ovokx

Posts: 1,768
Joined: 2020

OK I had a think about it and managed to write a little feature to merge both the current lineup and the historical lineups in one list.

It's not massively obvious but the historical players are listed below the current players in the drop down box.

To add a historical player, you would need to add them using the "Former teams" feature on the player page first.

All former players should now show up on the lineup feature.

Example https://www.thesportsdb.com/edit_event_lineup.php?e=1571096&h=1



Just tested on 2005 UCL Final: Milan vs Liverpool and historical players are only shown for home team (in this case, Milan ones). Away players are on the DB and added correctly on the "Former Teams", but they don't appear in the drop down box, as per example Jerzy Dudek:

https://www.thesportsdb.com/event/1060046
https://www.thesportsdb.com/player/34170682



zag
Posted: 13 Oct 2022 08:58

zag


Posts: 3,511
Joined: 2020

Just tested on 2005 UCL Final: Milan vs Liverpool and historical players are only shown for home team (in this case, Milan ones). Away players are on the DB and added correctly on the "Former Teams", but they don't appear in the drop down box, as per example Jerzy Dudek:

https://www.thesportsdb.com/event/1060046
https://www.thesportsdb.com/player/34170682


Hopefully the away team fixed now as well.

Timeline is a little more difficult, still looking at that...

EDIT: OK timeline also fixed. It will show away players also for things like own goals.

avzubkof
Posted: 14 Oct 2022 07:32

Ovokx

Posts: 1,768
Joined: 2020

All worked properly: https://www.thesportsdb.com/event/1060046

Thank you!

zag
Posted: 14 Oct 2022 08:04

zag


Posts: 3,511
Joined: 2020

All worked properly: https://www.thesportsdb.com/event/1060046

Thank you!


That looks awesome! I forgot about the penalty miss feature

Now just needs a square poster and banner hehe

Posted: 14 Oct 2022 10:28

Ovokx

Posts: 1,768
Joined: 2020

sure, done!


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 12 (Total: 12)