Topic-icon K2 and AVATAR

Active Subscriptions:

None
14 years 2 weeks ago #23105 by fb_1071870164
K2 and AVATAR was created by fb_1071870164
Hi,
the avatar is imported by K2 but not showing at the front end?
1. the path is ok
2. everhything is writable.
3. the plugin enabled.
4. at the profile i enabled import avatar to yes.
5. at the user map i can see the avatar

but at the front i cant see him, please, advice
BR
Amit
the kn
The topic has been locked.
Support Specialist
14 years 2 weeks ago #23114 by alzander
Replied by alzander on topic K2 and AVATAR
Where the avatar should show, is it just blank, or is there a placeholder image of some sort? If you manually upload an image for the user, does that show properly?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 weeks ago #23116 by fb_1071870164
Replied by fb_1071870164 on topic K2 and AVATAR
File Attachment:
hi alex,
the avatar should show at the welcome message (enclose) but its not showing, just the : welcome XXX
i tried to upload manually and the pic is showing at the backend of K2 but not at the front.
BTW isn't it should show at the AUP user avatar and Kunena user Avatar, how can i connect between those component, i want that the avatar that JBF download from facebook wll show at the AUP user profile and at kunnena profile, but first i need that the JFB.
i am sorry for all those questions

Amit
The topic has been locked.
Active Subscriptions:

None
14 years 2 weeks ago #23117 by fb_1071870164
Replied by fb_1071870164 on topic K2 and AVATAR
File Attachment:
enclose
The topic has been locked.
Active Subscriptions:

None
14 years 1 week ago #23163 by fb_1071870164
Replied by fb_1071870164 on topic K2 and AVATAR
Hi,
is there any IDEA what should i do?

BR

Amit
The topic has been locked.
Support Specialist
14 years 1 week ago #23178 by alzander
Replied by alzander on topic K2 and AVATAR
Amit,
Sorry for the delay. It's a holiday weekend here in the states, so that slows things down.

Currently, the SCLogin module doesn't have an option to show the user's K2 avatar. If you make the change below though, it should show the K2 avatar. You'll need to test, obviously, and let us know how it goes.

Edit the /modules/mod_sclogin/helper.php file. Around line 250, you'll see:
function getSocialAvatar($registerType, $profileLink, $user)
    {
        $html = "";
Simply add the following lines right after that:
$html = "";
require_once(JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'helpers'.DS.'utilities.php');
return $this->getSocialAvatarImage( K2HelperUtilities::getAvatar($user->id) , '');
Again, test, and let us know how it goes!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 1 week ago #23186 by fb_1071870164
Replied by fb_1071870164 on topic K2 and AVATAR
Hi Alex

i did it, the site stop working, i didnt get any error, he site didnt load, i looked at the view source and that what i get:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1255" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>

nothing more

BR

Amit
The topic has been locked.
Active Subscriptions:

None
14 years 1 week ago #23187 by fb_1071870164
Replied by fb_1071870164 on topic K2 and AVATAR
hi again,
its working, at the code line you wrote $html = "";
and it was duplicated, after i erased it the avatar show :)
what is your suggestion for the AUP, i want that the avatar will show there to, do i have to ask AUP programmer (bernard) ?

thanks a lot
BTW
are you going to add it to next update, or i will have to change it manually after an update?

BR and thanks alot
Amit
The topic has been locked.
Support Specialist
14 years 1 week ago #23195 by alzander
Replied by alzander on topic K2 and AVATAR
Awesome, glad to hear that worked for you. I'm not sure what you are looking for with AUP. Are you trying to get the avatar to import from Facebook into K2 or something else?

We are looking into creating a profile plugin for AUP to import FB information into it.. but for now, we don't have that ability.

As for the K2 show avatar setting, it will be in an upcoming release.. definitely the 4.3 release. However, if we have a bug-fix release before then (like 4.2.3), it may or may not be in that release.. so just keep your eye out.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 1 week ago #23208 by fb_1071870164
Replied by fb_1071870164 on topic K2 and AVATAR
Hi Alex,

i will try to explain:
now after you fix the problem everything is working great. the avatar show at AUP and K2 but for some reason the avatar isnt showing at kunnena forum, although i configure Kunena to use the avatar from AUP (they dont have an option from K2 - maybe that is the reason?) do you have any idea what i have to do?

thanks in advanced
Amit
The topic has been locked.