vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Private Messages Enhancements - PM Preview (https://vborg.vbsupport.ru/showthread.php?t=259318)

ForumsMods 02-22-2011 10:00 PM

PM Preview
 
1 Attachment(s)
PM Preview

Description:
PM Preview

Installation:
  1. Import "product-pm_preview.xml" as a product, overwrite if it's already installed
Where to set option:
Styles & Templates-> Style Manager-> Stylevars-> Private_Messages

Languages:
- English

History:
23-02-11: v4.0 First Release
22-06-11: v4.1 - Font, Color & Padding can be easily changed
13-07-11: v4.1.1 - Minor bug fix (Stylevars were not displayed)

This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation.

OldSchoolDSL 02-23-2011 03:30 PM

Does this add to the query?

My 1st thought is it would... For it to bring up a small sample of every PM a member would have in their inbox.

ForumsMods 02-23-2011 05:15 PM

Quote:

Originally Posted by OldSchoolDSL (Post 2165841)
Does this add to the query?

My 1st thought is it would... For it to bring up a small sample of every PM a member would have in their inbox.

Does not add any query.

Boofo 02-23-2011 05:30 PM

Is there a way to keep all lines aligned on the left so it does jump left on the second line?

ForumsMods 02-23-2011 05:35 PM

Quote:

Originally Posted by Boofo (Post 2165896)
Is there a way to keep all lines aligned on the left so it does jump left on the second line?

Will add to next version.
Also you will able to change font, color, align, etc via stylevars.

Boofo 02-23-2011 05:39 PM

Great! I will be looking forward to it, sir. And thanks for making this happen so quickly. ;)

Also, will it wrap long continuous links? The other one didn't.

bulldog51981 02-23-2011 05:53 PM

Installed on 4.1.1, works great!

ForumsMods 02-23-2011 07:55 PM

Quote:

Originally Posted by Boofo (Post 2165905)
Great! I will be looking forward to it, sir. And thanks for making this happen so quickly. ;)

Also, will it wrap long continuous links? The other one didn't.

Will use 'Length of Thread Preview Text' vBulletin Setting

Boofo 02-23-2011 08:05 PM

I should have known you had it covered before I asked. Duh on me. ;)

TheLastSuperman 02-24-2011 03:50 AM

Awesome Adrian :cool:

OldSchoolDSL 02-24-2011 06:09 AM

Installed and working

4.1.1 :)

LoneWolf71 02-26-2011 03:00 PM

4.1.1 stable.. nice add on bud! Thanks!

COL NIL SATIS 02-26-2011 03:17 PM

Awesome,will add this one now..thanks

starman? 02-27-2011 11:21 AM

Good stuff - thanks.

Randomm 03-01-2011 10:16 PM

tagged
will wait for next version

sadiq6210 04-08-2011 01:38 PM

THANKS

Can I specify the number of letters? Becuase I want to view just one or two lines of each PM

8thos 05-14-2011 08:30 PM

Dope!

EquinoxWorld 05-14-2011 10:14 PM

Works great! vb 4.1.3. nominated.

Boofo 05-14-2011 10:18 PM

Quote:

Originally Posted by ForumsMods (Post 2165899)
Will add to next version.
Also you will able to change font, color, align, etc via stylevars.

Is this going to happen and is this mod still being supported?

Stefan118 05-15-2011 09:34 PM

I have installed this mod, but how to go from here?

It is in my installed plugin list, and set Active.
It is NOT in the settings --> options list.

Where can I change the settings, becouse nothing happent in my PM list.
I still only see the senders name and the subject. (not the first line of the PM)
Also tried to send myselfe a PM, so i had 1 unread, but nope. no changes.

Using vB 4.1.3

Stefan118 05-17-2011 09:45 PM

please help ^

ForumsMods 05-18-2011 01:54 AM

Quote:

Originally Posted by Stefan118 (Post 2196125)
I have installed this mod, but how to go from here?

It is in my installed plugin list, and set Active.
It is NOT in the settings --> options list.

Where can I change the settings, becouse nothing happent in my PM list.
I still only see the senders name and the subject. (not the first line of the PM)
Also tried to send myselfe a PM, so i had 1 unread, but nope. no changes.

Using vB 4.1.3

Can you find the following code in private_messagelist_start template?
HTML Code:

{vb:raw pm.title}</a>

