• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Design Customization » Custom avatars
Custom avatars
Mark-ucoz-co-uk
Posts: 134
Reputation: 0

Message # 1 | 3:14 AM
I see people can select default avatars and I was wondering custom avatars how might I add some default options for people I remember a post from a while back but I can't seem to find it. What folders do I need to create in file manager to add some?
Check Out Rservices & RandomAndroid at: http://http://www.randomness-fun.com/ Hosted by Ucoz also come come check out our official Android IRC chat room at: http://www.randomness-fun.com/index/rservices_irc_chat/0-34
Gromov
Posts: 616
Reputation: 14

Message # 2 | 8:51 AM
Mark-ucoz-co-uk,

To create a collection of your own, follow the next steps:

1) Create a folder (in case it’s missing) named ava in the File Manager (letters in low case)
2) Create another folder with a random name inside the ava folder
3) Upload your avatars into the folder

Use the file manager or the FTP–client to upload custom avatars.
Each collection must have a separate folder and a name.
joexyz
JOE-vascript
Posts: 1710
Reputation: 75

Message # 3 | 7:11 PM
... and to set up a default avatar (no avatar image), upload the avatar in whatever folder you want and then change the avatar url codes in each template where they are present to something like this:
Code
<?if($USER_AVATAR_URL$)?>
<img src="$USER_AVATAR_URL$" alt="$USERNAME$" />
<?else?>
<img src="/path/to/default-avatar" alt="$USERNAME$" />
<?endif?>


Note: some templates might have $_USER_AVATAR_URL$ and $_USERNAME$ instead.

hey i'm joe and i do not work for the company anymore, sorry for the late replies
icon by ch-chau

I'm still here for some godforsaken reason
uCoz Community » For Webmasters » Design Customization » Custom avatars
  • Page 1 of 1
  • 1
Search: