Avatars
Sunny
Posts: 9296
Reputation: 456

Message # 1 | 9:55 AM
Quote
An avatar is a computer user's representation of himself/herself or alter ego, whether in the form of a three-dimensional model used in computer games, a two-dimensional icon (picture) used on Internet forums and other communities, or a text construct found on early systems such as MUDs. It is an “object” representing the embodiment of the user.


http://en.wikipedia.org/wiki/Avatar_ (computing)


An avatar reflects user’s personality so when choosing an avatar remember: it will influence the way other users will see you. Some avatars can provoke irritation or rejection, and most people will transfer these emotions on the attitude towards you. So, there are some recommendations:

1. Your avatar must not be too big. The size of more than 150х150 px often corrupts forum design. Optimal size is 100х100.

2. Your avatar must not weigh much, because one forum page may turn to be quite expensive for some users. Optimal weight is 5-10 Kbyte.

3. If your avatar is animated it must not flicker too often. If it is not animated it must not be a mishmash of bright colors.

4. Avoid dirty inscriptions on avatars. Some users think it’s cool but it only shows your childishness and immaturity.

5. Avoid sexual images. If you are not a member of adult forum then this only means that you have problems with sex.


When registering a user can choose an avatar out of more than 20 default sets. If website administrator allowed Users group to Upload own avatars in user group settings, then you can set an avatar from your computer. You can also change max size of uploaded avatars. E.g.:

Maximal size (Kbytes) for uploaded avatars: 150 Kb
Maximal dimensions (Pixels) for uploaded avatars: 140x140Px

In the Control Panel in Users – Avatar Management (Main » Users » Avatars) you can select the default sets from which users will be able to choose their avatars. To disable a set (sets) remove the corresponding checkmarks.



You can also create your own avatar collections. Just follow the steps below:

  • Create a folder named "ava" in the File Manager (letters in low case).
  • Upload folders with avatars to the "ava" folder by means of any FTP client (a separate folder for each set). A set must contain not more than 100 avatars.

Your collections will have the names "Collection 1", "Collection 2", "Collection 3" and so on. You can’t give your own names to the collections.


Quote
How can I do so that Guests have definite avatars in forum (e.g. an image with the inscription "Guest").


Code
<?if($USER_AVATAR_URL$)?><IMG SRC="$USER_AVATAR_URL$" BORDER="0"><?else?> <IMG SRC="/noavatar.gif" BORDER="0"> <?endif?>


Example of a personal block with avatars:

Code

<table border="0" cellpadding="2" cellspacing="1" width="194" style="background-color: #F6A37B;">
<tr><td style="background-image:url('http://s101.ucoz.net/t/161/7.gif'); background-color:#FFC5A9; height: 25px; color:#CC5D28; padding-left:25px;"><b>Personal data</b></td></tr>
<tr><td align="center" style="background:#FFFAF8;padding:7px;">
<?if($LOGIN_FORM$)?>
Welcome, Guest!
<div> </div>
<IMG SRC="http://bridog.co.cc/ava1.gif" BORDER="0">
<div> </div>
$LOGIN_FORM$
<?else?>

<?if($USER_LOGGED_IN$)?>
Welcome, $USERNAME$!
<div> </div>
<?if($USER_AVATAR_URL$)?><IMG SRC="$USER_AVATAR_URL$" BORDER="0">
<?else?> <IMG SRC="http://bridog.co.cc/ava2.gif" BORDER="0"> <?endif?>
<div> </div>
<a href="$PERSONAL_PAGE_LINK$" title="My profile">My profile</a>
<div> </div>
<a href="$LOGOUT_LINK$" title="Log out">Log out</a>
<?endif?>
<?endif?>
</td></tr>
</table>


Here is how it looks:

For a Guest:



For users with avatars:



For users without avatars:






How to display user's avatar in an entry: http://forum.ucoz.com/forum/7-3388-95072-16-1347889854

I'm not active on the forum anymore. Please contact other forum staff.
EmilyFay
Posts: 2
Reputation: 0

Message # 31 | 4:14 AM
I want default avatars for users to appear on their profile pages. I used the information in the above threads, but they never appeared on the profile pages. How can I do this?
Again, I apologize for this thread, and thank anyone in advance who can help me.
Bengaltiger
Posts: 57
Reputation: 1

Message # 32 | 7:51 PM
Please give me the full qoute for "forum for adding comments"
i want to set different avatar for those who don't have an avatar or didn't select an avatar
and i want to do the same thing in their profiles...plz help me!!!
ThanKz
Armaros
Posts: 1424

Message # 33 | 11:15 PM
CP -> Customize Design -> Users -> User personal page

Quote (Find this code)
<?if($_AVATAR$)?>$_AVATAR$<br /><br /><?endif?>

Quote (Replace code above with this)
<?if($_AVATAR$)?>$_AVATAR$<?else?><img src="Image URL" border"0"><?endif?><br>
Armaros
Posts: 1424

Message # 34 | 11:24 PM
Bengaltiger, that's the same thing what I asked you. A default avatar
on forum and user profiles pages for those who didn't select avatar. I
did explain for users personal pages in this thread. As for forum, similar:

CP -> Customize Design -> Forum -> Appearance of entries

Quote (Find this code)
<?if($AVATAR_URL$)?><img title="$USERNAME$" class="userAvatar" border="0" src="$AVATAR_URL$"><?endif?>

