Advanced

Change History

New api methods will be announced here. Changes in our data that is relevant to checkers scripts/tags will also be announced here.

Message: Re: Attributes part 2

Changed By: travelingGeek
Change Date: September 02, 2020 06:45AM

Re: Attributes part 2
So for those that are still using old school arrays for the attributes... to save you some typing, here's what you need to add:

[code]
[69] = "Bonus cache",
[70] = "Power trail",
[71] = "Challenge cache",
[72] = "Geocaching.com solution checker",

[69] = "https://www.geocaching.com/images/attributes/bonuscache-yes.png",
[70] = "https://www.geocaching.com/images/attributes/powertrail-yes.png",
[71] = "https://www.geocaching.com/images/attributes/challengecache-yes.png",
[72] = "https://www.geocaching.com/images/attributes/hqsolutionchecker-yes.png",
^
|
IGNORE THE SEMICOLONS.
they are being inserted by the fourm software.


[/code]


Note the -yes on the end of the name that Magma posted.

I'm sure using GetAttributeList() will yield better results, but there is old code out there.
Changed By: travelingGeek
Change Date: September 02, 2020 06:39AM

Re: Attributes part 2
So for those that are still using old school arrays for the attributes... to save you some typing, here's what you need to add:

[code]
[69] = "Bonus cache",
[70] = "Power trail",
[71] = "Challenge cache",
[72] = "Geocaching.com solution checker",

[69] = "https://www.geocaching.com/images/attributes/bonuscache-yes.png",
[70] = "https://www.geocaching.com/images/attributes/powertrail-yes.png",
[71] = "https://www.geocaching.com/images/attributes/challengecache-yes.png",
[72] = "https://www.geocaching.com/images/attributes/hqsolutionchecker-yes.png",
[/code]


Note the -yes on the end of the name that Magma posted.

I'm sure using GetAttributeList() will yield better results, but there is old code out there.

Original Message

Author: travelingGeek
Date: September 02, 2020 06:03AM

Re: Attributes part 2
So for those that are still using old school arrays for the attributes... to save you some typing, here's what you need to add:

[69] = "Bonus cache",
[70] = "Power trail",
[71] = "Challenge cache",
[72] = "Geocaching.com solution checker",

[69] = "https://www.geocaching.com/images/attributes/bonuscache-yes.png",
[70] = "https://www.geocaching.com/images/attributes/powertrail-yes.png",
[71] = "https://www.geocaching.com/images/attributes/challengecache-yes.png",
[72] = "https://www.geocaching.com/images/attributes/hqsolutionchecker-yes.png",

Note the -yes on the end of the name that Magma posted.

I'm sure using GetAttributeList() will yield better results, but there is old code out there.