lolly01 05-18-2011 05:44 AM

The same Problem on my Board.

private_messagelist_start

has following Content:

Code:

require_once(DIR . '/includes/class_template_parser.php');
$parser = new vB_TemplateParser('{vb:raw pm.title}</a>');
$parser->dom_doc = new vB_DomDocument($parser->fetch_dom_compatible());
$find = trim($parser->_parse_nodes($parser->dom_doc->childNodes()));

$parser = new vB_TemplateParser('{vb:raw pm.title}</a> <div>{vb:raw pm.preview}</div>');
$parser->dom_doc = new vB_DomDocument($parser->fetch_dom_compatible());
$replace = trim($parser->_parse_nodes($parser->dom_doc->childNodes()));
$vbulletin->templatecache['pm_messagelistbit'] = str_replace($find, $replace, $vbulletin->templatecache['pm_messagelistbit']);


Boofo 05-18-2011 09:18 AM

Are you using the default style?

Stefan118 05-18-2011 06:43 PM

I searched for templates with this content:

{vb:raw pm.title}</a>

The only template that has this code in it is: pm_messagelistbit.

This is the content:
Code:

<li class="blockrow pmbit" id="pm_{vb:raw pm.pmid}">
        <div class="datetime">
                <label for="pm_imod_checkbox_{vb:raw pmid}">{vb:raw pm.senddate} <span class="time">{vb:raw pm.sendtime}</span> <vb:if condition="$show['pmcheckbox']"><input type="checkbox" name="pm[{vb:raw pmid}]" id="pm_imod_checkbox_{vb:raw pmid}" value="{vb:raw groupid}" /></vb:if></label>
        </div>
        <img src="{vb:stylevar imgdir_statusicon}/pm_{vb:raw pm.statusicon}.png" class="threadicon" alt="" />
        <vb:if condition="$show['pmicon']">
                <img src="{vb:raw pm.iconpath}" class="posticon" alt="{vb:raw pm.icontitle}" />
        </vb:if>
        <vb:if condition="!$show['unread']">
                <a href="private.php?{vb:raw session.sessionurl}do=showpm&amp;pmid={vb:raw pm.pmid}" class="title">{vb:raw pm.title}</a>
                <ol class="commalist">{vb:raw userbit}</ol>
        <vb:else />
                <span class="unread">
                        <a href="private.php?{vb:raw session.sessionurl}do=showpm&amp;pmid={vb:raw pm.pmid}" class="title">{vb:raw pm.title}</a>
                </span>
                        <ol class="commalist">{vb:raw userbit}</ol>
               
        </vb:if>
        <hr class="none" />
</li>

I use a default style and a customized style.
Both not working.

I cant even find the private_messagelist_start template!
Even not when i try to search for templates with the folowing content (copied the first line of code from Lolly01)

The only PM templates I have are these:
pm_editfolderbit
pm_editfolders
pm_emptyfolder
pm_filter
pm_messagelist
pm_messagelistbit
pm_messagelistbit_ignore
pm_messagelistbit_user
pm_messagelist_periodgroup
pm_movepm
pm_newpm
pm_nomessagehistory
pm_popup_script
pm_quickreply
pm_receipts
pm_receiptsbit
pm_showpm
pm_trackpm

ForumsMods 05-18-2011 10:04 PM

Quote:

Originally Posted by Stefan118 (Post 2197279)
I searched for templates with this content:

{vb:raw pm.title}</a>

The only template that has this code in it is: pm_messagelistbit.

This is the content:
Code:

<li class="blockrow pmbit" id="pm_{vb:raw pm.pmid}">
    <div class="datetime">
        <label for="pm_imod_checkbox_{vb:raw pmid}">{vb:raw pm.senddate} <span class="time">{vb:raw pm.sendtime}</span> <vb:if condition="$show['pmcheckbox']"><input type="checkbox" name="pm[{vb:raw pmid}]" id="pm_imod_checkbox_{vb:raw pmid}" value="{vb:raw groupid}" /></vb:if></label>
    </div>
    <img src="{vb:stylevar imgdir_statusicon}/pm_{vb:raw pm.statusicon}.png" class="threadicon" alt="" />
    <vb:if condition="$show['pmicon']">
        <img src="{vb:raw pm.iconpath}" class="posticon" alt="{vb:raw pm.icontitle}" />
    </vb:if>
    <vb:if condition="!$show['unread']">
        <a href="private.php?{vb:raw session.sessionurl}do=showpm&amp;pmid={vb:raw pm.pmid}" class="title">{vb:raw pm.title}</a>
        <ol class="commalist">{vb:raw userbit}</ol>
    <vb:else />
        <span class="unread">
            <a href="private.php?{vb:raw session.sessionurl}do=showpm&amp;pmid={vb:raw pm.pmid}" class="title">{vb:raw pm.title}</a>
        </span>
            <ol class="commalist">{vb:raw userbit}</ol>
       
    </vb:if>
    <hr class="none" />
