[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 1014: Undefined array key 3 [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 1014: Undefined array key 3 [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 1014: Undefined array key 3 [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 1014: Undefined array key 3 [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 1014: Undefined array key 3 Remote User Stats [DONE] - AniDB
Okay guys heres my idea. I'v always liked the idea of being able to slap your stats on a forum lets say, or a webpage and let people view your stats easly & automaticly. I'v recently created a image generator in PHP that lets me have the stats directly from an exported mylist. Even tho it only works with the lightgray template ATM, It's a simple script. Would it be possible to implant a image like the one I created (Example below), or make a XML generator for the stats, or both. It will include your username, userid (optional), animes, files, size, watched, ECT. Pretty much what !mystats says.
i will not generate such images, it would put too much load on the server.
however i could implement some easy way to query for the stats data you need.
hmm, if you'd do some heavy caching on the images (like render only once a day; otherwise send the prerendered one) then it would only generate some traffic but not much cpu- or db-load.
Some way to get the data sounds good. Cause then I could use a conjob to pick up the data once every cuple of hours, and re-generate the pic on my server. Sounds good to me. =)
kidan wrote:hmm, if you'd do some heavy caching on the images (like render only once a day; otherwise send the prerendered one) then it would only generate some traffic but not much cpu- or db-load.
that's true, but it would take some time to generate all those images, even if it's done only once a day.
and the generated traffic could easily become quite a large amount. Just think about 100-1000 anidb users posting in a couple of heavily used forums.
EXP, This will possibly be implicated right? It dosnt seem to be too hard to throw XML or a CSV Delemeted text onto a page that can use the same data as the mypage, and have PHP connect to it from my server connect and use it to create the pic once every 24 hours?
Elberet wrote:*/me agrees.*
I'm a Windows user too, but there are things I'd rather automate with a cronjob on the Linux box...
Note that the pic is created locally, by my (KnightAR's) computer rather then the AniDB server, it just needs the animes/eps/files/size summary info from the mypage in a form that is easier parseable, i.e. a csv blob or XML file - less then 200 bytes of text.
Forcing the usage of a client application is unreasonable in this case, and wouldn't there quite a lot of overhead, too?
Exactly. Even if someone doesn't want to script it. I'v already got a script partly made that can be used. It uses the catch image and the modified date to know the time it should update the stats, and regenerate the image.