- Iggyhopper
- |
- Exalted Mythic Member
AV=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif
BG=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif
Posted by: Karl2177
Posted by: ApocalypeX
Fixed the Average post per day script as they changed the pages from 12 to 6. I was wondering why mine doubled.
I think this is correct.
Request.open("get", "http://www.bungie.net/Search/default.aspx?q=" + UserName + "&g=5&SR-p=12", true);
Request.onreadystatechange = function()
Shouldn't that be 6? It will keep looking for p=12, and it doesn't exist (anymore).I made it 12 because the maximum amount of posts from the search is 300, the number of results per page is 25, and 12*25 = 300.
If the page is 12, and the user doesn't have 12 pages of posts, it will go to the last page, which conveniently gives me the post date of the last post in the results.
Adam's Results
All I really need is, "Returned [X] results for [N] in 0 seconds.", and also the last post date, which I explained above.
Either your version is borked or something is wrong.
[Edited on 12.08.2009 4:20 PM PST]