Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Private Message Quote Formatting Details »»
Private Message Quote Formatting
Version: 0.91, by kh99 kh99 is offline
Developer Last Online: Sep 2020 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 4.x.x Rating:
Released: 12-13-2012 Last Update: 12-22-2012 Installs: 79
Uses Plugins
Re-useable Code Translations  
No support by the author.

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

File Type: zip product-kh99_pm_quotes_0.91.zip (92.3 KB, 269 views)

Screenshots

File Type: jpg sg1.jpg (79.1 KB, 0 views)
File Type: jpg sg2.jpg (53.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
5 благодарности(ей) от:
da prez, Gemma, goxy63, jluerken, Whity

Comments
  #32  
Old 12-23-2012, 01:02 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sadiq6210 View Post
You are right Kevin
I changed the option "Add Date and Time to Quotes" to NO and it is working now.
Quote:
Originally Posted by da prez View Post
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.

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.
Reply With Quote
  #33  
Old 12-23-2012, 03:17 PM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #34  
Old 12-23-2012, 03:26 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sadiq6210 View Post
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 UP application

What do you think Kevin?

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.
Reply With Quote
Благодарность от:
sadiq6210
  #35  
Old 12-23-2012, 03:31 PM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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.
Thanks, this is exactly what I need

I will make new appearance and share it here

BRB
Reply With Quote
Благодарность от:
f4vn
  #36  
Old 12-23-2012, 05:12 PM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update
Reply With Quote
  #37  
Old 12-23-2012, 06:46 PM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sadiq6210 View Post
Thanks, this is exactly what I need

I will make new appearance and share it here

BRB
BEFORE:




AFTER:



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";
/* CSS Document */

.kh99_quote_container 
{
/* Applies to every quote */
padding-right: 20px;
}

.kh99_quote 
{
/* Applies to every quote */
  border: 1px solid #417394;
  border-radius: 5px 5px 5px 5px;
  padding: 4px 10px;
}

.kh99_quote_hide 
{
/* Applies to "show older messages" line */
   font:normal 11px Tahoma,Calibri,Verdana,Geneva,sans-serif;
   margin-left:25px;
   padding-bottom: 10px;
}


.kh99_quote_mine 
{
/* Applies to quotes from user readin PM */
  border: 1px solid #B5E192;
  background: url("images/gradients/category-23px-light.png") repeat-x scroll center top #EDF3E5;
}

.kh99_quote_sender 
{
/* Applies to quotes from user who sent PM */
  border: 1px solid #DBD6D2;
  background: url("images/gradients/category-23px-light.png") repeat-x scroll center top #F8F8F8;
}

.kh99_quote_odd 
{
/* Odd number quotes (first message in series is 'even') */
  margin-left:50px;
}

.kh99_quote_even 
{
/* Even number quotes (first message in series is 'even') */
    margin-left:25px;
}

.kh99_quote_1 
{
/* First quoted user (affects all subsequent quotes by this user) */
}

.kh99_quote_2 
{
/* Second quoted user */
}

.kh99_quote_3 
{
/* Third quoted user */
}

.kh99_quote_4 
{
/* Fourth quoted user */
}

.kh99_quote_5 
{
/* Fifth quoted user */
}
Attached Images
File Type: png conv0.png (21.1 KB, 0 views)
Attached Files
File Type: zip image.zip (4.3 KB, 19 views)
Reply With Quote
Благодарность от:
kh99
  #38  
Old 01-05-2013, 10:12 AM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
***************
<!-- BEGIN TEMPLATE: kh99_pm_quote -->
<div class="kh99_quote_container">

   <div class="kh99_quote kh99_quote_mine kh99_quote_even kh99_quote_0">
        <div class="bbcode_postedby">
                        <img src="images/misc/quote_icon.png" alt="Quote" /> Quote member <strong>testmember</strong>

        </div>
                <div class="message">wdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd</div>
   </div><br />

   <div class="kh99_quote kh99_quote_odd kh99_quote_1">
        <div class="bbcode_postedby">
                        <img src="images/misc/quote_icon.png" alt="Quote" /> Quote member <strong>Administrator</strong>

        </div>
                <div class="message"><quote>bla bla bla da da da da da d aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</div>
   </div><br />

</div>
<!-- END TEMPLATE: kh99_pm_quote -->ahhahhahahahah bla bvla bla
***************
Reply With Quote
  #39  
Old 01-05-2013, 12:49 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goxy63 View Post
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:
What version of this mod do you have installed? The problem you mention was in the original version, but I thought it had been fixed in version 0.91. (Edit: it looks like you've only downloaded 0.9, so maybe you just need to upgrade).
Reply With Quote
  #40  
Old 01-05-2013, 01:49 PM
vicius_the_one vicius_the_one is offline
 
Join Date: Dec 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mine not working too....
Reply With Quote
  #41  
Old 01-05-2013, 01:53 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vicius_the_one View Post
mine not working too....
Are you saying that you have the same problem with PM emails? Or do you have a different problem?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06900 seconds
  • Memory Usage 2,373KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (8)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete