![]() |
Extracting TFP CSS (Hardwired) for local use
I'm sure everyone is familiar here w/ the ability to save PMs in 3 formats: XML, CSV, Text. I always choose XML b/c I hate CSV b/c it needs MS Excel and for that reason alone I couldn't imagine how the PMs would even display properly or be user-friendly to my eyes. And plain text I hate for the obvious reasons, that it's a little bit harder to read much less you need to focus harder if you don't want to miss certain details and bits of words while reading a message. Plain text puts a horrible strain on my eyes, anyone's eyes, when it comes in mass or a great clump. Might as well open up an executable in wordpard (A fairly large one over 2MB) and then have a gander around for "the needle in the haystack".
But anyway, I have a XML for my PMs and somehow found a utility to read them called priv_msgs.xsl accompanied by a file called private_message_viewer.hta. All I did was put my XML file in a folder with these two files and fire up priv_msgs.xsl. It does a great job of bringing up the PMs but they look as if I were in "View Source" hunting down code. What I'm meaning to say is the XML is not styled in anyway, and I was wondering if I could copy a replica environment of TFP's [CSS] Private Message section for local use and read my PMs in a user-friendly way. Only problem is I don't know the first thing about XML much less pulling a CSS from TFP. I've tried saving a copy of one of TFP's pages to the disk then seeing if a CSS was created in the folder corresponding with the HTML I saved, but no CSS was in there. Just a few javascripts and pics to fix opacity. Also, I've found this code in a tutorial to Styling XML's: Code:
<LINK href="mystyle.css" rel="style sheet" type="text/css"> I'm trying to do this using the styles Hardwired and Dark Cloud. |
I seem to recall writing a little HTA application like that for someone here awhile back. That may be the one you're referring to. If so, you need to launch the HTA file, not the XSL file, in order to view the formatted messages.
|
D'oh! You're right! Thanks! :D
But is there still hope for my local TFP PM hiearchy? I really would like to style it as if I were in the PM area for offline use. |
oldtimer,
I already have a stylesheet that should work. I need you to send me the original HTA, XSL, and any other files in the original package at sinister_motives@cox.net as I no longer have them. |
No problem. Sorry about the PM box as I see you had tried to PM me. If you were the man who created this utility, you are god. :D *As I can't remember where in the world I got this thing :o*
|
This is going to take a tad longer than I thought. I'll have to throw some regular expressions at the bbCode tags to make them behave. (Yeah, I have code for that too. Just gotta find it.)
|
Hey, whatever it takes. I'm sure it'll be that much sweeter when it's done. :D
|
Here you go. It's pretty choice, if I say so myself. :D
Copy and paste the two code sections into separate files and name them as shown below. Launch the HTA application and use as before. private_message_viewer.hta Code:
<html> Code:
<?xml version="1.0" ?> |
Awesome! I'm bewildered! But one element remains askew: The style choice. It seems to have adopted the TFP v4.0 styleset instead of Dark Cloud or Hardwired as originally requested or was it made that way on purpose? Maybe you didn't see that part. :( Sorry to complicate things.
Also I was wondering whether you knew if the PM XML file saved by TFP also records the folder structure for the sake of organization. I believe it does not but I could be wrong. But if indeed the folder structure is not saved: Inbox, Sent Items & all Custom folders following are not going to be available when reviewing the PMs. If like I suspect, this is TFP's doing, could you write an routine to help TFP's PM archiving system save folder structures into an XML [assuming you know PHP and other associated code and submit that to Hal for implementation] and honor them when viewed by your application? For what I have right now is complete chaos amongst my PMs. On TFP, I had them branched off into folders and that seemed to help tons: Both in location time and next-to-none frustration isolating them for a one-by-one view. I'm sure this would be a worthwhile addition to your application and users archiving PMs on TFP. Moreso, the URL BBCode doesn't seem to parse and remains plain-text leaving all links unlinkified and untitled, if titled. And in addition to the proposed improvements above, I was going off of the literal meaning of copying the PM area in the User CP, not just the style scheme. To elaborate, not the left column as it is unnecessary but the Folder Controls section shown in the User CP > Private Messages area. That way a automatic dropdown field will be available for all users using your application and load their corresponding folders into that list for quick jump. Then the way the PMs are shown could also be copied: Linkified Title that leads to individual read. I understand though that this could be by design. In that TFP structures the XML so that the PMs and their corresponding titles are shown at the same time. If that is the case, could your application manipulate the XML using some kind of rules to get the kind of view I'm talking about or must the PM archiving utility of TFP's be changed in the way it saves the XML? :crazy: That way I'll have a true replica offline environment - organized and easy to read. Thanks for all your hard work!!!! :thumbsup: |
Quote:
Quote:
Quote:
Quote:
Quote:
|
Quote:
Quote:
This way I could have a hiearchy of: • Inbox • Sent Items • Personals • Support etc. displayed as so? And expanding upon request into a index of, corresponding by folder, PM titles that lead to individual views. Quote:
If it helps isolate the problem - Working Intermittent code: • Quote • Bold • Italic - *I think; Hard to tell using TFP v4.0 style Smilies: Also along these lines, would it possible to utilize a local directory for TFP's smilies [called maybe 'Smilies'] with actual copies contained and then have PMV [Private Mess. Viewer] display them? Trust me, I'm not trying to get you to get PMV to play DVDs. :lol: But I'm just trying to replicate the home and the feel of vBulletin PMs without being online or on the forum physically. Nothing more. My extravagant [if you can even call them that] ideas stop short of there. :D To further elaborate on the idea, maybe an additional automatic creation process for a user wanting smilies. By selecting a 'Add Smilie Support' button or dropdown choice from a potential File menu > Options dropdown if you feel that would be more neater and less clutter on the other buttons already present. Then following, would be a pop-up for the user to enter manually the directory of the smilies for their corresponding forum, which your application would download and automatically create a 'Smilies' directory and place all gifs inside. Plus, any "identifying table" would have to be downloaded [if such a thing I'm proposing exists in vB forum coding] as well as most forums have symbols near impossible to document alone for proper conversion everytime. So PMV could be a ever-flexible application. In theory, it just goes with the flow. Quote:
So with that in mind, I'm about 100% sure Halx didn't design the PM archiving system. It came bundled with vB. I was thinkin', if possible, you might be able to improve upon the vB's PM archive hack or mod. Maybe you can add a HTML option? Which would save a PM replica environment according to what forum you're on, maybe get it to copy the current template style you have when selecting the Archive option, then you know have it save the PM area along with the messages in a "Save Webpage As" way. Or, even have it save XML outputs more cleanlier and organized as discussed above, if indeed there is a problem with the way they're saved? Anyway, I'm droning. A lot of ideas here. Would you be willing to start a project on this? This could be the beginning of something very beautiful. ;) |
All times are GMT -8. The time now is 11:03 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project