templates/base/scripts/BxBaseMailBox.php
It looks like Boonex combined the inbox & outbox functions here and did not put a switch in to toggle properly when going from inbox to outbox to show who you sent to. I might be wrong, but this looks like the strings that handle it mainly.
/**
* Function will generate block with users message archive's list ;
*
* @return : Html presentation data ;
*/
function getBlockCode_Archives()
{
global $oSysTemplate;
// init some needed variables;
$sOutputHtml = null;
$iSenderID = 0;
$iMessageOwner = 0;
// define message's owner ;
$sQuery =
"
SELECT
`Sender`, `Recipient`
FROM
`sys_messages`
WHERE
`ID` = {$this -> aMailBoxSettings['messageID']}
AND
(
`Sender` = {$this -> aMailBoxSettings['member_id']}
OR
`Recipient` = {$this -> aMailBoxSettings['member_id']}
)
";
$rResult = db_res($sQuery);
while( $aRow = mysql_fetch_assoc($rResult) )
{
$iMessageOwner = ( $aRow['Sender'] == $this -> aMailBoxSettings['member_id'] )
? $aRow['Recipient']
: $aRow['Sender'];
$iSenderID = $aRow['Sender'];
}
$sSenderNickName = getNickName($iMessageOwner);
// set default selected tab ;
if ( !$this -> aMailBoxSettings['contacts_mode'])
{
if ($iSenderID != $this -> aMailBoxSettings['member_id'])
$this -> aMailBoxSettings['contacts_mode'] = 'From';
else
$this -> aMailBoxSettings['contacts_mode'] = 'To';
}
// contain all found messages from member ;
$sMessagesList = $this -> genArchiveMessages();
$aTopToggleEllements = array();
$aBottomToggleEllements = array();
// generate the top toggle ellements ;
$sRequest = $_SERVER['PHP_SELF'] . '?mode=view_message';
foreach( $this -> aRegisteredArchivesTypes AS $sKey => $sValue )
{
$aTopToggleEllements[ _t('_' . $sKey) . ' ' . $sSenderNickName ] = array
(
'href' => $sRequest . '&contacts_mode=' . $sKey . '&messageID=' . $this -> aMailBoxSettings['messageID'],
'dynamic' => true,
'active' => ($this -> aMailBoxSettings['contacts_mode'] == $sKey ),
);
}
$aLanguageKeys = array
(
'delete_messages' => _t( '_Delete'),
'select_all' => _t( '_Select all'),
'spam_messages' => _t( '_Spam report' ),
);
// return builded data ;
if ( empty($sMessagesList) )
$sMessagesList = MsgBox(_t( '_Empty' ));
$aTemplateKeys = array
(
'select_messages' => _t('_Please, select at least one message'),
'are_you_sure' => _t('_Are you sure?'),
'delete_messages' => $aLanguageKeys['delete_messages'],
'spam_messages' => $aLanguageKeys['spam_messages'],
'messages_rows' => $sMessagesList,
'current_page' => $_SERVER['PHP_SELF'],
'select_all' => $aLanguageKeys['select_all'],
);
$sOutputHtml = $oSysTemplate -> parseHtmlByName( $this -> aUsedTemplates['archives_init_section'], $aTemplateKeys );
return array( $sOutputHtml, $aTopToggleEllements );
}
We can see the Message Archive being pulled and in all instances it's asking who the sender is, never asking who the recipient is. If someone has time to play with this and add the extra code to the switch, then go for it. This is a definite bug within the code.
As far as changing outbox to "Sent"
Just change the Language Key.