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)

ctrlbrk 12-21-2012 11:54 AM

Hmm. I figured that there was a hook that contained the private message ID somewhere, so you could know exactly what to query. But I haven't looked at the hooks or dumped any arrays to see what is available.

Once you have the PM ID#, I was thinking just to do a SELECT lookup, retrieve the date/time, then make that available as a $variable that can be used within the template.

For the moment, I'd just like the email bug fixed :)

ctrlbrk 12-21-2012 12:05 PM

Perhaps $pmdm->pmtext['pmtextid'] from looking briefly

kh99 12-21-2012 12:08 PM

Quote:

Originally Posted by ctrlbrk (Post 2392046)
Hmm. I figured that there was a hook that contained the private message ID somewhere, so you could know exactly what to query. But I haven't looked at the hooks or dumped any arrays to see what is available.

Well right, at the time the message is first quoted I can find the date/time, it's just that it needs to be stored as part of the quote tag or else I'd need to find it again (using only the user name and quoted text) every time the message is displayed.


Quote:

For the moment, I'd just like the email bug fixed :)
I'll definitely be releasing that fix today, but I wanted to see what else I can get done in the same release.

Edit: I had a power outage here yesterday, so I'm a bit behind but it's basically done and I'll be releasing it soon.

kh99 12-22-2012 04:16 PM

Quote:

Originally Posted by ctrlbrk (Post 2391791)
But what about adding a date/time header to each quote box?

Also you need to cache your templates.

Quote:

Originally Posted by ctrlbrk (Post 2391982)
There is another (major) problem, apparently the formatting of emails is messed up with half-HTML half-CSS half-original text.

OK, I released another version (0.91) that fixes the above, and also a problem someone asked about in the vb4 thread where it was incompatible with another mod. Also adds a cutoff setting that someone asked for via PM.

Edit: oops - I added a template to format the date/time in a new message, and now I've forgotten to cache that one. I'll add it next update (or you can add it in the cache_templates plugin if you want to take care of it before then).

Abu2 12-22-2012 11:09 PM

Quote:

0.91 (Dec 22, 2012)
Hi. I've a white screen on forum/private.php with new version.
Also, new version of product installs as a new product and it doesn't rewrite old one.
Previous version works great.

kh99 12-22-2012 11:11 PM

Quote:

Originally Posted by Abu2 (Post 2392329)
Hi. I've a white screen on forum/private.php with new version.
Also, new version of product installs as a new product and doesn't rewrite old one.

Hmm...I think the reason for installing as a new product is that I forgot to set the product ID on the previous version. I think it should be OK to uninstall the 0.9 version, but if it still doesn't work uninstall the 0.91 version as well, then reinstall it. (It might be the cause of the white screen, but I'll do some more testing as well).

Abu2 12-22-2012 11:17 PM

I reinstalled it, but... The same - white screen...

kh99 12-22-2012 11:21 PM

OK. I just tried it myself and didn't see any problems, so possibly it's a conflict with something on your forum, and I'd like to figure out what it is. Do you have any access to your php or web server error logs, to see if there's any information there? Also, which version of vb are you running?

Edit: Another thing you could do - there are 4 plugins, you could try disabling the separate plugins one at a time to see if you can figure out which one is the problem. That would at least let me know which part to focus on.

Abu2 12-23-2012 12:33 AM

I use 3.8.6. No errors in error.log.
I switched off all of PM's and quote mods, - no result.

But previous version 9.0 works.
Mabe problem in plugin hooks...

I tried to disable them step by step, but...

kh99 12-23-2012 12:38 AM

Could you try going to the Plugin Manager, find the section for "Private Message Quote Formatting", and disable those plugins one at a time, to see if you can figure out if one of them is causing the problem?


All times are GMT. The time now is 07:33 AM.

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.01068 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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