Site
Home / Forum / General Discussion / bis_skin_checked="1"

bis_skin_checked="1"


Posted: 15 Jan 2021 23:13
deleted user
Hi,
I am translating the API in French. I renamed the teams I want to use by their french name. For that i made a simple php page with a switch case called in my code by an include
For the last events, no problems all teams are correctly displayed but for the next events, for the strAwayTeam, i have a "1" written beside the name of the team.
This "1" is not in my code (I checked several times)
I looked at the code generated in my console and I have a bis_skin_checked="1" .
I think it is coded in the API. How can I "uncheck" it ?
Thanks

Posted: 16 Jan 2021 12:37

zag
Posts: 3,327
Joined: 2020-03-23

Not sure but in PHP you can use str_replace to remove any characters from a string quite easily.

Posted: 16 Jan 2021 16:12
deleted user
I tried differents things, it seems the undesirable character is unvisible
For example, for a football match, the display is the following



The "1" after the away team is automatically added by the API i think (the bis_skin_checked="1" i guess). Whatever the name of the team the 1 will be added (if the next team is Arsenal, it will display Arsenal1)
The name of the teams are called by a variable on the strAwayTeam or the strHomeTeam placed in my switch condition (none of each "echo" contains a 1. It contains only the name of the team). My condition is made like that



I tried a str_replace() and a substr(), each time it remove the name of the team but not the 1 ... as if the 1 was unvisible ...
For example i tried a substr($MyVariable,0,-1) (to remove only the last character) and the display is ... 1 (substr remove PSG)



Posted: 17 Jan 2021 09:47
deleted user
So strange, it is ok now ... the "1" disappear ... with the same code


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