Hello guys!
I stumble across your JSON feed for badgechecklist, and realized that this was my chance to make my own badge comparison between my characters, and I just LOVE the feed guys.
The problem is, it doesn't validate for my low life hero toons, and using an online validation thingy, I think i found the problem. There seem to be a line break in the ingame_text property in the Gatekeeper badge (peregrine island safeguard) at the very end, between the last . (dot) and " (double quotes).
Is this something you Titans can fix, so I can tinker on with your marvelous feeds?
Thanks in advance
Quote from: Jacal on December 16, 2009, 12:05:40 PM
... low life hero toons...
I thought that the villians were the low lives... O_o ?
Quote from: Jacal on December 16, 2009, 12:05:40 PM
Hello guys!
I stumble across your JSON feed for badgechecklist, and realized that this was my chance to make my own badge comparison between my characters, and I just LOVE the feed guys.
The problem is, it doesn't validate for my low life hero toons, and using an online validation thingy, I think i found the problem. There seem to be a line break in the ingame_text property in the Gatekeeper badge (peregrine island safeguard) at the very end, between the last . (dot) and " (double quotes).
Is this something you Titans can fix, so I can tinker on with your marvelous feeds?
Thanks in advance
Boo, I thought I had escaped enough characters :-/
I'll have to check later tonight and see what I can do.
Ok, I think I fixed it to work right. Care to give it another go?
Quote from: SaintNicster on December 17, 2009, 06:48:52 AM
Ok, I think I fixed it to work right. Care to give it another go?
And it works like a charm!!!
Thank you for the quick fix, just outstanding work.
If you like to see my end result of you guys excellent work, here's a link to the page:
Badge Compare (http://stroemstad.net/coh/badge_compare.php)
The page takes a bit to load(about 25 seconds), mostly to get the Json feed.
I should probably add some filtering but it will suffice for now :D
Great work guys, thanks a heap.
Jacal
Quote from: Tazhyngarth on December 16, 2009, 02:25:30 PM
I thought that the villians were the low lives... O_o ?
Well even heroes can sink really low:
(https://images.weserv.nl/?url=www.seeing-stars.com%2Flocations%2FHancock%2FBench1.jpg)
Jacal
HAHA! Ya I just watched him in action the other day. Totally forgot about him at the time of my Post.
Quote from: Jacal on December 17, 2009, 08:54:41 AM
And it works like a charm!!!
Thank you for the quick fix, just outstanding work.
If you like to see my end result of you guys excellent work, here's a link to the page:
Badge Compare (http://stroemstad.net/coh/badge_compare.php)
The page takes a bit to load(about 25 seconds), mostly to get the Json feed.
I should probably add some filtering but it will suffice for now :D
Great work guys, thanks a heap.
Jacal
It's good to see this stuff actually being used.
I would ask that you do some type of caching on the JSON feeds, and only load a certain section/category at a time, to help with bandwidth and usage.
Quote from: SaintNicster on December 17, 2009, 02:49:22 PM
It's good to see this stuff actually being used.
I would ask that you do some type of caching on the JSON feeds, and only load a certain section/category at a time, to help with bandwidth and usage.
Can I load just a category of badges from the feed? The only feed i have found, is the badgecheclist feed, which is for all categories.
Right now I do a "get_file_content" in php, with the feed URL as input, so its a one time read per session per toon.
Jacal
Quote from: Jacal on December 17, 2009, 07:53:28 PM
Can I load just a category of badges from the feed? The only feed i have found, is the badgecheclist feed, which is for all categories.
Right now I do a "get_file_content" in php, with the feed URL as input, so its a one time read per session per toon.
Jacal
Currently, no.
Though it could be eased by caching a copy of the JSON file, though. You could load it to your own mysql db, or even just dump it to a local file. After X amount of time (anywhere from 5 minutes to to 24 hours, or longer), or a manual "refresh" click, pull new copies of the files. Just thoughts to toss out there.