PM Preview 3.5 Edition
This modification is in the archives.
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> Download This modification is archived and cannot be downloaded. Screenshots
|
Similar Mods
Statistics Modifications vBStatistic Preview Edition | vBulletin 3.6 Add-ons |
New Posting Features Make poll preview a REAL preview | vBulletin 3.7 Add-ons |