Export PMs to XML

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
7
64%
Very Good
4
36%
Good
0
No votes
Fair
0
No votes
Poor
0
No votes
 
Total votes: 11

Harki
Registered User
Posts: 5
Joined: Fri Apr 01, 2005 10:24 am
Location: Hannover, Germany
Contact:

Thank you!

Post by Harki » Mon May 23, 2005 8:45 pm

Thanks a bunch, Olivier, for this MOD! Actually, I had been looking for quite a while for something offering your MOD's functionality. I certainly rated it 5/5.

To my own board I installed "Export PMs to XML" in a slightly modified fashion. I found it a bit more convincing to avoid the graphic impression that suddenly a fifth message folder had appeared - which is of course not the case. So I did not upload msg_export.gif and omitted all lines of code related to it. Instead, I added a simple text link to the "box size status table" (or to the corresponding lines in styles other than subSilver). I would consider this quite a logical place for the link.

Additionally, I introduced a title tag to the link to give my non-technical users an approximate idea what will happen if they click the link.

This is how it looks on my board with subSilver:

Image

Okay, it's German. The title tag translates to something like: "Download all PMs from all folders as one XML file"

This is what I changed:

privmsg.php:

Code: Select all

// $export_img = '<a href="' . append_sid("export_privmsgs.$phpEx") . '"><img src="' . $images['pm_export'] . '" border="0" alt="' . $lang['Export_explain'] . '" title="' . $lang['Export_explain'] . '" /></a>';
$export_url = '<a href="' . append_sid("export_privmsgs.$phpEx") . '" title="' . $lang['Export_explain'] . '">' . $lang['Export'] . '</a>';

...

...

		// 'EXPORT_IMG' => $export_img, 
		'EXPORT' => $export_url,

...
...

	// 'EXPORT_IMG' => $export_img, 
	'EXPORT' => $export_url,
language/lang_german_sie/lang_main.php

Code: Select all

$lang['Export'] = "XML-Export";
$lang['Export_explain'] = "Alle Privatnachrichten aus allen Ordnern als XML-Datei herunterladen.";
templates/subSilver/privmsg_body.tpl

Code: Select all

<table width="175" cellspacing="1" cellpadding="2" border="0" class="bodyline">
	  
		<tr> 
		  <td colspan="3" width="175" class="row1" nowrap="nowrap"><span class="gensmall">{EXPORT}</span></td>
		</tr>
		<tr> 
		  <td colspan="3" width="175" class="row1" nowrap="nowrap"><span class="gensmall">{BOX_SIZE_STATUS}</span></td>
		</tr>
		<tr> 
Omitted Olivier's changes to:
templates/subSilver/subSilver.cfg
templates/subSilver/privmsgs_read_body.tpl

Didn't upload msg_export.gif, as stated before.

Bien, c'est juste une question de goût personel... :)

Thank you again, great job. Please feel encouraged to continue.

User avatar
ChrisRLG
Former Team Member
Posts: 3420
Joined: Wed Nov 24, 2004 3:18 pm
Location: Essex, UK
Contact:

Post by ChrisRLG » Thu Jun 02, 2005 8:48 pm

Have you got round to the 'view' program yet.

The MOD is good and what I need - I save every PM - but the viewer is a definate requirement for this.

Midnight Staar
Registered User
Posts: 3
Joined: Mon Jun 06, 2005 4:56 pm

New Offline Message Viewer

Post by Midnight Staar » Mon Jun 06, 2005 5:06 pm

Hello everyone,

I've written an offline personal message viewer, available here:

http://forum.malwareremoval.com/viewforum.php?f=48

It has the ability to load mutiple message archives into a single viewing session, and has single, and accumulated 'find' functions. It reads the XML format created by phpBB and was tested on the following boards:

http://www.MalwareRemoval.com
http://www.TechSupportForums.com

I'll be adding more features, as the weeks progress, here are a few already submitted:

1) Display bb codes in the message body.
2) Ability to delete a specific message from the archive.

If there's any other features you'd be interesting in seeing or find any unwanted 'bugs', please stop in and leave me a note, or a suggestion.

The software was written using "Visual Studio" .NET 2003.

==========

Have fun, and enjoy the program! ... :)

-

Mike.

NightriderXP
Registered User
Posts: 1418
Joined: Sat Oct 09, 2004 8:17 am
Location: Florida, US
Contact:

Post by NightriderXP » Mon Jun 06, 2005 5:41 pm

Thanks Midnight Staar. We're going to need the distributable Required DLLs too to get it to work. This is what I get when I try to run this in W2K:

Image

Can you create a little install program using something like Wise or Installshield which includes and installs the required DLLs too? I could help with this if need be...

:lol:

Midnight Staar
Registered User
Posts: 3
Joined: Mon Jun 06, 2005 4:56 pm

Post by Midnight Staar » Mon Jun 06, 2005 5:50 pm

NightriderXP,

That would be great! ... :D How would we go about doing that?

==========

Mike.

NightriderXP
Registered User
Posts: 1418
Joined: Sat Oct 09, 2004 8:17 am
Location: Florida, US
Contact:

Post by NightriderXP » Mon Jun 06, 2005 6:02 pm

Mike, I sent you a PM...

:lol:

Midnight Staar
Registered User
Posts: 3
Joined: Mon Jun 06, 2005 4:56 pm

Post by Midnight Staar » Fri Aug 26, 2005 1:09 pm

A new version of the personal message viewer is available, fixing an "invalid index" bug when loading messages whose count is less than that, that can be displayed on a full page.

The download link, for convienence is the same as before. :)

=====

Mike.

NightriderXP
Registered User
Posts: 1418
Joined: Sat Oct 09, 2004 8:17 am
Location: Florida, US
Contact:

Post by NightriderXP » Fri Aug 26, 2005 10:10 pm

I would love to use your program. It looks great. But without all the distributable libraries that it needs to run, it continues to crash on my PC. The offer is still there for me to create an install program for your application. But before I can do that, I need to know and possess the libraries that are needed to run it. As soon as I create an install program for your application, I bet there will be a lot of interest for it and your XML MOD...

What would it take to create an Import option that would import the files that were exported so that they can be viewed in PM again???

:lol:

User avatar
ChrisRLG
Former Team Member
Posts: 3420
Joined: Wed Nov 24, 2004 3:18 pm
Location: Essex, UK
Contact:

Post by ChrisRLG » Fri Aug 26, 2005 10:17 pm

NightriderXP

The restore back to the forum, needs a php solution. It would be affected by things like username deletions/renames etc too.

Mikes (Midnight Stars) program uses the MS .net library, so if that is installed it works great.

Several of my users are using it from malwareremoval where Mike has his support room.

Sorry can't help with knowing what files are needed from the run sections of the .net library to make it work without the full MS download.

NightriderXP
Registered User
Posts: 1418
Joined: Sat Oct 09, 2004 8:17 am
Location: Florida, US
Contact:

Post by NightriderXP » Fri Aug 26, 2005 10:26 pm

That's too bad that Mike developed it in the .NET platform. He made it so that a lot of people can't use his program. I hope he can create another version to run in any Windows platforum. I won't be installing .NET on any system I manage or maintain just to run one program. Since this is an Open Source community, I'm surprised that he created a program that could only be used on systems running XP or .NET...

I agree with you ChrisRLG. We do need a php solution. An Import option into PM would do the trick, or at least be a workaround until a better option is created...

:?

goa103
Registered User
Posts: 21
Joined: Thu May 27, 2004 3:05 pm

Post by goa103 » Mon Sep 12, 2005 1:58 pm

NightriderXP wrote: That's too bad that Mike developed it in the .NET platform. He made it so that a lot of people can't use his program. I hope he can create another version to run in any Windows platforum. I won't be installing .NET on any system I manage or maintain just to run one program. Since this is an Open Source community, I'm surprised that he created a program that could only be used on systems running XP or .NET...


I agree without that .NET is not a good solution when it comes to cross-platform development but I suppose Mike developed it in VB because he only knew that tool. I work under Windows so I don't blame him but it's sad to used such tools to read private messages exported from an open source project like phpBB.

