Utility: Viewer for downloaded Private Message files
Title: Private Message Viewer
Description: Allows Private Messages that you have downloaded in XML format to be viewed in a form very similar to what you see when you view a PM in VB Forums
Feature list: Version 1.0
PMs from all VB Forums PM folders appear merged in date order
PMs can be searched by date and/or Member Name and/or content
One by one PM navigation or jump to first or last PM
Words selected by content are highlighted
Multiple download files to be opened and duplicates caused by overlapping downloads are eliminated
The viewed PM can by exported to a file in plain text or Rich Text format
Version 1.1
Corrected non-animation of animated smilies where there is a non-animated one in the PM.
Corrected error caused when total length of filenames exceeded 256
Added ability to export to XML. This is mostly for me in that someone who finds a problem with the tool can export the PM and send it to me so I can check it out.
Added ability to print the current PM
Added right-click popup that displays hidden URLs
Added selection by folder name
Added save window position user option
Added animate/not animate smilies user option
Added VB code formatting user option. This let's you view VB code as God intended.
Added display of selected file name(s)
Added ability to translate/not translate smilies in a given PM
Changed member name selection to a dropdown list list rather than manual input
Version 1.2
At some point vBulletin changed the structure of the XML download file and this version now handles both file structures
Added ability to jump to a particular PM number
Speeded up the loading of the PM records
Added ToolTips
When the To name in the PM consists of multiple names I added the ability to find the PM using any of the names in addition to the multiple-name string
The program now saves the path to the last used XML file folder
Added a tooltip-like display that shows all the PM file names selected if they don't all fit in the area of the form designed to show the names
Made it unnecessary to click a button after the files are loaded and also changed UI a bit as a part of that change
Version 1.3
Added support for Indent tags
Added support for Thread and Post tags
Added support for Code tags
Added support for Noparse tags
Added wildcard and multiple-word ability to the Search By Content option along with a Help button that explains how to use it.
Changed Date/Time display and added folder name to display
Corrected a problem that occurred when smilies were right next to each other
Corrected a problem with some color names
Corrected a problem with default, yellow, highlighting
Corrected a problem with the loading of the PM records
Corrected a problem with some URL links
Corrected and improved the formatting of quotes (thank you dilettante)
Corrected bolding and underlining problems
Changed the source location for one of the application's classes so that the code can be compiled by someone other than me
Known Problems:
None
Screen-shots: See below
Author Name: Martin Liss Note: This program would not have been possible without the help of VB Forum members, especially the excellent rich text code samples and assistance of moeur, and for V 1.3 the help given me by dilettante.
Notes:
1)You are of course free to make changes to the code, but if you want to do that you should first go to Project|Private_Message_Viewer Properties|Make and change the Conditional Compilation Arguments from Testing = 0 to Testing = 1. The value of 1 indicates to the app that you are testing and that subclassing should be turned off, otherwise the app may crash VB after certain errors occur. In order to be able to compile the app you'll need to change it back to Testing = 0.
2) I've attached both code and installation package zip files.
Last edited by MartinLiss; Jun 16th, 2010 at 10:02 AM.
Reason: Corrected a typo
The source code for the files within this thread (updated: 02-26-2006) have been checked for malware by a moderator.
Disclaimer: This does not necessarily mean that any compiled files (DLL/EXE/OCX etc) are completely safe, but any supplied code does not contain any obvious malware. It also does not imply that code is error free, or that it performs exactly as described.
It is recommended that you manually check any code before running it, and/or use an automated tool such as Source Search by Minnow (available here or here).
If you find any serious issues (ie: the code causes damage or some sort), please contact a moderator of this forum.
Usage of any code/software posted on this forum is at your own risk.
I have just tried to run your application with a downloaded version of my Private Messages. I chose the option to "Download all Private Messages as:" and then XML. However, when I try and load the XML file in the application, I get the following:
"blah.xml does not seem to be a valid XML Private Message download file. Please try again."
Is it possible that the format of the downloaded XML has changed in such a way that this program no longer works?
I just tried the setup.exe on my Windows XP 64 Bit machine and after trying to run the program, I got the following:
I created the data folder, and moved the files which were in the route of the application folder, and after that, it was fine. I am going to try running the setup on another machine, and will let you know how I get on.
It seems you forgot to include the richtextbox ocx files in the latest setup.
This is what I get when I try to execute the application after running the setup.
This is on a Windows XP system I formatted about a month ago and VB6 is not installed.
Pradeep, Microsoft MVP (Visual Basic) Please appreciate posts that have helped you by clicking icon on the left of the post.
"A problem well stated is a problem half solved." — Charles F. Kettering
It seems you forgot to include the richtextbox ocx files in the latest setup.
This is what I get when I try to execute the application after running the setup.
This is on a Windows XP system I formatted about a month ago and VB6 is not installed.
Sorry, but the only installer I'd used in the past 8 years or so had been the P&D Wizard, and for all it's problems it was, at least, fairly automatic when it came to ocx's. I'm now trying to use Inno and I didn't realize that I had to manually include things like the RTB ocx which I'll need to figure out how to do. Is there an installer that will do it for me automatically like the P&D Wizard did?
It's a long time since I last used InnoSetup. But I remember there used to be an addon to it that could be used to automatically find dependency and also generate the script file, just like P&D wizard.
Pradeep, Microsoft MVP (Visual Basic) Please appreciate posts that have helped you by clicking icon on the left of the post.
"A problem well stated is a problem half solved." — Charles F. Kettering
It's a long time since I last used InnoSetup. But I remember there used to be an addon to it that could be used to automatically find dependency and also generate the script file, just like P&D wizard.
I have just tried to install this on another machine and I have ran into the same ocx problem. Were you able to create a new setup.exe for the project?
Yeah, that would be great. It is Richtx32.ocx that is missing. Then the question becomes, what do I do with that ocx file? Sorry if this shows my ignorance, but I am a .Net kind of a guy
Pradeep, Microsoft MVP (Visual Basic) Please appreciate posts that have helped you by clicking icon on the left of the post.
"A problem well stated is a problem half solved." — Charles F. Kettering
Thanks for the suggestion Pradeep. I am not on the computer that is causing this problem just now, but I will test it out when I get a chance, and I will let you know.
If it doesn't I will register the above ocx Marty, and come back to you if I need another one
I have tried installing the suggested Runtime Pack, but it doesn't seem to have made any difference (assuming of course that I don't need to restart my machine for it to take effect).
Marty, I have just registered that other ocx file, and I now got this error:
"Can't find C:\Program Files (x86)\Private Message Viewer\data\vbkywords.txt VB Code Markup will not work"
I check that directory, and there doesn't seem to be a data folder in the Private Message Viewer folder. I created one, and added the files into it, and now the application loads correctly, but now I am back to an old problem...
File C:\...\privatemessages-gep13-Nov 30th, 2010.xml
does not seem to be a valid XML Private Message download file.
Please try again.
It looks like now your problem with dll/ocx is now resolved. But this is some other problem related to the code in program. Marty may be able to confirm.
Pradeep, Microsoft MVP (Visual Basic) Please appreciate posts that have helped you by clicking icon on the left of the post.
"A problem well stated is a problem half solved." — Charles F. Kettering
I have tried installing the suggested Runtime Pack, but it doesn't seem to have made any difference (assuming of course that I don't need to restart my machine for it to take effect).
Marty, I have just registered that other ocx file, and I now got this error:
"Can't find C:\Program Files (x86)\Private Message Viewer\data\vbkywords.txt VB Code Markup will not work"
I check that directory, and there doesn't seem to be a data folder in the Private Message Viewer folder. I created one, and added the files into it, and now the application loads correctly, but now I am back to an old problem...
Any ideas?
Gary
I've attached the files in two folders that you may be missing.
Gep, the file you sent me works fine for me. The only strange thing I see is that in the file name in the picture there's a comma before 2010.xml whereas the file appears the have a blank.