vBulletin Mods

The Official vBulletin Modifications Site

Private Message Quote Formatting
by kh99
14 Dec 2012 00:33

3 Attachment(s)
What is it?
This mod arranges quotes in a PM to be in a "conversational" order instead of being nested. This solves the problem of displaying deeply-nested quotes. This mod also has an option to add a date/time stamp to quoted PMs.

Note: I'm marking this "beta" because it hasn't been tested very much. If you try this, please let me know if you have any problems or would like it to work differently.

Also, I'm not much of an html/css person - this mod mostly provides variables which can be checked in the template, and a bare-bones css file. If anyone comes up with css for a better looking format and wants to share it, please do (and maybe I'll put it in a later version).

(vb3 version here: http://www.vbulletin.org/forum/showthread.php?t=292996)


Just import the product XML file from the Product Manager. This doesn't change stored PMs in any way (unless you enable the date/time stamp - see below), so you can uninstall or disable the product at any time to go back to the original PM template.

If you'd like to customize the format, you can edit the kh99_pm_quote, kh99_pm_quote_bit, and/or the kh99_pm_quote.css templates.

If you want to add date/time tags to PM quotes, go to the adminCP options under "Private Messaging Options" and set "Add Date and Time to Quotes" to yes. Note that if you later uninstall this mod, any messages quoted while this option was on will still contain a date/time tag, but it will display after the name in a default format and timezone. If this is a concern, it's probably better that you don't enable this option.

Also note that the date/time option only adds the timestamp to newly quoted messages - it will not add one to quotes in existing messages.

0.91 (Dec 22, 2012)
  • Fixed conflict with at least one mod that adds default text formmating
  • Fixed problem with html in pm notification email
  • Option to show only N newest quotes and hide the rest
  • Optional Date/Time tag added to quotes in PMs
  • Added enable/disable option for the entire product, in admincp
  • Templates are now cached
0.9 (Dec 14, 2012)
  • Initial Release

da prez 14 Dec 2012 00:38

That nesting always drove me crazy.


Max Taxable 14 Dec 2012 01:04

Workable for 3.8.x by chance?

kh99 14 Dec 2012 01:12


Originally Posted by Max Taxable (Post 2390581)
Workable for 3.8.x by chance?

This version definitely won't work. I'm not sure what it would take to make it work with vb3 - I'll take a look at it.

Snowhog 14 Dec 2012 02:01

No file to download. Drat! Never mind. I see it.

Gemma 14 Dec 2012 11:34

Most, most, most, most useful. The previous nested format was hideous.

goxy63 14 Dec 2012 12:33

Installed, nominated, rated. Thank you for this

For me it is better than before, but its still "nesting" only in better way


My forums have fixed widtht, maybe that is why or...?

Anyways, thanks, even like this saves much more space than before.


kh99 14 Dec 2012 14:01


Originally Posted by goxy63 (Post 2390626)
Installed, nominated, rated. Thank you for this

For me it is better than before, but its still "nesting" only in better way

My forums have fixed widtht, maybe that is why or...?

Anyways, thanks, even like this saves much more space than before.


I can't really see from that what's going on. One thing about this mod is that it only works like is shown in my screen grab if the PM has a series of quotes where the users just replied above or below any existing quotes. If you reply above *and* below, or split up the quote, then it will give up and go back to the original nesting for that part.

For some reason it doesn't look like it's working right in the image you posted, but like I said I can't really see why. Is every PM like that?

goxy63 14 Dec 2012 15:26

Yes every pm is like that, all I did was just reply bellow existing [QUOTE][/QUOTE] tags in "Quick Reply" box. Not quite sure about my admin CP settings will check them out but I think nothing was touched there from default options.

Thank you

kh99 14 Dec 2012 15:37

Hmm...do you know if you have your forum set to save the CSS as files? Try going to the Style Manager > Edit Templates > CSS Templates and edit kh99_pm_quote.css, then just put a space somewhere or something and save it, and see if that makes any difference. (I'm thinking maybe the CSS file doesn't exist after it's installed).

Edit: no, I tested that and that's not it. Could you reply to the PM and copy the message (with bbcodes showing), and PM it to me here? I want to check if there's something about the message format that is confusing my plugin. Also, what version of vb do you have?

goxy63 15 Dec 2012 02:19

Found what is the problem just now, problem is if message txt is wrapped with [COLOR] tags, check message with bb codes bellow:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If no [COLOR] tags everything is just great :]

Thank you for your time

I am using this mod, and this mod is setting users default txt color

kh99 15 Dec 2012 02:23

Ah, great. Thanks, I'll look in to that tomorrow (and let's hope that it doesn't break the whole thing).

goxy63 15 Dec 2012 11:48

Just tested in many different ways with color and bold tags, when in mentioned mod default color is excluded everything is working fine. That is if user manually choose color or bold txt your mod is working just fine which means that this mod is making trouble
Sorryz for problems, was thinkig its cause of your mod, probably I will just uninstall that mod as its not updated since 2010

Thank you for your time, cheers

kh99 15 Dec 2012 13:27

Thanks. Yeah, I looked at it a little bit last night and came to the same conclusion - I'm not able to reproduce the problem no matter what I enter in the editor. At the same time, it doesn't look like that mod's doing anything wrong, it's just doing something different than what normally happens. So I'm still going to try to figure out a way to make it work. The biggest problem right now is my mod is a bit complicated, and I wrote most of it a couple months ago, now I don't remember how it works.

jluerken 17 Dec 2012 10:05

Thanks kh99. Would be nice to add a "collapse" option so that only the last reply is completly visible and the rest is collapsed by default.
Should be an optional setting because I don't think everybody likes it.
For me this would be the option which makes this mod perfect ^^

All times are GMT. The time now is 07:32.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.