Back to vBulletin 3.5 Add-ons

PM Preview 3.5 Edition
Mod Version: 1.00, by BluPhoenix

This modification is in the archives.
vB Version: 3.5.0 RC2 Rating: (2 votes - 5.00 average) Installs: 146
Released: 24 Aug 2005 Last Update: 25 Aug 2005 Downloads: 151
Not Supported Uses Plugins Template Edits  

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&amp;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:
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&amp;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:
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&amp;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.

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

vblts.ru supports vBulletin®, 2022-2024