Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Private Message Quote Formatting Details »
Private Message Quote Formatting
Mod Version: 1.0, by kh99 (Senior Member) kh99 is offline
Developer Last Online: Nov 2017 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (3 votes - 5.00 average) Installs: 32
Released: 15 Dec 2012 Last Update: 01 Jan 2013 Downloads: 101
Not Supported Uses Plugins Auto-Template Re-usable Code Translations  

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.

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).

(vb4 version is here: http://www.vbulletin.org/forum/showthread.php?t=292968)


Installation:
----------------------------
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 option - 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.

Note: Because I forgot to set a product id for version 0.90, when upgrading from 0.90 to a later version the mod installs as a separate product so that it looks like this mod is installed twice. If that happens you should just be able to uninstall version 0.9.

History:
----------------------------
1.0 (Jan 01, 2013)
  • Fixed issue with white page on some forums
  • All templates now cached (I hope).
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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	sg1.jpg
Views:	318
Size:	73.4 KB
ID:	142898   Click image for larger version

Name:	sg2.jpg
Views:	153
Size:	53.9 KB
ID:	142988   Click image for larger version

Name:	sg3.jpg
Views:	186
Size:	55.8 KB
ID:	143114  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Private Messages Enhancements Private Message Quote Formatting kh99 vBulletin 4.x Add-ons 86 27 Jun 2018 21:44

  #16  
Old 21 Dec 2012, 02:03
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Originally Posted by kh99 View Post
Could you post the message (showing bbcode) that caused that?
Best I can tell, any/all PM's that contain a quote (vb quote) will trigger the problem.

No bbcode being used or inserted by the user.

Examples:
http://screencast.com/t/iQOyaszXjY

First user sent "test 123" then second user replied "reply test", and the resulting email was:

http://screencast.com/t/bfJwu9uOTFQk
Reply With Quote
  #17  
Old 21 Dec 2012, 02:12
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Oh, I see. I missed that you were talking about the email. I'll look in to that, thanks.
Reply With Quote
  #18  
Old 21 Dec 2012, 02:13
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
I am watching this - I'm guilty of asking for this for v3.... So throw rocks at ME if it causes problems meanwhile I'll just wait and let the rest of you take all the risk!
Reply With Quote
  #19  
Old 21 Dec 2012, 02:24
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Well, that's why it's beta - I haven't tested it a lot. I don't think I even looked at a PM email when this was installed because it never occurred to me that it could be a problem.

Edit: oops - I forgot to mark the vb3 version as beta....
Reply With Quote
  #20  
Old 21 Dec 2012, 02:26
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Normally I test stuff full speed ahead and damn the torpedoes, but on this one I'm not sure if will uninstall completely. Otherwise I would have right at it.
Reply With Quote
  #21  
Old 21 Dec 2012, 02:36
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Obviously others are interested in the vb3 version so it doesn't matter to me if you wait or decide not to install it at all. But for anyone else who might be worried about it, this makes no database changes and has no custom uninstall code, so uninstalling won't be a problem.
Reply With Quote
  #22  
Old 21 Dec 2012, 02:37
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Originally Posted by kh99 View Post
Obviously others are interested in the vb3 version so it doesn't matter to me if you wait or decide not to install it at all. But for anyone else who might be worried about it, this makes no database changes and has no uninstall code, so uninstalling won't be a problem.
Nice to know.

I thought it was a good idea (it is) that's why I asked for it for v3.
Reply With Quote
  #23  
Old 21 Dec 2012, 02:47
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Yes, I very much want this to work... just need to fix the emails, or trigger them to be sent in HTML mode.
Reply With Quote
  #24  
Old 21 Dec 2012, 03:18
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Originally Posted by ctrlbrk View Post
Yes, I very much want this to work...
Me too.
Reply With Quote
  #25  
Old 21 Dec 2012, 03:34
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
It turns out that it wasn't a big fix. I'll release a new version tomorrow.
Reply With Quote
  #26  
Old 21 Dec 2012, 04:11
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Originally Posted by kh99 View Post
It turns out that it wasn't a big fix. I'll release a new version tomorrow.
Excellent, thanks. Crossing fingers for adding the date/time as well, I know it will take some PHP and query but I think is worth it
Reply With Quote
  #27  
Old 21 Dec 2012, 11:14
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Originally Posted by ctrlbrk View Post
Excellent, thanks. Crossing fingers for adding the date/time as well, I know it will take some PHP and query but I think is worth it
I'll look in to doing that. But one thing about that: it will be something that won't go away when you uninstall the mod. It's going to have to go in as part of the name of the person you're quoting.
Reply With Quote
  #28  
Old 21 Dec 2012, 11:27
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Originally Posted by kh99 View Post
I'll look in to doing that. But one thing about that: it will be something that won't go away when you uninstall the mod. It's going to have to go in as part of the name of the person you're quoting.
Or just a $variable? I figure you'll need to do a SELECT query to find the info, then the plug-in could just throw it in a $variable? I for instance would prefer to be able to float: right; the date on the other side of the quote box. But either way, it is welcome.
Reply With Quote
  #29  
Old 21 Dec 2012, 12:12
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Originally Posted by ctrlbrk View Post
Or just a $variable? I figure you'll need to do a SELECT query to find the info, then the plug-in could just throw it in a $variable? I for instance would prefer to be able to float: right; the date on the other side of the quote box. But either way, it is welcome.
I'm not sure what you mean by a variable. (Edit: oh, I think I see now, you mean a variable you can use in the template). Maybe you have an idea of how to do it that I haven't thought about. But the quote is just a bbcode with the user's name as an option and the text as the parameter, like: [QUOTE=ctrlbrk]Or just a $variable?...[/quote]. That's all the information there is. It *might* be possible to do a query for previous messages matching the quoted text (assuming it hasn't been deleted), but I'm not going to try to do anything like that - it might end up being more complicated than the entire mod is now.

So that just leaves adding it to the option somehow. Quoting posts uses that method by adding the post id after a semicolon, like [QUOTE=ctrlbrk;2392037]Or just a $variable?...[/quote], then the code looks for that, strips it off and uses it to create the little arrow that takes you to the post. I might be able to do something similar with the date and time, but then if my mod is uninstalled it will still be there (unless I go through all PMs on the system and delete it when I uninstall). That might not be a problem if it's text - my mod can strip it off and make it a variable in the template, and if it's uninstalled it will just appear after the name. Adjusting the timezone might be a bit of an issue but I think I can deal with that.

Anyway, let me know if you have a different idea.
Reply With Quote
  #30  
Old 21 Dec 2012, 12:52
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Hmm...I suppose I could just do one query to try to match the quoted text and username, and if it fails (like if the message was deleted) then it just won't show up. I don't like that as mush as including it as part of the option text, but I'm not the one requesting it. Would you rather it be a hit-and-miss type of thing that depends on the quoted message still being in the system (but it would work for existing pms with quotes and would go away completely if uninstalled), or make it part of the option, in which case it would not be there for pre-existing pms and it wouldn't go away when uninstalled, but it would stay around even if the mod is uninstalled? (In either case it will be a variable that you can float right, as long as this mod stays installed).
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:36.

Layout Options | Width: Wide Color: