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.
jackass
Posts: 294
Reputation: 10

Message # 16 | 9:23 AM
Code
<?if($USER_AVATAR_URL$)?><img alt="" src="$USER_AVATAR_URL$" align="left" border="0" width="110" height="110"><?else?><img alt="" src="YOUR_DEFOLT_AVATAR_LINK" align="left" border="0" height="110" width="110"><?endif?>

and in forum

Main » Customize design » Editing templates » Forum » Appearance of entries

Code
<?if($AVATAR_URL$)?><img title="$USERNAME$" class="userAvatar" src="$AVATAR_URL$" border="0"><?else?><img alt="" src="AVATAR LINK" align="" border="0" height="80" width="80"><?endif?>
Post edited by jackass - Friday, 2008-12-12, 7:56 PM
endy
Posts: 3
Reputation: 1

Message # 17 | 9:24 AM
jackass, when to place this code?
Post edited by endy - Sunday, 2008-12-14, 7:42 AM
jackass
Posts: 294
Reputation: 10

Message # 18 | 9:24 AM
Main » Customize Design » Editing templates >> Comments appearance

Here is the full code, just don't forget to change that link for default avatar:

Code
<table class="$CLASS$" border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td style="width: 110px; text-align: left; vertical-align: top; letter-spacing: 0pt; word-spacing: 0pt;" valign="top"><?if($USER_AVATAR_URL$)?><img alt="" src="$USER_AVATAR_URL$" align="" border="0" height="110" width="110"><?else?><img alt="" src="AVATAR_URL_HERE" align="" border="0" height="110" width="110"><?endif?><br></td><td style="padding: 3px; text-align: left; vertical-align: top; letter-spacing: 0pt; word-spacing: 0pt;">
<div class="cDate" style="float: right;"><span title="$TIME$">$DATE$</span> $MODER_PANEL$</div>
<div class="cTop" style="text-align: left;"><span style="width: 18px;"><b>$NUMBER$</b>.</span> <b>$NAME$</b>
<?if($USERNAME$)?>(<a href="$PROFILE_URL$">$USERNAME$</a>)<?endif?>
<?if($EMAIL$)?><?endif?>
<?if($SITE$)?><?endif?> <!--ENDIF-->
</div>
<div class="cMessage" style="text-align: left; clear: both; padding-top: 2px; padding-bottom: 2px;">$MESSAGE$</div>
<?if($ANSWER$)?><div class="cAnswer" style="text-align: left; clear: both;"><b>Answer</b>: $ANSWER$</div><?endif?>
</td></tr></tbody></table><br>
fakeros
Posts: 58
Reputation: 13

Message # 19 | 7:25 AM
I create a new informer for displaying information of New user in global block.
the code of informer is
Code
<li><a href="$PROFILE_URL$">$USERNAME$</a></li>

so what i do to display user with avatar in global block. smile

I m back on track...
iLee
Posts: 111
Reputation: 0

Message # 20 | 8:34 AM
To put the avatar in you need to add this
Quote

<img src="$AVATAR_URL$" height="60" width="60">

Use your brain before you post ~Lee
Please use search, ~Lee
fakeros
Posts: 58
Reputation: 13

Message # 21 | 1:48 PM
Thanks ilee ! its working! but plz also tell me if some users not select avatar feature then how to display default avatar of those avatar in new users of global block.
I m back on track...
iLee
Posts: 111
Reputation: 0

Message # 22 | 9:52 PM
Quote
<?if($AVATAR_URL$)?><img src="$AVATAR_URL$" height="60" width="60"><?else?><img src="Link to default avatar" height="60" width="60"><?endif?>

Use your brain before you post ~Lee
Please use search, ~Lee
Post edited by iLee - Monday, 2009-03-09, 9:53 PM
Asifnur
Posts: 18
Reputation: -1

Message # 23 | 2:47 AM
i wanna know how can i select a default avatar for the users who never chose a avatar?

thanks happy

Armaros
Posts: 1424

Message # 24 | 2:58 AM
CP -> Customize Design -> Forum -> Appearance of entries

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

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

Red - The added code.

esp-css
Posts: 35
Reputation: 0

Message # 25 | 4:55 AM
The members on my site seem to be having problems about ucoz not acknowledging that their avatars are smaller than 140x140kb and 200 kb big. I tested this out myself, and it also wouldnt work for me, is this part of ucoz still not working?
Would be great to get an answer back soon smile
Thanks!
Sunny
Posts: 9296
Reputation: 456

Message # 26 | 12:24 PM
esp-css, make sure you haven't set other dimensions in Users module settings. And make sure that "avatar uploading" option is enabled.
I'm not active on the forum anymore. Please contact other forum staff.
esp-css
Posts: 35
Reputation: 0

Message # 27 | 4:58 PM
its enabled, and the dimensions are the the 200kb and the 140x140 as said above. Any other ideas?
Sunny
Posts: 9296
Reputation: 456

Message # 28 | 10:32 AM
esp-css, what's your website url? I guess it might be a bug.
I'm not active on the forum anymore. Please contact other forum staff.
esp-css
Posts: 35
Reputation: 0

Message # 29 | 10:04 PM
www.esp-css.clan.su

(at the same time could you just check something for me, no matter what skin I apply, i cannot edit the CSS file because if i enter it and press save, the entire structure is lost, even if nothing is edited)

Thanks!

Post edited by esp-css - Tuesday, 2009-04-07, 10:06 PM
Sunny
Posts: 9296
Reputation: 456

Message # 30 | 9:45 AM
esp-css, don't see any problems with avatars - I tested and it loads fine. I suggest that you and your users try to use another browser, check your firewall, antivirus.
I'm not active on the forum anymore. Please contact other forum staff.
uCoz Community » uCoz Modules » Site Users » Avatars
Search: