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

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

Category: Private Messages Enhancements - Version: 3.8.x Rating:
Released: 12-14-2012 Last Update: 12-31-2012 Installs: 34
Uses Plugins Auto-Templates
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.

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: https://vborg.vbsupport.ru/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

File Type: zip product-kh99_pm_quotes_vb3_1.0.zip (114.9 KB, 103 views)

Screenshots

File Type: jpg sg1.jpg (73.4 KB, 0 views)
File Type: jpg sg2.jpg (53.9 KB, 0 views)
File Type: jpg sg3.jpg (55.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Abu2, vijayninel

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

Thanks, I'll try installing those anyway because I'm not sure what else to do.

Can you tell me what version of vb and php you have?

Edit: Also, another thing you could do if you still have this mod installed: There are 4 plugins - try enabling only one at a time to see if you can determine which one is causing the white screen.
Reply With Quote
  #53  
Old 12-31-2012, 12:46 PM
vijayninel's Avatar
vijayninel vijayninel is offline
 
Join Date: Mar 2009
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply. Disabling the plugin - "PM Quote Formatting - Add CSS" makes the rest work of the mod work fine. Enabling it gives white pages.

I have vB 3.8.5 on PHP 5.3.10-1ubuntu3.4
Reply With Quote
  #54  
Old 12-31-2012, 01:06 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you try replacing the code in the "PM Quote Formatting - Add CSS" plugin with this:

Code:
if (THIS_SCRIPT == 'private' && $vbulletin->options['kh99_pmq_enable'])
{
    if (intval($vbulletin->versionnumber) == 4)
    {
        if ($vbulletin->options['storecssasfile'])
        {
            $template_hook['headinclude_css'] .= '<link rel="stylesheet" type="text/css" href="' . vB_Template::fetch_css_path() . 'kh99_pm_quote.css?d=' . $style['dateline'] . '" />';
        }
        else
        {
            $template_hook['headinclude_css'] .= '<link rel="stylesheet" type="text/css" href="' . vB_Template::fetch_css_path() . 'kh99_pm_quote.css" />';
        }
    }
    else // vb3
    {
        eval('$kh99_pmq_css = "' . fetch_template('kh99_pm_quote.css') . '";');
        if ($kh99_pmq_css !== '')
        {
            $vbulletin->templatecache['headinclude'] .= '<style type=\"text/css\">' . addslashes($kh99_pmq_css) . '</style>\n\n';
        }
    }
}
Reply With Quote
  #55  
Old 12-31-2012, 01:17 PM
vijayninel's Avatar
vijayninel vijayninel is offline
 
Join Date: Mar 2009
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^ Replaced. Working perfectly fine now. Thanks.

Installed.
Reply With Quote
  #56  
Old 12-31-2012, 01:26 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great - yeah, it's combined vb3/vb4 code and I thought at one point it was a good idea to check for the vB_Template class, but I guess some mod is defining that. I should have known better. In any case I appreciate your help in figuring it out.

I'll release an update soon with that fix.
Reply With Quote
Благодарность от:
Max Taxable
  #57  
Old 01-01-2013, 02:09 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.0 hopefully fixes the white page problem some people had, and also caches that template I missed last time. Thanks to everyone who helped find the bugs in the beta versions.
Reply With Quote
  #58  
Old 01-01-2013, 03:41 PM
Abu2's Avatar
Abu2 Abu2 is offline
 
Join Date: Sep 2007
Location: Russia,Moscow
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

kh99, Thank you! It works!
Reply With Quote
Благодарность от:
kh99
  #59  
Old 03-05-2013, 11:50 AM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about moving the quote command in the quick reply box down a bit so people dont mistakenly put text inside the quotes when answering?
Reply With Quote
  #60  
Old 03-05-2013, 12:36 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joeychgo View Post
How about moving the quote command in the quick reply box down a bit so people dont mistakenly put text inside the quotes when answering?
You can do that yourself - edit template kh99_newpm_quote and just put a blank line above the code that's already there.

You can also do it without this mod by editing newpost_quote (under New Posting Templates) and do the same thing. If you do that, it will work for both PMs and regular posts. If you only wanted the space for PMs you could do this:
Code:
<if condition="THIS_SCRIPT == 'private'">
</if>[QUOTE=$originalposter]{$pagetext}[/QUOTE]
Reply With Quote
  #61  
Old 12-19-2015, 02:05 PM
OnlyTouch's Avatar
OnlyTouch OnlyTouch is offline
 
Join Date: Nov 2015
Location: Moscow
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good mod, installed!
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 03:29 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.05309 seconds
  • Memory Usage 2,347KB
  • 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
  • (2)bbcode_code
  • (1)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)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