Twitter
Sun
02
May
'10
PDF
Print
Send
 
Hits (852) | Comments (2) | Favorited (2) | Votes (0)

Require basic community integartion plugin knowlige.

Some components need to tell Touch whare user avatar is stored. Those are usually components that handle user registration process and allow avatar upload. Like Mighty Registration. All you need is to add to CIP (Community Integration PLugin) one onRenderAvatar event

function onRenderAvatar(&$user)
{
    $user->avatar = "images/avatars/".$user->get('id').'jpg';        
}

This event simple set new property for user object.

Directory should start from Joomla root without slash at the begining.

Note touch does not generate avatar <img> elements with full path to image. Avatar is always displayed through index2.php file and may be resized to any size. So you do not need to worry about avarat size.


Comments
avatar
Quote
- -
Written by Nollie on 03 January 2012

This article achieved extacly what I wanted it to achieve.

-
avatar
Quote
- -
Written by Allayna on 05 January 2012

Why does this have to be the ONLY reaiblle source? Oh well, gj!

-
Add New Comment
Name:
Email:
Comment:
Attachment
Hide Comment
Security code:
Enter text as you see on image
 
 
What is best way for Download/Installation MightyExtensions?
 


Member Area



Member Activity

We have 1931 guests and 7 members online


MightyTemplate - Professional Joomla Templates