FreiChat related discussions
default avatar...

FreiChat5 Module
Jomsocial 2.2
joomla 1.5


Freichat is displaying the is using the default freichat avatar instead of jomsocials, and i have confirmed $driver='Jsocial' in arg.php

not sure what else to try.

thanks

FreiChat5 Module Jomsocial 2.2 joomla 1.5 Freichat is displaying the is using the default freichat avatar instead of jomsocials, and i have confirmed $driver='Jsocial' in arg.php not sure what else to try. thanks

$driver='Jsocial'


Shouldn't it be $driver='JSocial';

The letter 's' should be capital .
<em> $driver='Jsocial' </em> Shouldn't it be $driver='JSocial'; The letter 's' should be capital .
Necessity is the mother of all inventions!

you may change the image by replacing the following file

freichat/client/jquery/user.jpeg

you may change the image by replacing the following file <code> freichat/client/jquery/user.jpeg </code>
Necessity is the mother of all inventions!

line 110 of arg.php is

$driver='JSocial';

And it's not that I have a problem with the default avatar, it's that it isn't using JomSocial's user's avatars

line 110 of arg.php is $driver='JSocial'; And it's not that I have a problem with the default avatar, it's that it isn't using JomSocial's user's avatars

in FreiChatX backend

There is a option called show guests or registered users

change it to show buddies ,

in FreiChatX backend There is a option called show guests or registered users change it to show buddies ,
Necessity is the mother of all inventions!

ok, that seems to make the correct avatrs show up, but i dont want them to have to be "friends" to be able to chat with each other, how can i make this avatars work with all registered users? It worked fine in the previous version.

ok, that seems to make the correct avatrs show up, but i dont want them to have to be "friends" to be able to chat with each other, how can i make this avatars work with all registered users? It worked fine in the previous version.

There were many changes between 4.x to 5.x , so i think i forgot to include the query
that gets the avatar images for JomSocial for the registered users.

So , dont worry i will fix it the next version which will be released by this week

There were many changes between 4.x to 5.x , so i think i forgot to include the query that gets the avatar images for JomSocial for the registered users. So , dont worry i will fix it the next version which will be released by this week
Necessity is the mother of all inventions!

Hello. Congratulations for freichat! Very good job.
I am using it with joomla + joomsocial.

The only problem I have is that if someone doesn't have an avatar to his jomsocial profile,
in the user list of freichat at the place of the avatar's picture , there is the word avatar.

The problem is tha this word drops into the name of that user.
How can I remove this word or use client\jquery\user.gif for users with no avatar???

Hello. Congratulations for freichat! Very good job. I am using it with joomla + joomsocial. The only problem I have is that if someone doesn't have an avatar to his jomsocial profile, in the user list of freichat at the place of the avatar's picture , there is the word avatar. The problem is tha this word drops into the name of that user. How can I remove this word or use client\jquery\user.gif for users with no avatar???

Can you give me your website url , it will be very useful for debugging your problem.

Also , where have you pasted the freichat folder ?

Can you give me your website url , it will be very useful for debugging your problem. Also , where have you pasted the freichat folder ?
Necessity is the mother of all inventions!

Thnx for the reply.
site: http://www.taratatam.gr

I made 2 demo account one with avatar and one without to login and see the problem.

demo1
demo1


demo2
demo2

the chat folder is at the root folder of the site + /freichat

Thnx for the reply. site: http://www.taratatam.gr I made 2 demo account one with avatar and one without to login and see the problem. demo1 demo1 demo2 demo2 the chat folder is at the root folder of the site + /freichat

I never got this error in my localhost while testing ,

Can you tell me what was the difference between the two user accounts
that you gave me .

We will have to do some debugging to track down this error

I never got this error in my localhost while testing , Can you tell me what was the difference between the two user accounts that you gave me . We will have to do some debugging to track down this error
Necessity is the mother of all inventions!

the only difference is that the demo1 has jomsocial avatar, nothing else!!

the only difference is that the demo1 has jomsocial avatar, nothing else!!

doesn't demo2 use any avatar .

doesn't demo2 use any avatar .
Necessity is the mother of all inventions!

no, demo2 doesnt use any avatar. try to login from demo1 using one browser and from demo2 using another one simultaneously. And see how the users look at the chat.

no, demo2 doesnt use any avatar. try to login from demo1 using one browser and from demo2 using another one simultaneously. And see how the users look at the chat.

Ok, i fixed it.

Opened file freichat/server/drivers/JSocial.php and replaced:



public function avatar_url($avatar)
{
$avatar_url = $avatar;
return $avatar_url;
}



replaced with:




public function avatar_url($avatar)
{
if ($avatar == "")
{
$murl=str_replace("server/freichat.php", "", $this->url);
$avatar_url = $murl.'client/jquery/user.jpeg';
return $avatar_url;

}
else
{
$avatar_url = $avatar;
return $avatar_url;
}
}

Ok, i fixed it. Opened file freichat/server/drivers/JSocial.php and replaced: public function avatar_url($avatar) { $avatar_url = $avatar; return $avatar_url; } replaced with: public function avatar_url($avatar) { if ($avatar == "") { $murl=str_replace("server/freichat.php", "", $this->url); $avatar_url = $murl.'client/jquery/user.jpeg'; return $avatar_url; } else { $avatar_url = $avatar; return $avatar_url; } }
162
14
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft