New messages Members Forum rules Search
  • Page 1 of 1
  • 1
Forum moderator: kostova  
uCoz Support Forum by uCozers » uCoz » Design Customization » Default Avatars (sml[tutorial])
Default Avatars
LeekinzDate: Monday, 2009 August 03, 2:27 PM | Message # 1
Font size: A | A |
Lieutenant colonel
Group: uCozer
Message: 123
[ ]
Offline
Heya uCozers, Here I am going to teach you the couple of basic codes you can use to add in "Default Avatars" into your forum.

First of all, You want to go and make a Default Avatar picture, Im going to use this one.

Right, now that we have the image we will now insert it into the forum,

Go to

CP >> Module Design Customization >> Forum: Appearance of Entries

Now that we are here you need to find this code.

Quote
"$USERNAME$"class="userAvatar" border="0" src="$AVATAR_URL$">

Now I will teach you what it means,

The parts marked in Blue are SRC Tags, they name the picture, add/minus the border that occurs from a link.

The bits marked in Red are the if statements, They ask the server if the user has $AVATAR_URL$, then endif is self explanatory,

Right, the bits you need to change,

Before the add this,

Code
<?else?><img src="/Default.png" border="0" class="userAvatar">

It should then look like this,

Code

<?if($AVATAR_URL$)?><img title="$USERNAME$" class="userAvatar" border="0" src="$AVATAR_URL$" ><?else?><img src="/Default.png" border="0" class="userAvatar"><?endif?>

Then if you've done that right it will show Default.png if they don't have an avatar, but if they do it will show their avatar,


 
Z10Date: Monday, 2009 August 03, 2:43 PM | Message # 2
Font size: A | A |
Major
Group: uCozer
Message: 100
[ ]
Offline
Nice Tutorial Leekinz. happy

"When life gives you lemons, make orange juice. Sit back, relax, and let the world wonder how you did it."
 
Miss_StephxxDate: Friday, 2009 August 14, 6:47 PM | Message # 3
Font size: A | A |
Lieutenant
Group: uCozer
Message: 56
[ ]
Offline
waauw nice tutorial i gonna use that !! biggrin



Edited ByMiss_Stephxx - Friday, 2009 August 14, 6:49 PM
 
AndklDate: Saturday, 2011 January 22, 2:51 PM | Message # 4
Font size: A | A |
Private
Group: User
Message: 1
[ ]
Offline
Nice tutorial It's works
 
uCoz Support Forum by uCozers » uCoz » Design Customization » Default Avatars (sml[tutorial])
  • Page 1 of 1
  • 1
Search:


Copyrights uCozers 2009 - 2024 To TOP
Refresh Smileys Manager