Except it just doesn't work. The site won't load at all with these changes.. Maybe I've added the code wrong or have a typo though? J1.5.7, CB 1.2RC2, uddeIM 1.3
[code:1] if ($fromid) {
$sql="SELECT username FROM #__users WHERE id=".(int)$fromid;
$_CB_database->setQuery($sql);
$from = $_CB_database->loadResult();
// $rowFrom = new mosUser( $_CB_database );
// $rowFrom->load( (int) $fromid );
// $from = $rowFrom->username;
} else {
$from = null;
}
$sql="SELECT username FROM #__users WHERE id=".(int)$toid;
$_CB_database->setQuery($sql);
$to = $_CB_database->loadResult();
// $rowTo = new mosUser( $_CB_database );
// $rowTo->load( (int) $toid );
// $to=$rowTo->username;
if($systemGenerated || !$fromid) {
$this->_sendPMSuddesysMSG($toid,$fromid,$to,$from,$subject,$message);
} else {
$this->_sendPMSuddeimMSG($toid,$fromid,$to,$from,$subject,$message);
}
return true;
}
[/code:1]
Post edited by: pmbx, at: 2008/09/17 03:39
Post edited by: pmbx, at: 2008/09/17 05:50