uCoz Community » uCoz Modules » Site Users » Avatars
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.
Natashko
Posts: 3366
Reputation: 171

Message # 121 | 9:00 AM
Susmoy,
Quote (Susmoy)
Bro I am sorry to say, This code is not working , When I put this code It shows No avatar for those users who have chosen avatars...I hope you understand me..Please Help Bro..

Go to CP » Customize Design » User personal page and find this code
Code
<?if($_AVATAR$)?>$_AVATAR$

<?endif?>

then replace it with this code:
Code
<?if($_AVATAR$)?>$_AVATAR$

<?else?><img src="NOAVATAR-IMAGE-URL" /><br/><br/><?endif?>
Susmoy
Posts: 185
Reputation: 6

Message # 122 | 1:39 PM
Natashko, Thanks Ma'am . Code 100% Works
If I Help you then Please +Rep and Awards
Blazer
Posts: 310
Reputation: 25

Message # 123 | 3:41 PM
Edit: i am sorry, i found something wrong with my code...
If i helped you + My Reputation and Give me an Award.
Post edited by Blazer - Wednesday, 2011-06-29, 1:56 AM
Susmoy
Posts: 185
Reputation: 6

Message # 124 | 4:19 PM
Blazer, Okay..But Thanks
If I Help you then Please +Rep and Awards
CodeResolution
Posts: 1570
Reputation: 58

Message # 125 | 7:15 PM
Susmoy, just pointing out. When you used Blazer's code, did replace the following with the link to the image?
Code
NO_AVATAR_URL


That should work. If not, it may be because you edited the CSS class.

Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Susmoy
Posts: 185
Reputation: 6

Message # 126 | 7:17 PM
CreativeCollusions, Well, Sir No Matter now because Natashko's Code all ready worked and Thanks To Blazer Too and you too
If I Help you then Please +Rep and Awards
Dian
Posts: 5
Reputation: 0

Message # 127 | 12:20 PM
i want to display all avatar of my users in 1 page how?
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 128 | 3:21 PM
Dian, you could achieve this outcome through using an informer or an alternative is to have the avatar viewable on the members list and display 100 members per page. Another way you could achieve this outcome is through opening Control Panel > Users > User list. smile

Hope this helps, happy

Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
Natashko
Posts: 3366
Reputation: 171

Message # 129 | 12:54 PM
Dian,
Quote (Dian)
i want to display all avatar of my users in 1 page how?

I do not think it can be done by means of any system solutions, but with scripts only. Unfortunately, we do not provide help with custom coding.
Informers might help you however. The maximum amount of entries that 1 informer may output is 300 (300/1 time)
Shinu
Posts: 6
Reputation: 0

Message # 130 | 3:27 AM
I've seen some sites do it, have a border around all user avatars any idea how i would do this?

Thanks in advance.
Zevoxa
Posts: 237
Reputation: 4

Message # 131 | 5:20 AM
Shinu, please provide a screen-shot indicating what you mean.

Thanks.

I would prefer if you called me ErraticFox. ^_^
Shinu
Posts: 6
Reputation: 0

Message # 132 | 5:50 AM
Oh, alright.

Well as you can see right now my avatar takes whatever shape it was intended to be, but on a certain forum all avatars are surrounded by a border.

Here's a example picture. http://neuropod.net/imagehost/uploads/4e6d050faf8ad0b843d3b24eb7730e0f.PNG Forgive the link, it seems i can't link image codes here.
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 133 | 7:11 AM
Shinu, the use of [img] and [url] codes is restricted for new users. As for your problem this can be achieved through the use of custom coding. We do not provide support with that here but there is a tutorial to gain your desired effect at this link: http://ucause.ucoz.com/forum/21-463-1

Hope this helps, happy

Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
Shinu
Posts: 6
Reputation: 0

Message # 134 | 11:58 PM
Hello, i was wondering if there was a way to automatically shrink down avatars to a certain size?

Zetaboards has a feature somewhat similar in which bigger avatars were shrunk down to whatever the size limit was.

Thanks in advance.
Post edited by Shinu - Tuesday, 2011-08-23, 1:53 AM
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 135 | 3:37 AM
Shinu, this can be done by using the $AVATAR_URL$ code in the following circumstance;

Quote
<img src="$AVATAR_URL$" height="?" width="?">


Hope this helps, happy

Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
uCoz Community » uCoz Modules » Site Users » Avatars
Search: