The Arcive of vBulletin Modifications Site. |
|
PM Preview 3.5 Edition Details »»
|
|||||||||||||||||||||||||
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: Code:
<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> Code:
<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> 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: 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> Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Cool idea.
![]() You could even make it so that the message preview comes up as a tooltip within the template using title="".
|
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
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! |
|
#5
|
||||
|
||||
|
I like, installed with no problem
![]() Erwin, cool tip. |
|
#6
|
||||
|
||||
|
Awesome! Had this installed on 3.0.8 about a week or so before I upgraded. Missed it haha! Thanks a lot.
|
|
#7
|
||||
|
||||
|
Is there a way to lengthen or shorten the review?? Hack looks great!!
|
|
#8
|
||||
|
||||
|
excellent work!!
looks real classy on the board!! |
|
#9
|
|||
|
|||
|
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.
|
|
#10
|
|||
|
|||
|
Quote:
(instructions updated) |
![]() |
|
|