By GNOSIS35 on Tuesday, 21 October 2014
Posted in Technical Issues
Replies 8
Likes 0
Views 1.1K
Votes 0
Hello,

I'm french, i don't speak very well, sorry.

If i use community builder 2.0, guest don't have an avatar. I don't have this probleme in a local machine.

Do you have an idea ?

Thanks you very much.
Hi,

Have you checked the settings in the Komento integration with Community Builder? To check this: Components > Komento > Integrations > (integration) > Layout > Avatar > Integration. Here my screenshot: http://screencast.com/t/EPMdlRxOIRd . If this is not the issue, perhaps you can explain more so that we can understand you well. If it is possible, can you provide us with backend access and FTP access so that we can assist you on this issue much quicker.

Please be advise.
Thanks.
·
Tuesday, 21 October 2014 18:33
·
0 Likes
·
0 Votes
·
0 Comments
·
thanks you .... i install my website in two hours, i will give you login and password.
·
Tuesday, 21 October 2014 18:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Sure, keep us updated.
·
Tuesday, 21 October 2014 19:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You can test my problem on :

[REMOVED_SITE_DETAILS]

There is a comment, when you are a guest, i can't see the default avatar... it's my problem.

Thank you very much if you solve this problem.

Perhaps, if i can help you, i find this file : components\com_komento\themes\kuro\comment\item\avatar.php
Line 25 : < img src= "<?php echo $row->author->getAvatar( $row->email ); ?>" class="avatar"<?php if( $system->konfig->get( 'enable_schema' ) ) echo ' itemprop="image"'; ?> />

If i change " < img src= 'url of default picture' ".... all avatar change (guest and not guest) ... i don't find to change only guest avatar...

Sorry for my english.
·
Wednesday, 22 October 2014 01:45
·
0 Likes
·
0 Votes
·
0 Comments
·
I search a solution...

I find this file : components\com_komento\classes\profileVendors.php
line 192

public function getAvatar()
{
$user = CBuser::getInstance( $this->profile->id );

$field = $user->avatarFilePath();
// &field, for me, it's the path of avatar if i am not a guest but i want this path : 'http://www.gravatar.com/avatard41d8cd98f00b204e9800998ecf8427e?s=100&d=mm' ONLY if i am a guest

return $field;
}


For me there is a solution but i have got your help :-(

Thank you !
·
Wednesday, 22 October 2014 03:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Looks like there's no "guest" picture for Community Builder and their API is really bad! I have applied some hacks so that it would revert to Gravatar if there is no profile picture provided. Download the attached file and upload it into /components/com_komento/classes/
·
Wednesday, 22 October 2014 14:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much for your help. Your are the best. Alone, i can't find the solution.

Just a last question : if i download a next version of komento, for you, i must to upload this file (profilVendors.php) again ?

Thanks you.
·
Wednesday, 22 October 2014 16:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

No, you don't have to upload it again because this fix will be included in the next release of Komento.
·
Wednesday, 22 October 2014 20:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post