Jump to content


Welcome to DevFuse Forums


Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
 
Guest Message by DevFuse

Tutorial info Visit support topic

  • Added on: Jun 26 2010 05:05 AM
  • Views: 2737
 


Adding custom avatars

Quick guide on how to add custom avatars for your members to choose from

Posted by AndyF on Jun 26 2010 05:05 AM
It's quite easy to add custom avatars to your board for your members to choose from. I will explain in this simple tutorial how to do this.

Firstly, collect the avatars you wish to add (.gif, .jpg and .png are suitable, do not use .bmp) and put them into a folder each on your desktop. Name each folder appropriately. It's best not to put more than about 20 to 30 into each folder. You can name the avatars numerically or however you wish. Obviously you cannot have two with the same name in the same folder.

Posted Image

Remember you cannot use a space in the folder name. If you wish to have a space use an underscore, so for example "cats and dogs" becomes "cats_and_dogs", the underscore will not show on your board.

Connect via FTP. Look inside /public/style_avatars. By default it will look something like this:

Posted Image

The images that are just in that directory are the ones in the "Base Gallery" , you can also see the two default avatar directories present here too. You can remove those if you wish to.

Download the index.htm file you see and place a copy of it into each folder you have created on your desktop. You can see here I have added the index.htm file into the the 'dice' folder I made. Adding this file will prevent the directory being listed if someone visits it directly, and is a sensible measure to take.

Posted Image

Simply upload your newly created folders into /public/style_avatars now. The permissions should be OK, but if in doubt ensure the directories you uploaded are 755 and the avatars themselves are 644.

You can see from my example, I have simply added my new folders to the existing ones:

Posted Image

Which results in the folders being listed:

Posted Image

And finally the avatars themselves:

Posted Image

Powered by Tutorials 1.5.1 © 2016, by Michael McCune