Autor Tópico: Export Personal Messages to XML  (Lida 3147 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Export Personal Messages to XML
« em: 03 de Fevereiro de 2009, 01:40 »
$sourcedir/PersonalMessage.php
Pesquisar
Código: [Seleccione]
'send2' => 'MessagePost2',
Adicionar
Código: [Seleccione]
'export' => 'ExportMessages',
Pesquisar
Código: [Seleccione]
'prune' => array('link' => '<a href="' . $scripturl . '?action=pm;sa=prune">' . $txt['pm_prune'] . '</a>', 'href' => $scripturl . '?action=pm;sa=prune'),
Adicionar
Código: [Seleccione]
'' => 0,
'export' => array('link' => '<a href="' . $scripturl . '?action=pm;sa=export">' . $txt['exportpms_all'] . '</a>', 'href' => $scripturl . '?action=pm;sa=export"'),


Pesqusiar
Código: [Seleccione]
// Handle labels.
Código: [Seleccione]
// 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
Código: [Seleccione]
?>
Adicionar
Código: [Seleccione]
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
Código: [Seleccione]
// 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
Código: [Seleccione]
<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&ecirc; n&atilde;o tem mensagens pessoais para exportar.';
]]></add>
</operation>
</file>