Trash / Gunoi > Tutorial pentru Avatar

You are in:  Forums / Trash / Gunoi / Tutorial pentru Avatar
Locked
Deluser
Posted at 2009-04-19 20:35:55 (853 wks ago)
Deleted Account



Posts: 75
Location:


Tutorial pentru Avatar

# Step 1) First, you need a webhost that supports PHP & allows hotlinking, like  http://www.100webspace.com/
# Step 2) Then log in to your FTP account. You will need an FTP client. (I found a site that did not require a FTP client. I was able to upload the php into the directory)
# Step 3) Create a new directory (not necessary)
# Step 4) Download this zip file, extract it, and you will get a .php file hxtp://automaticlabs.com/downloads/rotator.zip (This is the php file you will create from the information below)
# Step 5) Then upload the .php file to the directory where your pictures will be.
# Step 6) Then upload all the pictures you have to that same directory
# Step 7) Then make the url to the .php file as your avatar URL



INFO IN PHP FILE

Quote:
0) {
$imageNumber = time() % count($fileList);
$img = $folder.$fileList[$imageNumber];
}
}

if ($img!=null) {
$imageInfo = pathinfo($img);
$contentType = 'Content-type: '.$extList[ $imageInfo['extension'] ];
header ($contentType);
readfile($img);
} else {
if ( function_exists('imagecreate') ) {
header ("Content-type: image/png";
$im = @imagecreate (100, 100)
or die ("Cannot initialize new GD image stream";
$background_color = imagecolorallocate ($im, 255, 255, 255);
$text_color = imagecolorallocate ($im, 0,0,0);
imagestring ($im, 2, 5, 5,  "IMAGE ERROR", $text_color);
imagepng ($im);
imagedestroy($im);
}
}



FORUMS_REPORT_POST FORUMS_GOTO_TOP_PAGE
0 0  

<< Prev  1   Next >>

Locked
FORUMS_TOPIC_LOCKED

Online Since 10.09.2011 - 2025 | XTR: Android APP | Donate: BTC ETH CRYPTO
Ora:(
  • :
  • :
)