vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Private Messages Enhancements - Private Message Quote Formatting (https://vborg.vbsupport.ru/showthread.php?t=292996)

kh99 12-14-2012 11:00 PM

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.

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

CoffeeLovesYou 12-15-2012 07:43 AM

This is a very nice addition, kh99!
Thank you very much
I hated when I had a PM I kept responding to for a long time because the quotes started to look really weird. This solves the issue!

edit:
:(
After installing this, I get this error.
Fatal error: Call to undefined method vB_Template::fetch_css_path() in /MYFORUMPATH/global.php(607) : eval()'d code on line 507
I replaced my actual forums path with MYFORUMPATH to protect my forum's path privacy lol but that is the error I'm getting.
No, it isn't all over the site, only when I go to private.php (aka my private messages)

kh99 12-15-2012 12:51 PM

Yeah, sorry, I somehow managed to attach the vb4 version. It's fixed now.

Black Tiger 12-15-2012 02:27 PM

This looks very nice.
I've tagged it for now, and wait until it's a bit more tested. Normally I could do that too, but my board is reasonably modded and has VBA CMPS on it, so at this point I don't take any risks. But I like this mod!

Fluke667 12-16-2012 12:08 PM

Thank you it looks so nice :)

blind-eddie 12-16-2012 01:41 PM

Wow, what a difference... Default quote in pm gets huge when you reply alot, I never liked the way it looked.... Very nice... Thank you for sharing your addon.

CoffeeLovesYou 12-16-2012 04:59 PM

For some reason I don't see ANY quotes in ANY of my PMs after installing this again.
In the PM reply you can see about 4 or 5 quotes but none of them are showing up when I go to actually read the PM.

Why?

https://vborg.vbsupport.ru/external/2012/12/15.png

kh99 12-16-2012 05:25 PM

I'm not sure, but it seems like maybe the template isn't working. You installed the vb4 version when I accidentally posted it, right? Did you completely uninstall that one? Maybe uninstalling and reinstalling, if you haven't already.

What verson of vb are you running?

CoffeeLovesYou 12-16-2012 08:37 PM

Yes, I completely uninstalled and reinstalled.
I am running vB3.8.7

kh99 12-16-2012 08:53 PM

Could you try creating a new style with no parent and see if that works?

Also, do you have any other mods that have to do with PMs? Maybe go to the Plugin Manager, sort by hook location, and see if anything else is using bbcode_create.


All times are GMT. The time now is 10:23 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
  • Page Generation 0.01025 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete