Missing Player Pictures
Missing Player Pictures
Greetings,
We're using the latest version of the sim and outputting files to the SQLite DB. Bruno Roy shared his website code with us and one of the nice things is the NHLID that Simon has included in the sim. However, if a player doesn't have an NHLID, their picture doesn't show (of course). Is there a table in the DB that can be edited to point to another location to get a picture or a way to post custom pictures for specific players?
Regards,
t.
We're using the latest version of the sim and outputting files to the SQLite DB. Bruno Roy shared his website code with us and one of the nice things is the NHLID that Simon has included in the sim. However, if a player doesn't have an NHLID, their picture doesn't show (of course). Is there a table in the DB that can be edited to point to another location to get a picture or a way to post custom pictures for specific players?
Regards,
t.
-
- STHS Owner / Propriétaire du STHS
- Posts: 14784
- Joined: Sat Oct 08, 2005 4:18 pm
- Location: Montreal, Canada
- Contact:
Re: Missing Player Pictures
You can't edit table in the DB because it erase and recreate every day. You can import NHLID using the Bonus option. And you can find in the NHLID here
Here:
http://sths.simont.info/Download_En.php
Select:
Rating Files 2018: All rating files available submit to me in 2018.
In this path, open Showtime Ratings Pack -> NHLID.csv
Here:
http://sths.simont.info/Download_En.php
Select:
Rating Files 2018: All rating files available submit to me in 2018.
In this path, open Showtime Ratings Pack -> NHLID.csv
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Re: Missing Player Pictures
Are you taking feature requests? If so, it would be great if there was a feature that allowed you to use custom pictures and bios for certain players. For example, in our league the GM's are allowed to create a player for themselves. Sometimes, prospects and some European players don't have an NHL ID so it would be useful to be able to host your own DB of that info for those specific players.
Is that something that can reasonably be done or is it too much work for a niche feature?
Regards,
t.
Is that something that can reasonably be done or is it too much work for a niche feature?
Regards,
t.
-
- STHS Owner / Propriétaire du STHS
- Posts: 14784
- Joined: Sat Oct 08, 2005 4:18 pm
- Location: Montreal, Canada
- Contact:
Re: Missing Player Pictures
Hi.
The NHL ID is only used for the picture at the moment. If you want to host some the picture yourself, I can take this feature request. Some of my customer paid me for special request at the condition I can offer it to everyone at the same time.
The NHL ID is only used for the picture at the moment. If you want to host some the picture yourself, I can take this feature request. Some of my customer paid me for special request at the condition I can offer it to everyone at the same time.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Re: Missing Player Pictures
Is there a reason that some of the player pictures aren't shown but instead just their name appears where the picture should be? This happens with players too, that have their NHL ID in the sim and that have their picture on their NHL page.
-
- STHS Owner / Propriétaire du STHS
- Posts: 14784
- Joined: Sat Oct 08, 2005 4:18 pm
- Location: Montreal, Canada
- Contact:
Re: Missing Player Pictures
Do you have an screenshot of this behavior? The only reason I see is "lazy loading" in the web browser.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Re: Missing Player Pictures
One example would be Mitchell Chaffee:
https://slnf.sths.ca/PlayerReport.php?Player=2333
We have his NHL ID in the sim, and there is a picture of him on his NHL site:
https://www.nhl.com/lightning/player/mi ... ee-8482070
Players without NHL ID in the Sim look different, there's nothing instead of the name written twice:
https://slnf.sths.ca/PlayerReport.php?Player=745
https://slnf.sths.ca/PlayerReport.php?Player=2333
We have his NHL ID in the sim, and there is a picture of him on his NHL site:
https://www.nhl.com/lightning/player/mi ... ee-8482070
Players without NHL ID in the Sim look different, there's nothing instead of the name written twice:
https://slnf.sths.ca/PlayerReport.php?Player=745
-
- STHS Owner / Propriétaire du STHS
- Posts: 14784
- Joined: Sat Oct 08, 2005 4:18 pm
- Location: Montreal, Canada
- Contact:
Re: Missing Player Pictures
I don't understand what you mean by name written twice. I don't see this on the website.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Re: Missing Player Pictures
This is what I see on all devices. On the right side the name of the player again, instead of the picture.
![Image](https://i.ibb.co/6XVxwGP/Screenshot-2024-02-03-115816.png)
![Image](https://i.ibb.co/6XVxwGP/Screenshot-2024-02-03-115816.png)
-
- STHS Owner / Propriétaire du STHS
- Posts: 14784
- Joined: Sat Oct 08, 2005 4:18 pm
- Location: Montreal, Canada
- Contact:
Re: Missing Player Pictures
There is no image for Mitchell Chafee on the NHL website in the 168 by 168 mugshot image. So, you see the alternatif text for the image.
And it seems the NHL website change how they handle mugshot now.
And it seems the NHL website change how they handle mugshot now.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Re: Missing Player Pictures
Ok, thanks. So I guess there is no way to "circumvent" this somehow via the Sim
-
- STHS Owner / Propriétaire du STHS
- Posts: 14784
- Joined: Sat Oct 08, 2005 4:18 pm
- Location: Montreal, Canada
- Contact:
Re: Missing Player Pictures
I need to analyse this change from NHL. But when I look at another rookie (Connor Bedard), the 168 by 168 mugshot exist so I wonder if it's one shot deal for this player.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Re: Missing Player Pictures
There are some more, but mostly "lesser known" players like this one here:
https://slnf.sths.ca/PlayerReport.php?Player=282
https://www.nhl.com/flames/player/yan-kuznetsov-8482165
https://slnf.sths.ca/PlayerReport.php?Player=282
https://www.nhl.com/flames/player/yan-kuznetsov-8482165
Re: Missing Player Pictures
Maybe they are in steps for hardening from where does images can be fetch.
-
- STHS Owner / Propriétaire du STHS
- Posts: 14784
- Joined: Sat Oct 08, 2005 4:18 pm
- Location: Montreal, Canada
- Contact:
Re: Missing Player Pictures
Actually, the STHS is compatible with NHL change.
I have setup the
Mug Shot Base URL to be "https://assets.nhle.com/mugs/nhl/20232024/"
Mug Shot File Extension to be "png"
A players NHL ID to be "CGY/8482165" and it work.
What is annoying is that the 1) URL will change every year and 2) if the player get trade, his mugshot NHLID might change also. (To confirm)
Let see if this thrend from NHL.com continue or not.
I have setup the
Mug Shot Base URL to be "https://assets.nhle.com/mugs/nhl/20232024/"
Mug Shot File Extension to be "png"
A players NHL ID to be "CGY/8482165" and it work.
What is annoying is that the 1) URL will change every year and 2) if the player get trade, his mugshot NHLID might change also. (To confirm)
Let see if this thrend from NHL.com continue or not.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français