Hi,
To open a chatwindow , you can use following function:
FreiChat.create_chat_window_mesg(username, userid)
For eg.
FreiChat.create_chat_window_mesg('admin', 1)
The last thing is the avatar, is not posible to use Wordpress Gravatars on it?
If is not posible where can i customize it to replace the default ones?
You can customize them by editing the file freichat/server/freichat.php
Around line 410 , you will find :
$avatar_url = "http://www.gravatar.com/avatar/" . md5($guest) . "?s=24&d=wavatar"; //$this->url . "/client/jquery/user.jpeg";
if (isset($res[$this->avatar_field_name])) {
if ($res[$this->avatar_field_name] != "") {
$avatar_url = $object->avatar_url($res);
} else {
$avatar_url = "http://www.gravatar.com/avatar/" . md5($guest) . "?s=24&d=wavatar";
}
}
Hi,
To open a chatwindow , you can use following function:
```
FreiChat.create_chat_window_mesg(username, userid)
```
For eg.
```
FreiChat.create_chat_window_mesg('admin', 1)
```
>The last thing is the avatar, is not posible to use Wordpress Gravatars on it?
If is not posible where can i customize it to replace the default ones?
You can customize them by editing the file freichat/server/freichat.php
Around line 410 , you will find :
```
$avatar_url = "http://www.gravatar.com/avatar/" . md5($guest) . "?s=24&d=wavatar"; //$this->url . "/client/jquery/user.jpeg";
if (isset($res[$this->avatar_field_name])) {
if ($res[$this->avatar_field_name] != "") {
$avatar_url = $object->avatar_url($res);
} else {
$avatar_url = "http://www.gravatar.com/avatar/" . md5($guest) . "?s=24&d=wavatar";
}
}
```
Necessity is the mother of all inventions!