View Full Version : Private Messages Enhancements - PM Preview
ForumsMods
02-22-2011, 10:00 PM
PM Preview
Description:
PM Preview
Installation:
Import "product-pm_preview.xml" as a product, overwrite if it's already installedWhere 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
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
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
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
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
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?
{vb:raw pm.title}</a>
lolly01
05-18-2011, 05:44 AM
The same Problem on my Board.
private_messagelist_start
has following Content:
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:
<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&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&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
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:
<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&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&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
Adrian, are you planning up updating this with the changes you said or do we need to look elsewhere?
http://img24.imageshack.us/img24/5319/iambackterminator.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
@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
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.php?p=2206728&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
ForumsMods
06-22-2011, 08:49 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
The add-on uses 'Length of Thread Preview Text' vBulletin Setting
joggele
06-27-2011, 08:34 AM
Font, Color & Padding can be easily changed
Where can I change this?
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?
It's a very good idea!
Regards
Juergen
joggele
06-27-2011, 09:23 AM
sry, double post ...
Regards
Juergen
ForumsMods
06-27-2011, 05:22 PM
Where can I change this?
Regards
Juergen
The three stylevars are in Private_Messages group. Or you can search "preview_" in Stylevars
Taurus1
06-28-2011, 10:45 PM
This is truly a great help. I often have to open countless PM's searching for a specific message. Thank you for this! It makes it so much easier now!! Rated 5 stars.
MonkYZ
07-12-2011, 09:18 PM
Hmm, trying to change the look of it, but as you said in here
Where to set option:
Styles & Templates-> Style Manager-> Stylevars-> Private_Messages
I have no Private_messages in my Stylevars...
ForumsMods
07-13-2011, 12:17 AM
Hmm, trying to change the look of it, but as you said in here
I have no Private_messages in my Stylevars...
It is a group.
See attachment.
MonkYZ
07-13-2011, 07:34 AM
It is a group.
See attachment.
Hmm, i don't even have the Private Messages group... Running on vBulletin 4.1.3. I even looked inside the default style, and that groups isn't there either... Is there a way to fix this?
Boofo
07-13-2011, 08:35 AM
Same here. I am on 4.1.3 PL1 and there the style variables for this mod do not show up under Private_Messages. I tried to add them manually and it said they already exist but they are not showing in the style variable listing anywhere.
ForumsMods
07-13-2011, 04:30 PM
Hmm, i don't even have the Private Messages group... Running on vBulletin 4.1.3. I even looked inside the default style, and that groups isn't there either... Is there a way to fix this?
Same here. I am on 4.1.3 PL1 and there the style variables for this mod do not show up under Private_Messages. I tried to add them manually and it said they already exist but they are not showing in the style variable listing anywhere.
I uploaded a new product xml (4.1.1).
Please try this.
MonkYZ
07-13-2011, 06:27 PM
Thanks! Now the private stylevars are there. But i've noticed changing the padding values does nothing. The font colour/style is working just great!
Thanks and keep up the good work!
ForumsMods
07-13-2011, 06:43 PM
Thanks! Now the private stylevars are there. But i've noticed changing the padding values does nothing. The font colour/style is working just great!
Thanks and keep up the good work!
Which values are you using in padding?
MonkYZ
07-13-2011, 06:55 PM
Now i have no values inserted (it's just blank). I've tried entering 5px (just for test), 10, 20, 100... nothing changed :)
ForumsMods
07-13-2011, 07:01 PM
First, you need to set Units (px) and put only numbers in Top, Right, Bottom and Left
MonkYZ
07-13-2011, 08:54 PM
First, you need to set Units (px) and put only numbers in Top, Right, Bottom and Left
Of course i did that. As i said above, i've tried some px, em's but nothing changed. But it looks ok for me anyway (and i am big fan of override.css). I just wanted to post this issue that maybe some other users will meet in their ways.
P.S. It's a great mod, btw! :)
S3Ponline
07-14-2011, 01:08 AM
I think instead of numbering off the usergroups that it should be a usergroup selectable option that way it works well with subscriptions so that we have a better chance of paying the amount.
ForumsMods
07-14-2011, 01:32 AM
I think instead of numbering off the usergroups that it should be a usergroup selectable option that way it works well with subscriptions so that we have a better chance of paying the amount.
Wrong thread?
MonkYZ
08-04-2011, 11:00 PM
There is a small bug in "Sent items" folder. It's still says "From" insteand of beeing "To"...
ForumsMods
08-04-2011, 11:59 PM
There is a small bug in "Sent items" folder. It's still says "From" insteand of beeing "To"...
Please attach a picture. I can not reproduce it.
MonkYZ
08-05-2011, 01:51 AM
Please attach a picture. I can not reproduce it.
Sure thing. Here it is. Btw, i'm using vB 4.1.3 (and i will not update because FCKEditor).
sadiq6210
08-05-2011, 11:21 AM
Could I specify the number of letters but not the same of thread preview?
In thread preview it is 1000 letters (because it is ajax window)
but in pm preview I want it 200
Is it possible?
ForumsMods
08-05-2011, 11:26 AM
Sure thing. Here it is. Btw, i'm using vB 4.1.3 (and i will not update because FCKEditor).
I can not confirm this using 4.1.3 PL3. My mod does not add any from/to phrase.
Please paste the pm_messagelistbit template
ForumsMods
08-05-2011, 11:27 AM
Could I specify the number of letters but not the same of thread preview?
In thread preview it is 1000 letters (because it is ajax window)
but in pm preview I want it 200
Is it possible?
Will add a new option for this later today.
sadiq6210
08-05-2011, 12:10 PM
Will add a new option for this later today.
Good news =) Finally I can use this great mod
Thanks
Erica1977
11-20-2011, 06:30 PM
Thanks Great Mod.:)
wally07
11-25-2011, 06:45 PM
This works on 4.1.8. TY!
Although, is there an option where I can make the usernames stand-out? Either having the names in another color and/or bold?
Thanks in advance.
datoneer
12-09-2011, 05:04 PM
Not working on 4.1.8, can you make it? Thanks
datoneer
12-09-2011, 05:08 PM
Now it's working sorry. Great mod
BlueCheri
01-06-2012, 05:09 AM
Very nice, useful.
Thanx
Trevor Matthews
01-17-2012, 02:23 PM
Installed on 4.1.10 and working perfectly.
Many thanks.
chriske
01-31-2012, 04:28 PM
Can anyone tell me how to edit the xml file so it looks like this:
(The username comes first)
https://vborg.vbsupport.ru/attachment.php?attachmentid=112737&d=1266775719
hh.org
05-02-2013, 03:46 AM
In my forum, disabling Quick Navigation Menu (Options -> General Settings -> Use Quick Navigation Menu) also disables this addon. It's a bummer as I would really like to disable the useless and unused menu as it is merely a HTML generator. Anyone else noticed this? Has anyone found a workaround for this?
would be nice to have it collapsed and when clicked to show message
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.