![]() |
Add a synopsis of each PM in the Message List Version 2.0
I got the idea for this hack, while trying to prune my Inbox from old (and useless) PMs. As it usually happens, I didn't remember from the title, what each PM was about, so I kept going back and forth between the Message List and the messages themselves.
I thought that if I could have a small part of the PM shown in the list, it would help my work enormously. So, I took some time to do it. I call that initial part of the PM which is shown in the Messages List, a "synopsis". Easy hack, one or two file edits and anything from one template edit. Please remember to click Install, if you like this. Version 1.01 : Following another member's suggestion, I removed the possible bbcode from the synopsis of the messages, shown in the Message List. Version 2.0 : In this version, I added the option of allowing the forum users to select if they want to see a synopsis of their PMs in the Messages List or not, and to define how long their synopsis should be. A new column is added in your user table for this functionality. PLEASE NOTE: There are several alternative ways to show your synopsis, after mentionning two or three of them, I decided to remove them from the installation instructions and mention only the simpler one, which requires only one template modification, in the simplest form. This was done in order to avoid confusion between the users who decide to install this hack. The way the synopsis is presented is a template issue, so it should be easy to come up with any alternatives you want. Rgds |
Thats pretty nifty, I'll install this first thing tomorrow
|
Works great....I have the same issue sorting through pm's from time to time.
|
Thanks guys, glad if you like it. Nothing serious, just a small one to help your users and yourselves out.
Rgds |
a suggestion would be is to remove the bbcode then trim. use strip_bbcode().
|
Good idea, time for version 1.1.
One question, why should I trim? |
thumbs up m8, and taking off BBCode is what I was gonna say :P
|
Quote:
|
i did wot ever mentioned in the text no luck nothing shows up in my pm same old style am i missin something here?
|
Really nice, thanks. Since I had Traffix flag pm hack installed, all I had to do is to add <div class='smallfont'>
$synopsis </div> in the messagelistbit template under the title and userbit <td>. And I linked the more in php to pm |
Quote:
|
Quote:
Version 1.02, I out-did myself, three versions in one day! LoL |
You don't really need to change the other templates. Date can be with same <td>.
|
I know, and maybe you are right, this might be the way to go, however, I do not like it when the data/time are in the same <td>, it's kind of messy. But I agree, the hack becomes much simpler, since those who install it, have to edit only one template.
I think I shall add another alternative. LoL, this is getting ridiculous! I also added some code to allow your users to select if they want to have a synopsis or not, as well as to define the length of the synopsis. If someone is interested, I can provide the code for that, it entitles a couple of changes in profile.php and a change in the modifyoptions template. Maybe we should move to ... version 2.0!! LOL |
Oh yes, I'd like that option
|
Can you make it strip the quotes?
|
OK, the instructions are now in the installation text file. If anyone wants to upgrade from 1.xx to 2.0 and can't figure out how to do it, let me know.
Rgds |
To remove the quoted message, I added:
Quote:
|
I'll tell you, this hack is pretty helpful. I get lots of PM daily and now I don't have to dig into each one of them to locate a single one. And it also makes easy to clean up the message boxes. We just have to wait until someone decides to "ajax" the delete :-)
|
Yeah, and you make me include new things every hour!
Strip quotes are now in the instructions. I also made a change in the way the instructions related to the profile.php file, so please check it out again. I promise, no more changes, unless Lionel comes up with another good idea! LoL |
Sweet stuff!
just curious is is possible maybe to have an option like mouse roll over the title to give a PM synopsis? |
Quote:
|
Quote:
|
Quote:
One could do it possibly, with Javascript, but this is not my field of expertise. Rgds |
Ok Thanks
hmm thats weird i dont see it in usercp! > edit options |
Which version have you installed? If you installed the initial version (1.xx) there is no such parameter, you have to read the installation .txt file and see if you want to upgrade to version 2.
Rgds |
I installed this version the one attached to this post the txt file....which ever that is!
thanks |
If you check the header of this thread, you'll notice that there are a few versions out already. The latest text file describes two installation methods, one with and one without any user control over the synopsis. If you have install the first one described, then there are no user-selectable options.
Rgds |
The install file doesn't say how to change the modifyoptions template so even when following method 2, you don't get the user selectable option for the synopsis.
|
OK, edit memberinfo template and find:
HTML Code:
<tr> HTML Code:
<tr> Sorry for the inconvenience. Also, for those who installed the second version (with the UserCP Option, which ... was not there, LoL) I came up with a different template, for the message list, which I think is more easy to read. So, if you want to use it, here is the code for pm_messagelistbit template. HTML Code:
<tr> |
just installed. works great! thanks!
it looks like the text file cuts off at the end... is that right? EDIT: also, wouldn't this be better suited in the PM Enhancement forum? i'd run across it the other day, and went back to look for it today and it took a while.. |
Thanks for the nice words.
No the file doesn't cut off at the end. I was in a hurry to upload it, since a member noticed that I hadn't included the memberinfo template modifications, so I just send it like that. And yes, it might be better of in the PM enhancements, but since it started with a couple of lines code changes, I put it here. Maybe I should ask a moderator to move it. Rgds |
sv1cec,
Sorry about this... but it should be the "modifyoptions" template, not the memberinfo one :) I use a slightly different synopsis view, see the attached image. Thanks, Delphy |
Oh God, you are right, what was I thinking???
Thanks for pointing it out. Yes, there can be any kind of synopsis styles. The ones I 've mentioned are some that I use or are easy to customize (only one template edit). Again, thanks for pointing out my error. Rgds |
Folks,
you might want to edit your usercp.php file, as well, to properly show the synopsis there too. To do that, open you usercp.php file and find: PHP Code:
PHP Code:
|
Excellent! I love it, thanks a lot. :)
|
Thanks, appreciated!
|
Awesome hack, thanks! :)
|
Hello,
I have run into a snafu with this hack, but its not the hack at all but the way vBulletin 3.x handles thier Private Messgaes by calling on the postbit. This code help that issue by letting me have the postbit as the PM type and legacy as my postbit. PHP Code:
If I need to explain in more detail I can. Thanks |
Yes, please elaborate, because I cannot understand what your problem is.
Rgds |
All times are GMT. The time now is 11:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|