There has been no whatpulse signature images for a while and I kinda miss mine. So I made up this little PHP script with thanks to Adaera, us3rX and nn (on ##php irc.freenode.net)
[img]http://bluesky.zapto.org/whatpulse/Radarlistener.png[/img]
[s]Working on a "sign-up" thing now. Shouldn't be too hard.[/s]
Done. [url=\"http://bluesky.zapto.org/whatpulse/register.php\"]http://bluesky.zapto.org/whatpulse/register.php[/url]. Should work as long as that's your ID and the webapi is enabled.
Whatpulse Images
Moderators: Moderator, Global Moderator
Whatpulse Images
Last edited by radar on Wed May 11, 2005 10:13 am, edited 1 time in total.
Whatpulse Images
oops! And I should give credits to Josh` because he was the only other member in the WP team that had their WP API enabled! This allowed me to test to see if it would generate signatures for multiple users at once.
Whatpulse Images
There is some interest on the whatpulse forums for this. There is a user called dannybeckett who is offering me his server to use for the images.
I also told someone last night that I would do the whatpulse team image this morning but unfortunately I was too caught up with other stuff to do with the users stuff.
There are some things which I have added. Like:
» If you aren't in a team the generated image is ~175px wide. If you are then it will make it 350px wide for the team stats as well. I will change this later so you can specify if you want the user stats or the team stats showing.
» Changed the code that is used to create the border around the outside. I was stupid enough to do something like:
while ($x[2] < $x[1]) {
setpixel... blah blah
$x[2]++;
}
where $x[2] was the current coord and $x[1] was the total number of x pixels in the image. Again, I will make this customisable, just as the other ones are going to be. With the current code all that will be customisable is the border colour or if you want it to show or not.
» Team stats. Added these in... yesterday? I think it was. It shows your team stats if you are in a team and so on. Again, there will be an option to switch this on/off.
» AvKPS and AvCPS. Self explanatory. Shows the user's AvKPS and AvCPS on the sig. This can also be turned on/off.
» Generator script now fetches colour codes from table. This uses a total of 9 INT fields where each field represents either a red, green or blue integer for the 3 different colours used.
Any ideas/suggestions?
I also told someone last night that I would do the whatpulse team image this morning but unfortunately I was too caught up with other stuff to do with the users stuff.
There are some things which I have added. Like:
» If you aren't in a team the generated image is ~175px wide. If you are then it will make it 350px wide for the team stats as well. I will change this later so you can specify if you want the user stats or the team stats showing.
» Changed the code that is used to create the border around the outside. I was stupid enough to do something like:
while ($x[2] < $x[1]) {
setpixel... blah blah
$x[2]++;
}
where $x[2] was the current coord and $x[1] was the total number of x pixels in the image. Again, I will make this customisable, just as the other ones are going to be. With the current code all that will be customisable is the border colour or if you want it to show or not.
» Team stats. Added these in... yesterday? I think it was. It shows your team stats if you are in a team and so on. Again, there will be an option to switch this on/off.
» AvKPS and AvCPS. Self explanatory. Shows the user's AvKPS and AvCPS on the sig. This can also be turned on/off.
» Generator script now fetches colour codes from table. This uses a total of 9 INT fields where each field represents either a red, green or blue integer for the 3 different colours used.
Any ideas/suggestions?
Whatpulse Images
I need help!
How can I parse a file 255 bytes at a time?
How can I parse a file 255 bytes at a time?
