please be sure to download and install the CLIENT version, which i have linked you to.
follow the installers instructions to install filezilla ftp client
setting up filezilla to upload files to your host -
click on the open site manager button
1. click on new site
2. enter the name of your host. its the url that you would use to link to your site.
-i use www.startlogic.com but mine site name is legendkpr.startlogic.com. so i would use my site url.
-you can leave the port blank. it may cause problems if you dont know what port your hosts server uses
3. use ftp - file transfer protocol
4. use standard login.
5. this is where youre username goes. the name you use to login to your host.
6. password. same as the password you use to login to your host.
you can now click ok, and connect to your host. if you followed the steps correctly it should show a bunch of text and information while its connecting and then show the directories of your computer and youre webhost.
local files are your computers files and remote files are your hosts files.
STEP 2 - setup directories
create a folder and call it something like randomavatar (thats what i am using in this article)
inside this folder, create another folder called images (thats what i am using in this article)
STEP 3 - add images
inside the images folder, put all the images you want named with numbers from 0.
for example: 0.jpg , 1.jpg , 2.jpg , 3.jpg
(please note that all the images must be of the same file extension and that because the script is case sensative that the extensoins are all in lowercase)
because i wrote this script myself it supports any number of images so add as many as you want. just be sure they are in sequential order and no numbers are repeated and no numbers are skipped.
in the future i will write a script that allows for variable types of images, jpg gif png etc.
STEP 4 - the php script
the script is suprisingly the easiest part here
open up notepad++ and paste the following script.
save this script as randomavatarscript.php and put it in the randomavatar folder.
of course replace the first part of the location to the actual name of your host and make sure the url path to randomavatar is correct as well.
if you use .png .gif etc. then replace .jpg with that file extension.
STEP 5
upload the folder to your host. (some hosts wont let you upload folders using an ftp so you will have to create the folders and upload the script and images manually)
in filezilla simply locate your randomavatar folder, navigate to the folder you want to upload it to on your host, right click and select upload.
FINAL!
put the link to the randomavatarscript.php as your avatar instead of an image link and viola! random avatars for all!!
obviously replace 'yourhost' and make sure the url path is correct.
the ?max=5 is for setting how many pictures there are in the images folder. the script randomly pics a number from 0 to max and displays the corresponding image.
set this to the largest numbered image in the images folder to use all of them
if you have an questions or need further help, feel free to pm me.
Are you familiar with problems that may occur when you try to set up a filezilla ftp-server, Cecil? I can't connect to my server via ftp, I'm using filezilla server and client.
To upload things to it, when I can't do it directly, I'm currently using a php script, but it can't be used to upload larger files (things that are not text or images).
When I get home to my apartment I'd like to ask for some help if you think you are up to it.
Oh, and I think this might be to little of an article to help people who don't alread know how to do this... But it was very kind of you to write it anyway, and it shows all the steps needed.
you are using it and it looks fine to me. it doesnt generate a new avatar every time you go to a new page. thats not how the browsers work. you have to refresh the browser.
its workin fine though. nice megaman avatars
although you dont have a 0.PNG image so when it picks 0.PNG it shows a broken image "no avatar". Comment edited by Anti-Cecil on 8/12/2008