
01-29-2006, 08:48 PM
|
|
|
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
HOW TO: Editing the Dynamic Image
You may be wondering how you edit the included Dynamic image in this hack. Here is a simple how to, to do it.
OPEN: images/toplist/buttons/dynamic/image.png
FIND:
PHP Code:
chdir('/home/derek/public_html/vbtest');
You need to change '/home/derek/public_html/vbtest' to the path to your forum. Make sure it looks like that though.
Next, if you want to change the background image, simply make a png image and overwrite background.png with it.
If you want to change the color of the text in the dynamic image, you would edit this line:
PHP Code:
$color = imagecolorallocate($image, 0, 0, 255);
0, 0, 255 are the RGB values for the colors. You need to change them to the color you want, the current one is blue.
Now scroll to the bottom until you find a line like this:
PHP Code:
imagestring($image, $font, 44, 28, $rank, $color);
For each of those lines, you will need to change the 2 numbers so that each each thing is aligned with the right part of the image. See my included dynamic image as an example. The first number is the x value, and the second one is the y value.
I hope this little how to helps you edit your image better, sorry if it's kind of confusing.
Derek
|