FreiChat related discussions
freichat custom avatar integration

Hello,

can anyone help me in integrating user avatars in friechat i am using custom cms... i store avatar in user table with file names only and provide them path using config file like this:

UserImagePath($_USR_ID).$row['avatar']

Hello, can anyone help me in integrating user avatars in friechat i am using custom cms... i store avatar in user table with file names only and provide them path using config file like this: ```` UserImagePath($_USR_ID).$row['avatar'] ````

Please read the documentation on how to integrate avatars here:
http://codologic.com/docs/doku.php?id=wiki:freichat:avatar-integration

Also, there is an avatar integrator built inside freichat installer .
We recommend you use that .

Let us know if you have any problems .

Please read the documentation on how to integrate avatars here: http://codologic.com/docs/doku.php?id=wiki:freichat:avatar-integration Also, there is an avatar integrator built inside freichat installer . We recommend you use that . Let us know if you have any problems .

i tried your instructions but its not working... i tried editing avatar url but no result..

i tried your instructions but its not working... i tried editing avatar url but no result..

i have not modified query i have modified get_buddies() in custom.php i am using $_SESSION method for showing avatar.... $_SESSION['avatar'] contains the image name and its path like this $_SESSION['avatar']=UserImagePath($_USR_ID).$row['avatar'];

$list = $this->db->query($query)->fetchAll(); 
        $i=0; 
        foreach($list as $temp) 
        { 
              $list[$i]['avatar'] = $_SESSION['avatar']; //update the original array
              $i++; 
            }
i have not modified query i have modified get_buddies() in custom.php i am using $_SESSION method for showing avatar.... $_SESSION['avatar'] contains the image name and its path like this $_SESSION['avatar']=UserImagePath($_USR_ID).$row['avatar']; ```` $list = $this->db->query($query)->fetchAll(); $i=0; foreach($list as $temp) { $list[$i]['avatar'] = $_SESSION['avatar']; //update the original array $i++; } ````

Try dumping the variable $list after the foreach loop to see if it is working correctly.

To see the output of your dump, use chrome developer tools(f12) , check the response of any of the requests in the network tab

Try dumping the variable $list after the foreach loop to see if it is working correctly. To see the output of your dump, use chrome developer tools(f12) , check the response of any of the requests in the network tab

can you please elaborate dumping $list?? i tried developer tools there is nothing there... freichat debug mode is on

can you please elaborate dumping $list?? i tried developer tools there is nothing there... freichat debug mode is on
615
6
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