View Full Version : PM Preview 3.5 Edition
BluPhoenix
08-23-2005, 10:00 PM
This is a 3.5 Rewrite of my old hack, now using the plugin system (woo hoo!)
install the attached plugin and then make the following modification to the pm_messagelistbit template.
find:
<td class="alt1Active" id="m$pm[pmid]" width="100%">
<div>
<span style="float:$stylevar[right]" class="smallfont">$pm[senddate]</span>
<a href="private.php?$session[sessionurl]do=showpm&pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a>
</div>
<div class="smallfont">
<span style="float:$stylevar[right]" class="time">$pm[sendtime]</span>
<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if>
</div>
</td>
replace with:
<td class="alt1Active" id="m$pm[pmid]" width="100%">
<div>
<span style="float:$stylevar[right]" class="time" style="font-size:9px;">$pm[senddate] @ $pm[sendtime]</span>
<a href="private.php?$session[sessionurl]do=showpm&pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a> (<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if> )
</div>
<div class="smallfont">
<i>$pm[pmpreview]</i>
</div>
</td>
Extras
To change the length of the preview
Goto the Plugin Manager and in Hook Location : private_messagelist_messagebit find PM Preview v1 click "Edit" and towards the end of it find 300 and increase/reduce the value to lengthen/shorten the preview.
ALTERNATIVE VERSION: Thanks to Erwin for the suggestion
If you would rather have the preview show in a tooltip rather than show it below the PM title then change the required code in pm_messagelistbit to:
alternative code:
<td class="alt1Active" id="m$pm[pmid]" width="100%" title="$pm[pmpreview]">
<div>
<span style="float:$stylevar[right]" class="smallfont">$pm[senddate]</span>
<a href="private.php?$session[sessionurl]do=showpm&pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a>
</div>
<div class="smallfont">
<span style="float:$stylevar[right]" class="time">$pm[sendtime]</span>
<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if>
</div>
</td>
and that's all folks.. please remember to click the install and always tip your waitress.
Erwin
08-24-2005, 12:03 PM
Cool idea. :)
You could even make it so that the message preview comes up as a tooltip within the template using title="". :)
johnbruce71
08-24-2005, 12:28 PM
Cool idea. :)
You could even make it so that the message preview comes up as a tooltip within the template using title="". :)
Great idea, Installed :)
Xplorer4x4
08-24-2005, 02:01 PM
I made the edit and I uploaded the XML...not working for me. The PM inbox turn up the smae as it did. I have a mod to show newest unread PM on forum home instaled, so i tried to deactivate that plug in and that made no diiference.
Edit: It helps to install it on ALL templates now doesn;t it. Instaled and working fine!
I like, installed with no problem :)
Erwin, cool tip.
FleaBag
08-24-2005, 06:27 PM
Awesome! Had this installed on 3.0.8 about a week or so before I upgraded. Missed it haha! Thanks a lot. :)
dieselpowered
08-25-2005, 12:39 AM
Is there a way to lengthen or shorten the review?? Hack looks great!!
Gizmo5h1t3
08-25-2005, 06:25 AM
excellent work!!
looks real classy on the board!!
Biker_GA
08-25-2005, 06:34 AM
Suggestion. Please include the template instructions in a file as well. This makes it easier to reload the plugin and make the edits in the event of a reload.
BluPhoenix
08-25-2005, 11:21 AM
Is there a way to lengthen or shorten the review?? Hack looks great!!
Goto the Plugin Manager and in Hook Location : private_messagelist_messagebit find PM Preview v1 click "Edit" and towards the end of it find 300 and increase/reduce the value to lengthen/shorten the preview.
(instructions updated)
BluPhoenix
08-25-2005, 11:29 AM
Cool idea. :)
You could even make it so that the message preview comes up as a tooltip within the template using title="". :)
Thanks for the alternative suggestion, have updated the instructions for those wanting to do just that..
Da Chang Gang
08-25-2005, 02:00 PM
May I ask what this is for?
Biker_GA
08-25-2005, 02:06 PM
Screen shot tells all.
BluPhoenix
08-25-2005, 04:50 PM
May I ask what this is for?
Like Biker GA said the screenshot tells the tale, but basically it provides a preview of your PM so you can see if it's worth reading right now or can be left for later, also good for seeing what a message was when your clearing out your inbox.
dieselpowered
08-25-2005, 06:37 PM
Goto the Plugin Manager and in Hook Location : private_messagelist_messagebit find PM Preview v1 click "Edit" and towards the end of it find 300 and increase/reduce the value to lengthen/shorten the preview.
(instructions updated)
Thanks man, I kinda assumed that is what the value of 300 was, however, without asking I probably would have broken something.
Great hack!!
sifuhall
08-25-2005, 09:51 PM
Nice work!
Darth Gill
09-04-2005, 09:55 PM
Great modification... Thanks!
glorify
10-03-2005, 01:59 PM
I love this hack. I get ton's of PM's and this speeds up the process. Great work.
Xplorer4x4
10-03-2005, 02:20 PM
Any way to make both versions work?
dieselpowered
10-05-2005, 07:09 PM
Anyone have this running properly on 3.5 Gold?
Maybe if it is we should change the vBulletin version on this hack :)
akanevsky
10-05-2005, 10:58 PM
I've noticed that if there is HTML in PM, that HTML is displayed and the page gets broken...
ndahiya
10-06-2005, 10:51 AM
looks like it works in 3.5 gold....
not sure of the html prob mentioned above.
Rastus
10-07-2005, 05:56 PM
I get "Parse error: parse error, unexpected '<' in /newhome/******/public_html/private.php(1445) : eval()'d code on line 1 when installing this.
SVTOA
10-07-2005, 09:02 PM
Works fine on 3.5 Gold.
smokering
10-08-2005, 02:12 AM
and smokering clicks install really like this one thank you for this nice hack
Great mod, works a treat...
Installed on 3.5.0 Gold (I was wondering why it wasn't working to begin with since I had done everything... I realised I had forgotten to active the plugin system globally in the forum's options settings... then it worked lol)
akanevsky
10-08-2005, 11:09 AM
not sure of the html prob mentioned above.
There is such a problem. But it only happens when there is HTML enableed...
akanevsky
10-26-2005, 09:38 PM
Excellent hack bro, keep up the good work!
sorry about the HTML thing, it must've been I used someone else's hack :P
Would be nice if this could be made optional, so the user could decide if they wanted it on or not.
Would be nice if this could be made optional, so the user could decide if they wanted it on or not.
Just figured out how:
1) Go to admincp and create a new profile field. Choose Multiple-Selection Checkbox. Fill in the details and then choose where you want to appear, I chose Options: Messaging / Notification
2) And then replace either the original code or the hack code if you already did this with (change the xx after field to whatever your field number is):
<if condition="($vbulletin->userinfo['fieldxx'] == 'Yes')">
<td class="alt1Active" id="m$pm[pmid]" width="100%">
<div>
<span style="float:$stylevar[right]" class="time" style="font-size:9px;">$pm[senddate] @ $pm[sendtime]</span>
<a href="private.php?$session[sessionurl]do=showpm&pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a> (<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if> )
</div>
<div class="smallfont">
<i>$pm[pmpreview]</i>
</div>
</td>
<else />
<td class="alt1Active" id="m$pm[pmid]" width="100%">
<div>
<span style="float:$stylevar[right]" class="smallfont">$pm[senddate]</span>
<a href="private.php?$session[sessionurl]do=showpm&pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a>
</div>
<div class="smallfont">
<span style="float:$stylevar[right]" class="time">$pm[sendtime]</span>
<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if>
</div>
</td>
</if>
Don't know if that was the best way to do it but it worked for me. :D
ShadowOne
11-30-2005, 02:09 PM
works great with 3.5.1.....thanks for the great hack...
Megareus Rex
01-21-2006, 03:40 AM
Excellent hack, I loved it on 3.0.
*installed
Guest210212002
01-21-2006, 04:29 AM
3.5.3 no problems, quick question:
How do I change the alt background of the preview area? Currently it's the same color as the message title (alt1) and I'd like to make it alt2.
/me clicks install
lamilein
01-24-2006, 11:57 AM
3.5.3 no problems, quick question:
How do I change the alt background of the preview area? Currently it's the same color as the message title (alt1) and I'd like to make it alt2.
* Chris-777 clicks install
quick and dirty: edit the xml file of the plugin and re-install it
better: [APM] Advanced Product Management 2.0.3 (https://vborg.vbsupport.ru/showthread.php?t=95741) and edit the html online in the vB database :)
VBUsers
03-11-2006, 08:33 PM
installed and works great thanks!
Oblivion Knight
03-11-2006, 09:04 PM
Cool.! :)
I'm using the tooltip edit, and replaced the 300 with:
$vbulletin->options['threadpreview']
Eventually you may want to consider turning this in to a product, with it's own setting(s). There's plenty of room for expansion with this.. :)
Ramsesx
03-13-2006, 11:45 AM
Very nice, thank you :)
mine only shows the list of messages, and no preview.
i don't know WTF is wrong.
i uploaded the plugin. where does the HOOK go? mine is at ajax start. if i put it to pm_messagebit, i get a bunch of errors.
please help!
hotwheels
03-23-2006, 12:58 AM
mine only shows the list of messages, and no preview.
i don't know WTF is wrong.
i uploaded the plugin. where does the HOOK go? mine is at ajax start. if i put it to pm_messagebit, i get a bunch of errors.
please help!
You are going into the plug in manager right? In the plugin manager, locate your pm preview and click edit........toward's the end of the code, you will see something like this: $pm['pmpreview'] = strip_quotes($pm['message']);
$pm['pmpreview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbc ode(fetch_censored_text($pm['pmpreview']), false, true), 75)); and where the 75 is, that will probably be 300 or so on your's, change it to what ever you want..............i am still using his older version, and it work's like a champ.
yep, that's where i am at
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <plugins>
- <plugin active="1" product="vbulletin">
<title>PM Preview v1</title>
<hookname>private_messagelist_messagebit</hookname>
- <phpcode>
- <![CDATA[
$pm['pmpreview'] = strip_quotes($pm['message']);
$pm['pmpreview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbc ode(fetch_censored_text($pm['pmpreview']), false, true), 300));
]]>
</phpcode>
</plugin>
</plugins>
any ideas?
hotwheels
03-23-2006, 04:48 AM
300)); change that number to 75<?xml version="1.0" encoding="ISO-8859-1" ?>
- <plugins>
- <plugin active="1" product="vbulletin">
<title>PM Preview v1</title>
<hookname>private_messagelist_messagebit</hookname>
- <phpcode>
- <![CDATA[
$pm['pmpreview'] = strip_quotes($pm['message']);
$pm['pmpreview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbc ode(fetch_censored_text($pm['pmpreview']), false, true), 300));
]]>
</phpcode>
</plugin>
</plugins> which is where the hook is.........then be sure you made this change in your pm_messagelistbit template, in your templates (these are 2 different steps) <td class="alt1Active" id="m$pm[pmid]" width="100%">
<div>
<span style="float:$stylevar[right]" class="time" style="font-size:9px;">$pm[senddate] @ $pm[sendtime]</span>
<a href="private.php?$session[sessionurl]do=showpm&pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a> (<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if> )
</div>
<div class="smallfont">
<i>$pm[pmpreview]</i>
</div>
</td>
did both. changed from 300 to 75. the template was changed as the layout is now the 'new layout'.
reducing the # of preview characters did not work either. below is my entire pm_messagelistbit template.
also, am running 3.53 with multiple hacks (including superpm), but that shouldn't affect the pm list....
help!
<tr>
<td class="alt1"><img src="$stylevar[imgdir_statusicon]/pm_$pm[statusicon].gif" alt="" border="0" /></td>
<if condition="$show['pmicons']"><td class="alt2"><if condition="$show['pmicon']"><img src="$pm[iconpath]" alt="$pm[icontitle]" /><else /> </if></td></if>
<td class="alt1Active" id="m$pm[pmid]" width="100%">
<div>
<span style="float:$stylevar[right]" class="time" style="font-size:9px;">$pm[senddate] @ $pm[sendtime]</span>
<a href="private.php?$session[sessionurl]do=showpm&pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a> (<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if> )
</div>
<div class="smallfont">
<i>$pm[pmpreview]</i>
</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>
Tralala
03-23-2006, 06:17 AM
/Installed.
Love it. Live by it. Thanks!
hotwheels
03-23-2006, 06:56 AM
should of worked bro.........not sure what's up with your set up.
thanks hotwheels..............
does anyone have any ideas???
thanks
(yes, the plug in is active.
no, i don't have the accelerator...)
hotwheels
03-23-2006, 11:58 PM
That superpm mod may be affecting this........The code he wrote is really basic and should be working........really wierd that it's not.
vampireus
03-24-2006, 05:39 AM
The tooltip not working with FF
MissKalunji
03-24-2006, 05:51 PM
works perfectly!
ARCANE_B0SS
03-24-2006, 06:21 PM
thanx
Nathan2006
04-12-2006, 09:04 PM
Thank you BluPhoenix
This is going to be a lot easier :cool:
Install
sensimilla
04-14-2006, 06:36 PM
any chance to make it look like here at vbulletin.org ?
https://vborg.vbsupport.ru/private.php
Thanks in advance
sensimilla
Tralala
04-14-2006, 06:43 PM
any chance to make it look like here at vbulletin.org ?
https://vborg.vbsupport.ru/private.php
Thanks in advance
sensimilla
???
They are using this very hack to make it look that way. Here's the thread that requested it: https://vborg.vbsupport.ru/showthread.php?t=110036
sensimilla
04-14-2006, 07:03 PM
???
They are using this very hack to make it look that way. Here's the thread that requested it: https://vborg.vbsupport.ru/showthread.php?t=110036
you got me wrong.. I like this hack but it is not looking like here at vb.org
poster : title date
its looking
title ( poster ) ect..
its not that urgent anyway
SHalliday
04-19-2006, 12:39 PM
Installed and working perfect. Thank you for such a useful and timesaving hack. Sure to be a hit with our members!
Urban Forums
04-19-2006, 02:37 PM
this is one of my fav hacks... nice job
Tralala
04-19-2006, 08:19 PM
I do like this hack very much. Have the "pop up" version on my forum.
The only issue it raises, I've noticed, is that it kinda breaks down the integrity of vB's "PM Tracking" system, since recipients can read a PM without confirming receipt. Not a big deal, I know.
Other than that I have to say it's very useful and makes it very easy to clean up a crowded in-box.
Only suggestion I can make for future improvement would be to AJAX-ify it to make everyone happy. Clicking a PM title would displays it's contents inline directly underneath (and confirms "receipt" with tracking system.)
Have a "collapse all" and "expand all" button to do the same en-masse.
I think that would be just about perfect, and might make everyone (https://vborg.vbsupport.ru/showthread.php?t=110036) happy. :)
having the exact same problem as drex on this thing...
followed every step as well as i could, double checked???
mmmender
05-08-2006, 05:10 AM
i'm having problems with this too. this is the ONLY hack i've installed on the upgraded version of my forum and i can't seem to get it to work. i've followed all the instructions and i don't get the previews.
any suggestions?
rareclownfish
05-08-2006, 03:48 PM
installed
could cmps be a problem, just trying to figure out why its not working..
xml supposed to be in ajax_start correct?? product vbulletin correct??
trying to double check.
thankx a bunch
anyone else have this problem and figure it out??
thx,
rice
mmmender
05-09-2006, 02:25 PM
i'm still not getting this to work for me.
is there any support with this hack?
SaN-DeeP
05-09-2006, 04:11 PM
I guess this addon is installed on vb.org too ?
Tralala
05-09-2006, 05:01 PM
I guess this addon is installed on vb.org too ?
Yes. The request and ensuing discussion is here:
https://vborg.vbsupport.ru/showthread.php?t=110036
ill wait for the 3.6 version i recon.
mmmender, you get it fixed??
mmmender
05-16-2006, 05:50 AM
nope, i'm still waiting for someone to reply and help me out. i followed all the instructions, got it working but i still don't see the preview paragraphs. i need HELP with this - bigtime. i now have half a hack installed on my forum!
damn, i thought you got it fixed...drats.
mmmender
05-18-2006, 04:25 AM
what's annoying is it says that this hack is supported yet no-one has replied to our concerns.
is anyone else out there willing to help with this?
EasyTarget
05-21-2006, 05:11 AM
installed on 3.5.4 and working without any problems so far.
I would like to customize it though so that clicking anywhere on the preview opens the message instead of having to click on the message title, so I moved the </a> from after the title to after the pmpreview section, which did work.
However, now all the text has an underline under it. Is there a way to disable the underline under links in just the preview section without affecting all the other links?
ramone_johnny
05-28-2006, 06:38 AM
Dammit, another hack installed and nothing.
Hang on - I do have something - an error!
private.php
Parse error: parse error, unexpected '<' in C:\Inetpub\wwwroot\vbforum\private.php(1456) : eval()'d code on line 1
Parse error: parse error, unexpected '<' in C:\Inetpub\wwwroot\vbforum\private.php(1456) : eval()'d code on line 1
Please help!
RJ
ok..
just revisiting this...
will someone please advise what should hook location be set to for plugin??
thanks a lot
akanevsky
06-10-2006, 06:11 PM
You don't need to worry about hook location, you simply import the xml.
well it plug-ins default to ajax_start hook location...can't put it there because it conflicts with something else i have...
says its not a product see below
This file appears to be a Plugin, not a Product. Please use the Plugin Manager to add this file.
any help is appreciated.
thx
mr newbie rice finally figured this out..thanks for patience all
hook location below:
private_messagelist_messagebit
mmmender-hope this helps you out.
cheers,
rice
MissKalunji
08-05-2006, 12:43 PM
does this work with 3.6?
Oblivion Knight
08-05-2006, 06:18 PM
does this work with 3.6?Yes, I have it working fine on my 3.6.0 installation.. :)
Yes, I have it working fine on my 3.6.0 installation.. :)
Good to here. Gonna install it now. Loved this on 3.5
Freezerator
08-07-2006, 07:32 AM
Very nice hack and a lot of happy members when i installed this, but only one question.
Can there be an addon or somekind so this is an user setting? So that an user can turn this on or off?
Nathan2006
08-11-2006, 01:42 AM
Hi,
Is there anyway to make this admin and mod only?
Thank you for any help :)
Oblivion Knight
08-11-2006, 04:58 PM
Very nice hack and a lot of happy members when i installed this, but only one question.
Can there be an addon or somekind so this is an user setting? So that an user can turn this on or off?
Hi,
Is there anyway to make this admin and mod only?
Thank you for any help :)Use the tooltip version, that way it runs in the background and it's unlikely that many will notice a difference anyway, but it's useful for those that want such a feature.. :)
MissKalunji
08-22-2006, 04:22 AM
Yes, I have it working fine on my 3.6.0 installation.. :)
not working on mine :(
MissKalunji
08-23-2006, 01:47 PM
working now :-/ out of no where
EasyTarget
09-07-2006, 06:26 AM
works great for me on 3.6
PoetJA-1975
10-06-2006, 05:47 AM
EXCELLENT - Thanx very much for this one!
Very nice indeed!
Jacquii.
Battle_Ring
11-05-2006, 03:37 PM
whats the tool tip version do
loonytune15
12-11-2006, 12:21 PM
Working in 3.6.4
Using the standard edition
baghdad4ever
01-31-2008, 10:17 AM
is it work on 3.6.8???
PoetJA-1975
01-31-2008, 04:34 PM
I'm running 3.6.8 and it works just fine ;)
Jacquii.
baghdad4ever
02-01-2008, 05:43 PM
thanks
i click install
Oblivion Knight
07-14-2009, 06:06 PM
Amazed this hadn't been made standard in 3.8.x yet with the tooltip, but it hadn't..
This plugin still works great though. :)
christon26
05-30-2010, 06:34 AM
I have this installed and working nicely on my forum, however I have noticed that the message preview doesn't show in the User Notifications on the main UserCP page...anyone know why and how I can fix that?
TIA
Lissa
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.