
![]() |
![]() |
![]() |
|
|||||||
![]() |
![]() |
|
Welcome to Talk Arcades, the premier forum for arcade webmasters. You are currently viewing our boards as a guest. By joining our community you will be able to make posts, communicate privately with other arcade webmasters and participate in our Live Marketplace. Registration is easy, so please join us today! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#11 (permalink) | ||
|
Contributing Member
Join Date: Jun 2008
Posts: 29
|
Quote:
Quote:
You could of course modify the code to instead generate and save the gamertag to a static file, and only generate them all once a day or something using a cron job. That would save you on processor time throughout the day, but cost you disk space as well as one big chunk of processor time while the cron job is running, not to mention that the tags would not be updated instantly, which I dig. I guess it's really up to you. I don't have so many guests that its affecting me yet, and TBH I consider myself lucky as my day job is at an ISP, so I have a private server for this stuff. It's nothing fancy, but it gets the job done. If the gamertags ever affected the main site where I would have to move them to another box I may, but I doub't the arcade will ever reach that status as I do no advertising at all, lol. FLASHMAN: I'm not sure exactly what you mean, you don't upload anything to a database it just holds information. The database has (or should have) all the user information such as their username and whatnot in it. All this script does is ask the database "Hey! Tell me about this guy!" and the databse sends the script everything it knows about them (all the stored information) and then the script prints it out. Sorry if that description is too dumbed down, I'm used to training people with little to no computer experience, so I have a tendancy to over simplify things... |
||
|
|
|
![]() |
![]() |
|
|
#12 (permalink) |
|
Contributing Member
Join Date: Jun 2008
Posts: 29
|
OK, I've made some changes. Changed the font, and instead of using JPEG, I've switched to PNG and the resulting image is MUCH MUCH cleaner.
Easy to switch as well. If your source images are PNG, change "ImageCreateFromJPEG" to "ImageCreateFromPNG" wherever necessary. To output the final image as a PNG, change the last few lines from: Code:
Code:
|
|
|
|
![]() |
![]() |
|
|
#14 (permalink) | |
|
Contributing Member
Join Date: Jun 2008
Posts: 29
|
Quote:
LOL, most liekly you viewed one of them as I was updating it, as I just finished the updates. Yes I know, it's not a good idea to work on a live server, but it's how I do things ![]() |
|
|
|
|
![]() |
![]() |
|
|
#17 (permalink) | |
|
Contributing Member
Join Date: Jun 2008
Posts: 29
|
Quote:
It's pretty much the same coordinates, just a different font and some added elements. Refer to the first post if you want the basic layout idea, it shouldn't bee too hard to take the blank oine supplied there and draw over it in photoshop. |
|
|
|
|
![]() |
![]() |