![]() |
Private Message Quote Formatting
1 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: https://vborg.vbsupport.ru/showthread.php?t=292996) 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 - 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. History: ---------------------------- 0.91 (Dec 22, 2012)
|
That nesting always drove me crazy.
Thanks |
Workable for 3.8.x by chance?
|
Quote:
|
No file to download. Drat! Never mind. I see it.
|
Most, most, most, most useful. The previous nested format was hideous.
|
Installed, nominated, rated. Thank you for this
For me it is better than before, but its still "nesting" only in better way http://img819.imageshack.us/img819/1962/81915078.png My forums have fixed widtht, maybe that is why or...? Anyways, thanks, even like this saves much more space than before. Cheers |
Quote:
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? |
Yes every pm is like that, all I did was just reply bellow existing 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 |
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? |
Found what is the problem just now, problem is if message txt is wrapped with [COLOR] tags, check message with bb codes bellow:
HTML Code:
[QUOTE=Administrator2][COLOR="Black"][B][QUOTE=Administrator2][COLOR="Black"][B][QUOTE=Administrator2][COLOR="Black"][B]testing testingtesting testingtesting testingtesting testingtesting testingtesting testingtesting testingtesting testingtesting testingtesting testingtesting testingtesting testingtesting testingtesting testing[/B][/COLOR][/QUOTE] Thank you for your time EDITED I am using this mod, and this mod is setting users default txt color https://vborg.vbsupport.ru/showthread.php?t=231923 |
Ah, great. Thanks, I'll look in to that tomorrow (and let's hope that it doesn't break the whole thing).
|
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
https://vborg.vbsupport.ru/showthread.php?t=231923 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 |
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.
|
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 ^^ |
I'll think about that. I had intended to have some different styles that were user-selectable, but finally decided that I'd never get it released if I tried to make it too complicated. :)
And as I mentioned in the description, if anyone wants to take a shot at improving the look of it, please do. |
Quote:
|
Nice mod KH99. I bet you put a few hours in this one! :) I had thought about doing something with this part of private messaging, but every time I looked at the code ... well you know.
Thanks! :) |
Quote:
|
great mod m8.installed
|
Quote:
Quote:
Quote:
|
Quote:
|
Great mod :)
Kevin, could you put a screen shot to show the effect of this option? "Add Date and Time to Quotes" I set this option to yes but I cannot notice any change ! Thanks |
I'll try to make a screen shot later. But I think the most likely reason you don't see anything is because it does not add date and time to existing messages, it only adds it to new messages.
|
I think there is something wrong
In existing messages it is okay (I mean the quotes formatting not the date option) But if I receive a new message and after reply, the another user will receive my message/reply without any quote ! Should I make anything to quote the previews message before send it ? |
Hmm...you shouldn't have to do anything special. If you disable this mod, does the quote appear?
When you wrote your reply, did you notice if the message was in quote tags in your reply? |
Quote:
Quote:
|
Hmm...try this if you can: go to the Plugin Manager and disable the "PM Quote Formatting - Add Date/Time to Quote" plugin (uncheck the "Active" checkbox and press "Save Active Status" button at the bottom. See if that makes the quote appear in the reply box.
Edit: Actually, now that I think about it, that probably is no different than setting "Add Date and Time to Quotes" to no. When you set it to Yes, that chnages the way the quote tags are inserted in the reply box, and apparently that isn't working for you for some reason. What version of vbulletin do you have? What version of php? And is your site using a different language? |
Quote:
I changed the option "Add Date and Time to Quotes" to NO and it is working now. I am using v4.1.12 PHP v5.2.17 Arabic language RTL (I already modified the template "kh99_pm_quote.css" and changed all (left) to (right) Thanks |
I have the same issue.
Reply box is empty when clicking reply to message. Only happens when add date and time is set to yes. |
Quote:
Quote:
Thanks for that information. It turns out that the product xml file is missing a template. I've fixed it (as of the time of this post), so you can download the 0.91 zip file again, or if you want to create the template yourself, it's named kh99_newpm_quote and has only 1 line that looks like this: Code:
[QUOTE={vb:raw originalposter} - {vb:raw datestr}]{vb:raw pagetext}[/QUOTE] Sorry about that, and thanks for working with me to figure it out. |
Now it is perfect :) Thanks Kevin
Just a suggestion It will be great if you can make two different quote background for example User 1 >> His quotes will appear in red background User 2 >> His quotes will appear in blue background Something like "WHATS Application" What do you think Kevin? :) |
Quote:
You can do that yourself if you want. In the css file, the class kh99_quote_mine will be applied to your messages, and kh99_quote_sender will apply to the person who sent the message. There is also kh99_quote_1 - kh99_quote_5 which can be used in a similar way to set the background color for up to 5 different quoted users. As I mentioned in the mod description, I'm more of a programmer than a design person, so my intention was to provide the variables so that people could format it the way they like. Maybe if someone comes up with a nice looking display they can share the ccs and or templates here. It would also to be nice to have the look selectable (possibly by each user), but I probably won't do that unless it seems like people want it. If anyone has any ideas along these lines, please share them. |
Quote:
I will make new appearance and share it here :) BRB |
Thanks for the update :)
|
1 Attachment(s)
Quote:
https://vborg.vbsupport.ru/attachmen...4&d=1355445160 AFTER: https://vborg.vbsupport.ru/attachmen...1&d=1356291559 How? 1- Download the attached file and upload it to image folder. 2- Open template "kh99_pm_quote.css" and replace it all with: Code:
@charset "UTF-8"; |
Hi
Looks like there is another problem when it comes to email notification about new PM for users. That is, if user receives new pm without quotes its ok, with quotes he gets email notification like this: Code:
THIS is message: |
Quote:
|
mine not working too....
|
Quote:
|
All times are GMT. The time now is 07:05 PM. |
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:
|