Quote:
Originally Posted by pedroenf
I think that there's a small bug in the PM system. The to/from system is not right. I send a PM to a member which usergroup color is blue and instead it shows my usergroup color red, someone send me a PM and instead o his name in "from" shoes mine. Does anyone have de same issue here? Image bellow to explain better.
|
Here is the fix, edit the includes/class_dm_mgccbchat.php file and search for :
PHP Code:
if ($this->mgc_cb_evo_chat['coidentifier'] == 'pm')
{
$this->do_set('toname', $getuser['username']);
$this->do_set('tousergroupid', $getfromuser['usergroupid']);
$this->do_set('todisplaygroupid', $getfromuser['displaygroupid']);
$this->do_set('tohascustomavatar',$getfromuser['hascustomavatar']);
$this->do_set('toavatarpath',$getfromuser['avatarpath']);
$this->do_set('toavatardateline',$getfromuser['avatardateline']);
$this->do_set('toavwidth',$getfromuser['avwidth']);
$this->do_set('toavheight',$getfromuser['avheight']);
$this->do_set('toavwidth_thumb',$getfromuser['avwidth_thumb']);
$this->do_set('toavheight_thumb',$getfromuser['avheight_thumb']);
$this->do_set('tofiledata_thumb',$getfromuser['filedata_thumb']);
$this->do_set('toavatarid',$getfromuser['avatarid']);
$this->do_set('toavatarrevision',$$getfromuser['avatarrevision']);
}
Replace by :
PHP Code:
if ($this->mgc_cb_evo_chat['coidentifier'] == 'pm')
{
$this->do_set('toname', $getuser['username']);
$this->do_set('tousergroupid', $getuser['usergroupid']);
$this->do_set('todisplaygroupid', $getuser['displaygroupid']);
$this->do_set('tohascustomavatar',$getuser['hascustomavatar']);
$this->do_set('toavatarpath',$getuser['avatarpath']);
$this->do_set('toavatardateline',$getuser['avatardateline']);
$this->do_set('toavwidth',$getuser['avwidth']);
$this->do_set('toavheight',$getuser['avheight']);
$this->do_set('toavwidth_thumb',$getuser['avwidth_thumb']);
$this->do_set('toavheight_thumb',$getuser['avheight_thumb']);
$this->do_set('tofiledata_thumb',$getuser['filedata_thumb']);
$this->do_set('toavatarid',$getuser['avatarid']);
$this->do_set('toavatarrevision',$getuser['avatarrevision']);
}