Quote (Replace code above with this)
<?if($AVATAR_URL$)?><img title="$USERNAME$" class="userAvatar" border="0" src="$AVATAR_URL$"><?else?><img src="Image URL" border"0"><?endif?>

If you meant something else, then I have no idea what you meant.

Mich
Posts: 57
Reputation: 2

Message # 35 | 7:25 PM
Quote (Sunny)
<table border="0" cellpadding="2" cellspacing="1" width="194" style="background-color: #F6A37B;">
<tr><td style="background-image:url('http://s101.ucoz.net/t/161/7.gif'); background-color:#FFC5A9; height: 25px; color:#CC5D28; padding-left:25px;"><b>Personal data</b></td></tr>
<tr><td align="center" style="background:#FFFAF8;padding:7px;">
<?if($LOGIN_FORM$)?>
Welcome, Guest!
<div> </div>
<IMG SRC="http://bridog.co.cc/ava1.gif" BORDER="0">
<div> </div>
$LOGIN_FORM$
<?else?>

<?if($USER_LOGGED_IN$)?>
Welcome, $USERNAME$!
<div> </div>
<?if($USER_AVATAR_URL$)?><IMG SRC="$USER_AVATAR_URL$" BORDER="0">

Where am i ment to put this?


Better known as Mr_Smith or Chris-Erik Fotland.
Armaros
Posts: 1424

Message # 36 | 7:43 PM
Quote (Mich)
Where am i ment to put this?
Nowhere. Use builder to insert image code.
PurpleBisch
Posts: 22
Reputation: 0

Message # 37 | 7:49 PM
If a person who registered didn't choose an avatar, how can they choose it after registration? or change their avatar?
Armaros
Posts: 1424

Message # 38 | 9:11 PM
Quote (PurpleBisch)
sorry sunny. but umm not the default avatar, like if a person who registered didnt choose an avatar, how can they choose it after registration? or change their avatar?
In their profiles...
Mich
Posts: 57
Reputation: 2

Message # 39 | 4:38 PM
I put it on: Customize design -> Users -> User login form.

I then put in following code showed in first post. Then i get this message:

One or more conditional operators (<?if?>) are not closed


Better known as Mr_Smith or Chris-Erik Fotland.
Armaros
Posts: 1424

Message # 40 | 6:35 PM
Mich, why you put it on Users login form?

It's a page which displays login in the middle. Tutorial is for Profile Page in
block/box. Provide whole page code so I can see what you're doing wrong.
It's pretty hard to suggest something without knowing, what you took and
what you're doing, because you, yourself, can't describe this all well enough.

Mich
Posts: 57
Reputation: 2

Message # 41 | 7:07 PM
I used following code:

Code
<table border="0" cellpadding="2" cellspacing="1" width="194" style="background-color: #F6A37B;">
<tr><td style="background-image:url('http://s101.ucoz.net/t/161/7.gif'); background-color:#FFC5A9; height: 25px; color:#CC5D28; padding-left:25px;"><b>Personal data</b></td></tr>
<tr><td align="center" style="background:#FFFAF8;padding:7px;">
<?if($LOGIN_FORM$)?>
Welcome, Guest!
<div> </div>
<IMG SRC="http://bridog.co.cc/ava1.gif" BORDER="0">
<div> </div>
$LOGIN_FORM$
<?else?>

<?if($USER_LOGGED_IN$)?>
Welcome, $USERNAME$!
<div> </div>
<?if($USER_AVATAR_URL$)?><IMG SRC="$USER_AVATAR_URL$" BORDER="0">
<?else?> <IMG SRC="http://bridog.co.cc/ava2.gif" BORDER="0"> <?endif?>
<div> </div>
<a href="$PERSONAL_PAGE_LINK$" title="My profile">My profile</a>
<div> </div>
<a href="$LOGOUT_LINK$" title="Log out">Log out</a>
<?endif?>
<?endif?>
</td></tr>
</table>

Added (2009-04-17, 1:07 Pm)
---------------------------------------------
I found out, i need to edit it to fit my design, but i dunno where to put it..


Better known as Mr_Smith or Chris-Erik Fotland.
kostova
Posts: 97
Reputation: 9

Message # 42 | 9:20 PM
I had a topic before about this, and I found out that if you've used your own image(static image) instead of the avatar list available then the <?if($USER_AVATAR_URL$)?><img src="$USER_AVATAR_URL$"><?endif?> won't output that image.
Is there anyway to do this? :S
ps: I'm not talking about using default avatars.
Armaros
Posts: 1424

Message # 43 | 10:24 PM
Quote (heysupp)
I'm not talking about using default avatars.
Then what?
Sunny
Posts: 9296
Reputation: 456

Message # 44 | 11:12 AM
heysupp, where are you trying to paste it? In which template?
I'm not active on the forum anymore. Please contact other forum staff.
Rezwan73
Posts: 58
Reputation: -1

Message # 45 | 9:15 AM
I have not found my ans in this post. so i'm asking it again here,

I wanted to show the avatar of the user who has post a blog entry in his posted blog. Means, anyone can see the avatar of the user who has added that post. is it possible? i was trying to do so. But was enable.

when i use this code, it shows the avatar of the user who is visiting the site or viewing the post.

Quote
<?if($USER_AVATAR_URL$)?><a href="$PROFILE_URL$" title="$USERNAME$"><img align="left" src="$USER_AVATAR_URL$" width="80" border="0"></a><?endif?>

In forum we can see the avatar of the user who has made a post. But is it be done in blog.
what to do?

please help me.


Search: