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-23-2012 12:53 AM

Quote:

Originally Posted by Abu2 (Post 2392344)
I tried to disable them step by step, but...

So you're saying you already disabled the individual plugins (not products) one by one and it didn't help? That's strange, I was pretty sure it had to be one of the plugins. I'm not sure what else it could be.

ctrlbrk 12-24-2012 03:47 PM

Installed the new version. I think email problem fixed, but the quote[datestr] isn't doing anything - I sent several new messages to my test account, replied from test account back to admin account, and no datestr or timestr on anything.

I first uninstalled old version, deleted customized template, and then imported new one.

kh99 12-24-2012 04:25 PM

Did you enable the option in the admincp (under Private Messaging Options)? It's disabled by default, since I didn't want people to turn it on unless they were aware that the date/time stamps would hang around even after uninstalling.

When it's turned on, you should see the date/time stamp in the quote tag (in the quick reply box, for example, like:

Quote:

Originally Posted by aaaab - Fri, 21 Dec 2012 03:55:18 +0100
test

If you're not seeing that then you won't see the date str in the message.

On another subject: I realize that you customized your template for the previous version then I changed it - would it help if I posted the changes in the quote template that were made for the new version?

ctrlbrk 12-24-2012 05:11 PM

Yup all good now, I didn't know there was an option.

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

Thx and Merry Christmas!

Kajouka 12-26-2012 03:54 AM

I have 3.8.5 installed and when I added this, my server couldn't load the private.php page or the actual messages.

Not sure if it's that I haven't upgraded all the way, just thought I'd let you know. Thanks!

kh99 12-26-2012 11:58 AM

Quote:

Originally Posted by Kajouka (Post 2392780)
I have 3.8.5 installed and when I added this, my server couldn't load the private.php page or the actual messages.

Not sure if it's that I haven't upgraded all the way, just thought I'd let you know. Thanks!

One other person had that same problem - I suspect a conflict with another mod. Any way you could tell me which mods you have installed (or PM me if you don't want to post it)?

Edit: also, I originally developed this on vb3.8.3, so I don't think the issue is the version.

dizzynation 12-27-2012 03:42 AM

Sweet, looking to install tonight. I have "Send PM Attachments" mod, think everything will work ok?

kh99 12-27-2012 10:39 AM

Quote:

Originally Posted by dizzynation (Post 2392941)
Sweet, looking to install tonight. I have "Send PM Attachments" mod, think everything will work ok?

I haven't tested it with that mod, but offhand I don't know of any reason that it wouldn't. It should be safe for you to try, you only need to uninstall this mod if there's a problem - it won't leave anything behind. But if this mod doesn't work for you, I'll try to figure out why.

dizzynation 12-29-2012 01:32 AM

Installed and works great with "Send PM Attachments"

vijayninel 12-31-2012 07:16 AM

Great mod but getting white pages :(

I have vBulletin PM-Autoresponder, GTPrivate Messages Enhanced Listing, GTUserCP - Enhanced USERCP Interface + USERCP Menu, PM Block List by BOP5. (edit .. tried disabling these mods but it still dint work)/

kh99 12-31-2012 12:17 PM

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.

vijayninel 12-31-2012 12:46 PM

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

kh99 12-31-2012 01:06 PM

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';
        }
    }
}


vijayninel 12-31-2012 01:17 PM

^^ Replaced. Working perfectly fine now. Thanks. :)

Installed.

kh99 12-31-2012 01:26 PM

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.

kh99 01-01-2013 02:09 PM

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.

Abu2 01-01-2013 03:41 PM

kh99, Thank you! It works!

joeychgo 03-05-2013 11:50 AM

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?

kh99 03-05-2013 12:36 PM

Quote:

Originally Posted by joeychgo (Post 2408026)
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]


OnlyTouch 12-19-2015 02:05 PM

Good mod, installed!


All times are GMT. The time now is 10:40 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.03205 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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