</li>

I use a default style and a customized style.
Both not working.

I cant even find the private_messagelist_start template!
Even not when i try to search for templates with the folowing content (copied the first line of code from Lolly01)

The only PM templates I have are these:
pm_editfolderbit
pm_editfolders
pm_emptyfolder
pm_filter
pm_messagelist
pm_messagelistbit
pm_messagelistbit_ignore
pm_messagelistbit_user
pm_messagelist_periodgroup
pm_movepm
pm_newpm
pm_nomessagehistory
pm_popup_script
pm_quickreply
pm_receipts
pm_receiptsbit
pm_showpm
pm_trackpm

Sorry template is pm_messagelistbit and private_messagelist_start is the plugin where the code is execute.

Sent you a PM.

Boofo 05-18-2011 11:05 PM

Adrian, are you planning up updating this with the changes you said or do we need to look elsewhere?

ForumsMods 05-19-2011 01:56 AM

Quote:

Originally Posted by Boofo (Post 2197358)
Adrian, are you planning up updating this with the changes you said or do we need to look elsewhere?

http://img24.imageshack.us/img24/531...terminator.png

The first task is update this add-on

Boofo 05-19-2011 02:25 AM

LOL Glad to have you back, sir. What does the pd stand for in the pic?

Juggernaut 05-19-2011 04:01 AM

@Boofo
I don't know if ForumsMods speaks spanish, but in spanish, it's the same as PS, it means Posdata in spanish. :D

Boofo 05-19-2011 04:02 AM

Yeah, he's from Argentina so that explains it then, thank you. I want to see it with PS so I can use it, too. ;)

ForumsMods 05-19-2011 01:26 PM

Quote:

Originally Posted by Juggernaut (Post 2197432)
@Boofo
I don't know if ForumsMods speaks spanish, but in spanish, it's the same as PS, it means Posdata in spanish. :D

Right, I speak spanish.

ForumsMods 05-19-2011 10:12 PM

Those who have problems with the add-on, edit "PM Preview" plugin (Hook: private_messagelist_start) and change location to hook private_messagelist_messagebit

Stefan118 05-20-2011 12:58 PM

As I allready said by PM,
You're the best!

The problem is solved here.
Waiting to download the update (as backup)

Thanks!

leftanalog 06-12-2011 05:31 PM

1 Attachment(s)
Im having a different issue.

As the PM becomes lower in my inbox (Like the 2nd+) message sitting in my inbox the preview is doubling and tripling the output of whats previewed.

So for example the 5th message sitting in my inbox has 5 lines of preview text. They are the same 1 line repeated 5 times.

See attachment for screeny of what im talking about.

Any help?

Alfa1 06-12-2011 09:44 PM

Would be nice to see the preview on hover only.

Stefan118 06-13-2011 12:33 PM

I had the same...
I first had the problem explained above.
I gave the coder an admin name and password.
He fixed my first problem.

Then I had the same problem as you.
each PM received got an extra line.
I told the coder, he logged in again, and in 4 minutes it was solved.

Now actualy i'm still waiting on a fix to download in case of an emergency and i have to reinstall.

leftanalog 06-13-2011 05:55 PM

Well then if its correctable,
Can the coder come in here and explain what he did to correct the problem that I have stated in post:
https://vborg.vbsupport.ru/showpost....8&postcount=35

ForumsMods 06-22-2011 03:19 PM

New version released:
22-06-11: v4.1 - Font, Color & Padding can be easily changed

sadiq6210 06-22-2011 07:48 PM

for example if a pm contains 1000 letters
I don't want to show all message, can I make it to view just first 100 letter from each pm?

Thanks for update


All times are GMT. The time now is 06:21 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.01406 seconds
  • Memory Usage 1,828KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (8)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
  • (40)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