$sourcedir/PersonalMessage.php
Pesquisar
'send2' => 'MessagePost2',
Adicionar
'export' => 'ExportMessages',
Pesquisar
'prune' => array('link' => '<a href="' . $scripturl . '?action=pm;sa=prune">' . $txt['pm_prune'] . '</a>', 'href' => $scripturl . '?action=pm;sa=prune'),
Adicionar
'' => 0,
'export' => array('link' => '<a href="' . $scripturl . '?action=pm;sa=export">' . $txt['exportpms_all'] . '</a>', 'href' => $scripturl . '?action=pm;sa=export"'),
Pesqusiar
// Handle labels.
// PM Export, For Folders.
if(isset($_REQUEST['l']) && isset($context['labels'][$_REQUEST['l']]))
$context['pm_areas']['pref']['areas']['export_single'] = array('link' => '<a href="' . $scripturl . '?action=pm;sa=export;f=' . $_REQUEST['l'] .'">' . $txt['exportpms_this'] . '</a>', 'href' => $scripturl . '?action=pm;sa=export;f=' . $_REQUEST['l']);
// Your in your inbox!
if(!isset($_REQUEST['l']) && !isset($_REQUEST['f']) && !isset($_REQUEST['sa']))
$context['pm_areas']['pref']['areas']['export_inbox'] = array('link' => '<a href="' . $scripturl . '?action=pm;sa=export;l=-1">' . $txt['exportpms_inbox'] . '</a>', 'href' => $scripturl . '?action=pm;sa=export;l=-1');
Pesquisar
?>
Adicionar
function ExportMessages()
{
global $sourcedir, $db_prefix, $ID_MEMBER, $scripturl, $user_info, $context, $txt;
// Sadly to make this work for package manager the easy way was to just include a file.
require_once($sourcedir . '/ExPortMessages.php');
ExportMessagesXML();
}
$themedir/languages/Modifications.english.php
// Export Personal Messages
$txt['exportpms_inbox'] = 'Export Inbox';
$txt['exportpms_this'] = 'Export This Folder';
$txt['exportpms_all'] = 'Export ALL PMs';
$txt['exportpms_none'] = 'You have No Personal Messages to export.';
em PT
<file name="$themedir/languages/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Export Personal Messages translate by candidosa2
$txt['exportpms_inbox'] = 'Exportar Recebidas';
$txt['exportpms_this'] = 'Exportar esta pasta';
$txt['exportpms_all'] = 'Exportar TODAS AS PMs';
$txt['exportpms_none'] = 'Você não tem mensagens pessoais para exportar.';
]]></add>
</operation>
</file>