PDA

View Full Version : Private Messages Enhancements - PM Preview


m03
02-20-2010, 10:00 PM
Info:
Add a Preview to the PM Inbox making it easier to manage your Private Messages

This is a "backported" vb3 version of my new vb4 hack (https://vborg.vbsupport.ru/showthread.php?p=1988327#post1988327)


Main Features:
- One step installation (no file uploads, no manual template modifications required)
- Option to enable/disable the Preview
- Preview Character Length can be altered by Admin.


Installation:
-Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]


To set options:
Go to: AdminCP > vBulletin Options > PM Preview


Versions:
v0.1 - Feb 21, 2010 - First Version.

Daryn
02-22-2010, 04:03 AM
Just a note, the select all checkbox doesn't seem to work.

Ramsesx
02-22-2010, 08:37 AM
Option to enable/disable the Preview
Is this a user option or only a global setting?

m03
02-22-2010, 09:38 AM
Just a note, the select all checkbox doesn't seem to work.

Will look info this now.

m03
02-22-2010, 09:38 AM
Is this a user option or only a global setting?
It's currently only an admin setting.. In the next version I'm looking into also making it a user option as well.

choccyclaire
02-22-2010, 10:33 AM
Brilliant. Thank you.

m03
02-22-2010, 05:13 PM
Just a note, the select all checkbox doesn't seem to work.
I've tried to replicate this and haven't been able to, what other hacks do you have installed? (specifically those that do anything PM related)

grey_goose
02-22-2010, 05:32 PM
Is there any difference between this and Princeton's mod (https://vborg.vbsupport.ru/showthread.php?t=149710) ?

:confused:

Daryn
02-22-2010, 05:46 PM
I've tried to replicate this and haven't been able to, what other hacks do you have installed? (specifically those that do anything PM related)

The only hacks that do anything related to PM are the "Quote Post to PM" mod and the "Pretty PM Notification". I don't know if that has anything to do with it.

m03
02-22-2010, 06:31 PM
Is there any difference between this and Princeton's mod (https://vborg.vbsupport.ru/showthread.php?t=149710) ?

:confused:
The Length of the preview on that one is set using the threadpreview length whereas mine has a independant setting so you could run this hack and have threadpreviews disabled if you want.. I'd say that is probably the biggest difference from just looking at the thread.

m03
02-22-2010, 06:33 PM
The only hacks that do anything related to PM are the "Quote Post to PM" mod and the "Pretty PM Notification". I don't know if that has anything to do with it.
Will get those installed and see if I can the problem.

Daryn
02-22-2010, 09:50 PM
Will get those installed and see if I can the problem.

I disabled those two and still had the same problem. If you can't reproduce it I'll provide a list of all the hacks installed, one of them may be the culprit, but as of now I can't seem to get any of the messages to select if I check the "All" box. It's a minor thing, but kinda annoying. The old 3.6 mod for PM Preview did the same thing for me too.

m03
02-23-2010, 12:08 AM
hmmm.. very odd, on my demo board the select all works on 1, 5, 20 messages.. haven't tested it with any more than that now.. It really shouldn't affect the select all as it doesn't interact with that, but I'll keep looking..

mgurain
02-23-2010, 03:38 AM
Installed,
one thing, how can I change the color of the preview text to Gray ?
Thanks,,

ChopSuey
02-23-2010, 12:33 PM
Installed,
one thing, how can I change the color of the preview text to Gray ?
Thanks,,

Ehh, edit the templates perhaps.

m03
02-23-2010, 01:29 PM
Installed,
one thing, how can I change the color of the preview text to Gray ?
Thanks,,
In the pm_messagelistbit_preview template change:
<fieldset style="padding-left:10px;width:80%;border:0px;">$pm[pmpreview]</fieldset>

to:
<fieldset style="padding-left:10px;width:80%;border:0px;"><span style="color:silver;">$pm[pmpreview]</span></fieldset>

You can change the color in the style element to any name or hex color that takes your fancy.

SorentoUltimate
04-20-2010, 10:01 AM
Hi,

thanks for the AddOn,

I start change some things to work with my styles and i found a small problem at the template

You open 2 <div> tags, but you close 3.

Look Here
(with Red Color the open and close div tags)

<tr>
<td class="alt1" width="16"><img src="$stylevar[imgdir_statusicon]/pm_$pm[statusicon].gif" alt="" border="0" width="16" height="16" /></td>
<if condition="$show['pmicons']"><td class="alt2" width="16"><if condition="$show['pmicon']"><img src="$pm[iconpath]" alt="$pm[icontitle]" border="0" width="16" height="16" /><else />&nbsp;</if></td></if>
<td class="alt1Active" id="m$pm[pmid]" width="100%">
<div>
<div class="smallfont" style="float:$stylevar[right]"><if condition="$show['unread']"><strong>$pm[senddate] <span class="time">$pm[sendtime]</span></strong><else />$pm[senddate] <span class="time">$pm[sendtime]</span></if></div>
<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if>:
<a href="private.php?$session[sessionurl]do=showpm&amp;pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a>
</div>
<fieldset style="padding-left:10px;width:80%;border:0px;">$pm[pmpreview]</fieldset>
</div>

</td>
<if condition="$show['pmcheckbox']"><td class="alt2" align="center" style="padding:0px"><input type="checkbox" name="pm[$pmid]" value="$groupid" /></td></if>
</tr>

SorentoUltimate
04-20-2010, 05:27 PM
Hi again,

i have another problem, much bigger now.....

you overwrite pm_messagelistbit with pm_messagelistbit_preview

That make a lot of problems if someone use also other AddOns on PM's who make changes to pm_messagelistbit.

you plan to change that or not?

also what about UserGroup Pemssions and User Options ?

Willy T
05-04-2010, 04:47 PM
Just a note, the select all checkbox doesn't seem to work.

Same problem. When I disable this hack the select all option works.

Sadie Frost
05-17-2010, 10:53 PM
Probably (though untested) the same problem found in this hack: https://vborg.vbsupport.ru/showthread.php?t=178203 with the fix in post #45 https://vborg.vbsupport.ru/showpost.php?p=1681247&postcount=45

:)