Site
Home / Forum / General Discussion / Historical Teams

Historical Teams


Posted: 13 Mar 2017 20:40

ovokx
Posts: 830
Joined: Jan 2017

This post is created in order to inform/request about the creation of players related to historical teams. The first one fully entered is:



1998 Manchester United



Posted: 14 Mar 2017 10:59

zag
Posts: 1,558
Joined: Oct 2016

Awesome! I remember being in the Pub seeing them win the Treble

But how do people want to see this? Any ideas on how to display it....?

Posted: 14 Mar 2017 18:05

ovokx
Posts: 830
Joined: Jan 2017

At team level, we could add a selector field where you can choose the year you want to check. Something like this:



Once selected, current team members could be substituted by the ones of the selected year.

I don't know if this is very hard to code, but if so, another possibility could be that once you selected the year, it jumps into a new page displaying not only the squad for that year and also displaying the honours won on that date.

All this info can be triggered using the "Career Honours" and "Former Teams" fields.



Posted: 14 Mar 2017 19:11

ovokx
Posts: 830
Joined: Jan 2017

Thinking about the option of jumping into a new page, maybe we can add some more special info related to that season like, for example, description of that season (text can be easily find in wikipedia), fanart, jersey & badge related to that season, competitions played/won, top scorers, manager...

Here you can see the link for 1997-98 ManU season in wikipedia where you can check all the info available: https://en.wikipedia.org/wiki/1997%E2%8 ... 2.80.93May



Posted: 14 Mar 2017 21:51

ovokx
Posts: 830
Joined: Jan 2017



1991 Chicago Bulls added

Posted: 15 Mar 2017 09:30

zag
Posts: 1,558
Joined: Oct 2016

Biggest problem I see with this is long term players like Steven Gerard who never really moved away from their home clubs, not showing on historical.

But I'm sure its possible to program around that.

I will see what I can do, keep adding the data so we have a few examples. Nice to see a basketball as well now, that will be useful testing

Posted: 24 Apr 2017 19:06

ovokx
Posts: 830
Joined: Jan 2017



1996 Chicago Bulls added

Posted: 26 Apr 2017 07:56

zag
Posts: 1,558
Joined: Oct 2016

Awesome thanks, I've been watching the progress of your edits. This gives me something to test with now.

Thanks!

Posted: 26 Apr 2017 17:24

ovokx
Posts: 830
Joined: Jan 2017

Awesome thanks, I've been watching the progress of your edits. This gives me something to test with now.

Thanks!


If you need all the players related to the historical teams already entered, don't hesitate to ask

Posted: 29 Apr 2017 05:49

zag
Posts: 1,558
Joined: Oct 2016

Yeh still thinking about how to program this in the GUI. I like your idea above but not so keen on dropdown form items. I'm still trying to work out how to show it nicely,

EDIT: actually just noticed you have only shown up and down arrors, this could work so you click down and get 2016, down again and get 2015. Hmm thats actually a pretty good way of doing it,

Posted: 02 Dec 2017 12:28

ovokx
Posts: 830
Joined: Jan 2017



2010 Inter added

Posted: 04 Dec 2017 16:45

zag
Posts: 1,558
Joined: Oct 2016

Awesome!

Once we get round to completing the lower English leagues I will look into how the historical teams can be shown in the web pages.

Posted: 04 Jan 2018 22:23

ovokx
Posts: 830
Joined: Jan 2017



1992 USA Basketball National Team (The Dream Team) added

Posted: 10 Apr 2020 18:30

ovokx
Posts: 830
Joined: Jan 2017



2012 Chelsea added

Posted: 10 Apr 2020 18:40

zag
Posts: 1,558
Joined: Oct 2016

Nice! I love all these, it reminds me to work out a feature for showing these glory teams of the past!

Posted: 10 Apr 2020 20:02

zag
Posts: 1,558
Joined: Oct 2016

Ok.... I finally gave this a crack, hopefully this works... Can you let me know if it seems correct?

https://www.thesportsdb.com/team_former.php?t=133681&y=2005


You can try different years and teams by manipulating the URL. The list of players should change according to the year. I have lots more to do but wanted to check the basics works before continuing.

Y=The team year
T=The team ID

Let me know, I think its working but hard to verify....

Posted: 10 Apr 2020 20:28

curswine
Posts: 143
Joined: Jan 2017



You can try different years and teams by manipulating the URL. The list of players should change according to the year. I have lots more to do but wanted to check the basics works before continuing.

Y=The team year
T=The team ID

Let me know, I think its working but hard to verify....
team, but he's not showing up.

I tested to see if it's because he's a manager and listed as part of a team instead of 'retired', but he still didn't appear in the player list.

Posted: 10 Apr 2020 20:28

curswine
Posts: 143
Joined: Jan 2017

team, but he's not showing up.

I tested to see if it's because he's a manager and listed as part of a team instead of 'retired', but he still didn't appear in the player list.


Posted: 10 Apr 2020 21:08

zag
Posts: 1,558
Joined: Oct 2016

Thanks for pointing it out, the manager position is special so might need some extra treatment.

Does all the other players look OK? The logic was crazy complicated on this one.

Posted: 11 Apr 2020 08:10

ovokx
Posts: 830
Joined: Jan 2017

Great! Thanks for working on this!

I have tested and have seen some wrong info displayed:

- Players with no full info entered (Year Joined & Year departed) are displayed (see https://www.thesportsdb.com/team_former ... 738&y=2020)
- Players out of the club due to a loan to another team are displayed in both teams (see Geremi at Middlesbrough & Real Madrid https://www.thesportsdb.com/team_former ... 628&y=2002 & https://www.thesportsdb.com/team_former ... 738&y=2000)



Posted: 11 Apr 2020 10:13

ovokx
Posts: 830
Joined: Jan 2017

Thanks for pointing it out, the manager position is special so might need some extra treatment.

Maybe adding a new field such "Managed Teams" could do the trick

Posted: 11 Apr 2020 11:22

zag
Posts: 1,558
Joined: Oct 2016



Maybe adding a new field such "Managed Teams" could do the trick


Done

https://www.thesportsdb.com/player/34165721

Posted: 11 Apr 2020 12:02

curswine
Posts: 143
Joined: Jan 2017



Done

https://www.thesportsdb.com/player/34165721


That works great.

However I had a little accident using it for the first time though, I thought the link to adding a managerial position was going to be different than adding a playing role, so I accidentally added Louis van Gaal as playing for Ajax between 1991-1998, could that be removed please?

Posted: 11 Apr 2020 15:42

ovokx
Posts: 830
Joined: Jan 2017



Done

https://www.thesportsdb.com/player/34165721


Great! It works perfect as expected!

Also I have seen that you have also added the option to indicate if a transfer player is a loan. Any option to add a "pencil" in order to be able to update previous data entered?

Posted: 11 Apr 2020 18:48

zag
Posts: 1,558
Joined: Oct 2016



Great! It works perfect as expected!

Also I have seen that you have also added the option to indicate if a transfer player is a loan. Any option to add a "pencil" in order to be able to update previous data entered?


I'll probably add a delete feature tomorrow, as its quite easy to mess up.


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 25 (Total: 34)