Warning: The author of this contribution does not provide support for it anymore.

Top Five

Show avatar?? - Top Five

Re: Show avatar??

by RMcGirr83 » Thu Feb 17, 2011 1:28 pm

Code: Select all

AND user_avatar_type <> 0


where did this come from?

Code: Select all

username IS NOT NULL


:?:
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22072
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Show avatar??

by Caeterra » Thu Feb 17, 2011 2:00 pm

Here! what you need! Thank you very much! What would I do without you ..
User avatar
Caeterra
Registered User
Posts: 33
Joined: Sat Feb 12, 2011 8:35 am

Re: Show avatar??

by Caeterra » Sat Feb 19, 2011 3:10 am

Hello RMcGirr83, and all all all! :)

please help again?

how to make a display of photos of a certain size?

MS.jpg
MS.jpg (49.42 KiB) Viewed 298 times


did not work:

Code: Select all

<table valign="bottom" width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>

   
<!-- BEGIN top_five_newest -->
<td align="center" width="33%">
<div id="avatar">

{top_five_newest.USER_AVATAR_THUMB}
</div>
<div id="name">
{top_five_newest.USERNAME_FULL}
</div>

</td><!-- END top_five_newest -->


</tr>

</table>


-----------------------
...

Code: Select all

foreach ($newest_users as $row)
   {
      $username_string = get_username_string('full', $row['user_id'], $row['username'] );
     
      $template->assign_block_vars('top_five_newest',array(
           'USER_AVATAR'      => get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height'] ),
          'USER_AVATAR_THUMB'   => ($row['user_avatar']) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], ($row['user_avatar_width'] > $row['user_avatar_height']) ? "auto" : ("230" / $row['user_avatar_height']) * $row['user_avatar_width'], ($row['user_avatar_height'] > $row['user_avatar_width']) ? "auto" : ("230" / $row['user_avatar_width']) * $row['user_avatar_height']) : '',
          
         'USERNAME_FULL'      => $username_string)


really looking forward to your help!

Thank you!
User avatar
Caeterra
Registered User
Posts: 33
Joined: Sat Feb 12, 2011 8:35 am

Re: Show avatar??

by Caeterra » Fri Feb 25, 2011 1:18 am

vexed.. :( nobody knows ..
then such a question ..
You can adjust the output avatar with only one particular group?
Thank!
User avatar
Caeterra
Registered User
Posts: 33
Joined: Sat Feb 12, 2011 8:35 am

Re: Show avatar??

by ryandi » Fri Jul 15, 2011 4:14 pm

help plzz how to put avatar on newest user plzz
ryandi
Registered User
Posts: 1
Joined: Fri Jul 15, 2011 3:45 pm