But I disagree about the .NET installation issue. .NET is like Java or Flash, you have to install a distribution to make applications to work. And installing .NET and other platforms only takes a few minutes. But the application should inform you that you need it installed, it's what installers are meant for afterall... For example if you try to install a Java powered application, the install will detect your current Java installations and allow you to pick one, if Java is not installed, it invites you to download and install it from the web...
NightriderXP wrote: I agree with you ChrisRLG. We do need a php solution. An Import option into PM would do the trick, or at least be a workaround until a better option is created...


I thought about developing such a mod last june and here are some technologies I thought could greatly do the job, for the reader :
  • PHP web-based application that would reuse phpBB to read the exported messages. It would be the easiest way to develop a reader but would make the installation and distribution more painless as users would have to install phpBB... But installing it is not that hard afterall... following the official guidelines.
  • Java desktop application to read the messages. Java has built-in XML parsers and applications are cross-platform, very easy to design thanks to AWT/Swing or even SWT (Eclipse).
  • C++ and the wxWidgets library. It would be faster that a Java application, even if a reader is not that greedy... still cross-platform because of wxWidgets.
  • XUL, develop an extension for Thunderbird. It's one of my favourite solution but I don't know XUL enough to develop such an extension but it would be so cool as many users are switching to Thunderbird. Outlook is dead :)
I'm more into the PHP solution as developing it would be far much easier. With Java and C++ we would have to re-develop some phpBB components : BBCode, private messages management...

An other problem is that the MOD to export private messages is not installed on the forums we're interested in... So we have to convince them to install an other MOD and some of them won't just allow it. I will ask on a very important french developers community to know what they think of such a MOD... my inbox is 100% full there :).

Last but not least I wonder if anyone wrote a document to describe the XML structure of the exported document, with the messages.

JM.

goa103
Registered User
Posts: 21
Joined: Thu May 27, 2004 3:05 pm

Post by goa103 » Mon Sep 12, 2005 2:03 pm

goa103 wrote: An other problem is that the MOD to export private messages is not installed on the forums we're interested in... So we have to convince them to install an other MOD and some of them won't just allow it. I will ask on a very important french developers community to know what they think of such a MOD... my inbox is 100% full there :).


For example would the moderators of these forums install such a MOD to allow us to export our inbox ? I'm not sure :). So as long as the MOD is not installed on the forums... it's useless :(.

User avatar
ChrisRLG
Former Team Member
Posts: 3420
Joined: Wed Nov 24, 2004 3:18 pm
Location: Essex, UK
Contact:

Post by ChrisRLG » Mon Sep 12, 2005 2:32 pm

Re export of PM's - yes you can only export from an installation that has the MOD installed.

Yes Mikes program will work, only if the op system has the MS .net update from windows update installed. It works great by the way.

==============

I have a problem with imports to the forum though, don't know that I would ever allow such on my forums.

When importing you would not have the control of who posted what originally, anything could be changed within the PC system, so that the info uploaded could not be provable for any purposes.

Also the logistics for an admin, importing a field of messages, with username to, and from, where either one may have been deleted or renamed. Where the file could come from forum A, but be uploaded to forum B.

Sorry security is lost once such data is off site, I would not allow it to be uploaded to my forums.

goa103
Registered User
Posts: 21
Joined: Thu May 27, 2004 3:05 pm

Post by goa103 » Mon Sep 12, 2005 3:50 pm

ChrisRLG wrote: Re export of PM's - yes you can only export from an installation that has the MOD installed.


Yes MODs are what make phpBB so good and evil. The admin from the website where I want to export my inbox just refused to install it. It's not their priority.

morgwai
Registered User
Posts: 5
Joined: Sat Jan 07, 2006 3:41 am
Location: warsaw, poland
Contact:

Post by morgwai » Sun Jan 08, 2006 5:07 am

i can't install this mod with easymod - it simply doesn't see it (the list of unprocessed mods is empty) - is it easymod's bug or is something wrong with this mod?
i use phpbb-2.0.19 and easymod-0.3.0

update: my error: wrong file permissions ;)

update2: so as i installed this mod i can tell that it's realy useful - thx!

it would be very cool if message body wasn't just the cdata section but if it was also translated to xml (ie: bbCode tags changed to xml tags)

Post Reply

Return to “[2.0.x] MOD Database Releases”

cron