BxBoy Posted January 9, 2004 Share Posted January 9, 2004 a couple of people have been asking about the script, so that they can host it themselves.. so here it is. it works right off the bat, but you might want to customize it to your liking.. here's how it would look like (unmodified): here's how it could look like (modified): Requirements: A host/server that supports PHP + GD Image Libaries Enjoy, and feel free to ask any questions. script.php Link to comment Share on other sites More sharing options...
0 Tim Dorr Veteran Posted January 9, 2004 Veteran Share Posted January 9, 2004 Did you base that on my sig source originally? Looks a lot like the format of my code :D (not that I care, mind you :) ) Link to comment Share on other sites More sharing options...
0 BxBoy Posted January 9, 2004 Author Share Posted January 9, 2004 Did you base that on my sig source originally?Looks a lot like the format of my code :D (not that I care, mind you :) ) Nope. But any resemblence is purely coincidental. :) Link to comment Share on other sites More sharing options...
0 snippet1 Posted January 9, 2004 Share Posted January 9, 2004 If only I knew PHP - then I'd be able to make a VBScript generator :/. Anyhoo - can you give some details, I might be able to add that to my list of automation-to-do. Link to comment Share on other sites More sharing options...
0 [ timko ] Posted January 9, 2004 Share Posted January 9, 2004 Thanks for the script BxBoy... I haven't touched PHP since 2001 when I did my own SQL+PHP backed website... ah the good ol' days :) Link to comment Share on other sites More sharing options...
0 Butsy Posted January 9, 2004 Share Posted January 9, 2004 Thx for releasing it, few questions: - Anything need to be chmoded? - Do you need to create uptime.dat or will it fwrite one? - I've uploaded it, changed my UID etc - But it just creates the 500 x 300 PNG saying "Can't write to file". Am I missing something? Edit: n/m - chmoded uptime.dat to 777 and it works. Now to sort out some skins ^_^ Link to comment Share on other sites More sharing options...
0 BxBoy Posted January 10, 2004 Author Share Posted January 10, 2004 If only I knew PHP - then I'd be able to make a VBScript generator :/. Anyhoo - can you give some details, I might be able to add that to my list of automation-to-do. What sort of details do you need? hit me up on MSN. Thanks for the script BxBoy... I haven't touched PHP since 2001 when I did my own SQL+PHP backed website... ah the good ol' days yea, I want to switch to a mySQL database, I think that is more effecient than using files to store the data. :yes: Edit: n/m - chmoded uptime.dat to 777 and it works. Now to sort out some skins ^_^ Looks great. Link to comment Share on other sites More sharing options...
0 Butsy Posted January 10, 2004 Share Posted January 10, 2004 Just making a load babe skins and a rotation script :p Never done much with GD, mind sharing how to make it use a TTF font? Link to comment Share on other sites More sharing options...
0 BxBoy Posted January 10, 2004 Author Share Posted January 10, 2004 Never done much with GD, mind sharing how to make it use a TTF font? sure, replace the imagestring function with the imagettftext function.. example: imagettftext($im, 11, 0, 227, 20, $black, "lucon.ttf", $xml[username]); ^^^ imagettftext(image, font size, angle, x-coor, y-coor, color, font file, variable/string/text) Link to comment Share on other sites More sharing options...
0 Butsy Posted January 10, 2004 Share Posted January 10, 2004 Brilliant, thanks :] Link to comment Share on other sites More sharing options...
0 [ timko ] Posted January 10, 2004 Share Posted January 10, 2004 Brilliant, thanks :] Plus you're gonna need the actual ttf file in the same folder as the script itself (or at least reference to the folder containing it) :) Link to comment Share on other sites More sharing options...
0 Butsy Posted January 10, 2004 Share Posted January 10, 2004 Yah, got it covered - Working on a small control panel to change fonts/data coords etc :) Link to comment Share on other sites More sharing options...
0 [ timko ] Posted January 10, 2004 Share Posted January 10, 2004 Just a starter for me at the moment, only integrated it into my current RigSig in the bottom right hand corner :) Link to comment Share on other sites More sharing options...
0 [ timko ] Posted January 10, 2004 Share Posted January 10, 2004 Got it on random between the MacOS Panther and Reluna Olive now (may need to do a force refresh [ CTRL + F5 ] on the thread before you see the change) Link to comment Share on other sites More sharing options...
0 Butsy Posted January 29, 2004 Share Posted January 29, 2004 Another quick question - Each time it's called, does it try to get new data? I noticed it killed alot of my bandwidth so I was just wondering :) Link to comment Share on other sites More sharing options...
0 mikey Posted January 29, 2004 Share Posted January 29, 2004 i think it uses like 200 bytes of bandwidth because it gets it from a cache... Link to comment Share on other sites More sharing options...
0 matt74441 Posted January 29, 2004 Share Posted January 29, 2004 I know the question was answered above, but how do I change the font? I want to use Verdana, the same as in my sig. Link to comment Share on other sites More sharing options...
0 uniacid Posted February 2, 2004 Share Posted February 2, 2004 heres how I did it on my custom script imagettftext($im, 7.3, 0, 190, 30, $black, "fonts/dungeon.TTF", date("M j h:i:s A")); Link to comment Share on other sites More sharing options...
Question
BxBoy
a couple of people have been asking about the script, so that they can host it themselves.. so here it is.
it works right off the bat, but you might want to customize it to your liking..
here's how it would look like (unmodified):
here's how it could look like (modified):
Requirements:
A host/server that supports PHP + GD Image Libaries
Enjoy, and feel free to ask any questions.
script.php
Link to comment
Share on other sites
17 answers to this question
Recommended Posts