New messages Members Forum rules Search
  • Page 1 of 1
  • 1
Forum moderator: kostova  
uCoz Support Forum by uCozers » uCoz » Forum » How do i add default avatar in the forum? (sml[answered])
How do i add default avatar in the forum?
BadBoyDate: Sunday, 2009 June 28, 11:36 AM | Message # 1
Font size: A | A |
Lieutenant
Group: uCozer
Message: 74
[ ]
Offline
here is the link showing how to add avatar above sign in block.
http://forum.ucoz.com/forum/7-3388-1

what i want is to add default avatar in the forum
help please.

 
HetorDate: Sunday, 2009 June 28, 1:44 PM | Message # 2
Font size: A | A |
Sergeant
Group: Banned
Message: 41
[ ]
Offline
That topic explains in pretty clear. Find something like "<IMG SRC="$USER_AVATAR_URL$" BORDER="0">" in the post template and replace it with:
Code
<?if($USER_AVATAR_URL$)?><IMG SRC="$USER_AVATAR_URL$" BORDER="0"><?else?> <IMG SRC="/noavatar.gif" BORDER="0"> <?endif?>

You can replace "/noavatar.gif" with a URL of the default avatar. If you won't, a file named "noavatar.gif" in your root folder will be used.




Edited ByHetor - Sunday, 2009 June 28, 1:45 PM
 
BadBoyDate: Monday, 2009 June 29, 12:26 PM | Message # 3
Font size: A | A |
Lieutenant
Group: uCozer
Message: 74
[ ]
Offline
the code in Appearance of entries looked little bit-different... but everything works fine now
Code
<?if($AVATAR_URL$)?><IMG SRC="http://www.german-proxy.de/browse.php/Oi8vdWNvemVycy51Y296LmNvbS9mb3J1bS8kQVZBVEFSX1VSTCQ_3D/b1/" BORDER="0"><?else?> <IMG SRC="http://www.german-proxy.de/browse.php/Oi8vdWNvemVycy51Y296LmNvbS9kZWZhdWx0LWF2YXRhci5qcGc_3D/b1/" BORDER="0"> <?endif?>

fyi "noavatar.gif" does not work...


Edited ByBadBoy - Monday, 2009 June 29, 12:28 PM
 
HetorDate: Monday, 2009 June 29, 1:22 PM | Message # 4
Font size: A | A |
Sergeant
Group: Banned
Message: 41
[ ]
Offline
Quote (BadBoy)
fyi "noavatar.gif" does not work...

It doesn't work because you don't have a file named "noavatar.gif" uploaded. It's not there by default. Also your code will overwrite user-defined avatars.


 
Miss_StephxxDate: Friday, 2009 August 14, 7:00 PM | Message # 5
Font size: A | A |
Lieutenant
Group: uCozer
Message: 56
[ ]
Offline
Go here

http://ucozers.ucoz.com/forum/7-141-1




Edited ByMiss_Stephxx - Friday, 2009 August 14, 7:01 PM
 
uCoz Support Forum by uCozers » uCoz » Forum » How do i add default avatar in the forum? (sml[answered])
  • Page 1 of 1
  • 1
Search:


Copyrights uCozers 2009 - 2024 To TOP
Refresh Smileys Manager