• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Design Customization » Entry author avatar (author's avatar on entry page)
Entry author avatar
Korijs
Posts: 267
Reputation: 5

Message # 1 | 9:12 AM
Hay!

Is that possible to make entries authors avatar?
For example, blog article where is authors name & his avatar.

Ty!
Post edited by Korijs - Monday, 2014-12-22, 9:12 AM
Sunny
Posts: 9296
Reputation: 456

Message # 2 | 10:11 AM
Korijs, in Blog and Site News the $AVATAR_URL$ code may be used for this purpose, e.g.

Code
<?if($AVATAR_URL$)?><img src="$AVATAR_URL$" style="width:100px;height:100px;border:0 none;" /><?endif?>


The $code$ is not available in other modules, so you'll need a script:

Put the avatar code on User's personal page into a span:

Code
<span id="userAvatar">Code</span>


And paste the following into the template where you want the avatar to be displayed:

Code
<span style="here you can put the necessary styles">  
<a href="javascript://" onclick="window.open('/index/8-$UID$','user','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350');return false;" id="uAvaBox">  
<script type="text/javascript">  
$('#uAvaBox').load('/index/8-$UID$ #userAvatar');  
</script></a>  
</span>

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

Message # 3 | 3:16 PM
OHMM...

For publ modules, $UID$ code is only for the current group user enter the site not person adding entry sad ~~

Post edited by lanh - Wednesday, 2014-12-24, 3:16 PM
uCoz Community » For Webmasters » Design Customization » Entry author avatar (author's avatar on entry page)
  • Page 1 of 1
  • 1
Search: