Back to vBulletin 3.6 Add-ons

Sender Avatar In Private Message List
Mod Version: 1.00, by .Tim

This modification is in the archives.
vB Version: 3.6.4 Rating: (3 votes - 4.33 average) Installs: 87
Released: 24 Sep 2006 Last Update: 26 Sep 2006 Downloads: 352
Not Supported Uses Plugins Template Edits  

I've seen a few requests for it and wanted it myself, I spent a lot of time on it and then realized I wasted a lot of time and it was actually quite simple. Now this works whether you store your avatars in the filesystem or database.

Upload the plugin. Then:

In your pm_messagelistbit template find:

Code:
<if condition="$show['pmicons']"><td class="alt2"><if condition="$show['pmicon']"><img src="$pm[iconpath]" alt="$pm[icontitle]" /><else />&nbsp;</if></td></if>
And replace it with:

Code:
<if condition="THIS_SCRIPT!='usercp'"> <if condition="$sk_avurl"><td class="alt2" width="80"><img src="$sk_avurl[0]" width="60" /></td><else /><td class="alt2" width="60"><img src="images/misc/noavatar.gif" width="60" border="0" /></if></td></if> </if>

You'll be replacing the post icon that shows up between the status icon and the message itself.

If your board allows users to not have an avatar and you're getting red x's on some, do this:

Spoiler (click to open)


My solution is :
Replace in pm_messagelistbit template :
PHP Code:
    <if condition="$show['pmicons']"><td class="alt2"><if condition="$show['pmicon']"><img src="$pm[iconpath]alt="$pm[icontitle]/><else />&nbsp;</if></td></if> 
with
PHP Code:
<if condition="$sk_avurl"><td class="alt2" width="80"><img src="$sk_avurl[0]width="80" /></td><else /><td class="alt2" width="80"><img src="images/no_avatar.jpg" width="80" border="0" /></if></td></if> 
Create a image :
Width 80 and height 80
name : no_avatar.jpg
location : vb/images

and result :
Attached Thumbnails
Click image for larger version
Name:	pm_is.jpg
Views:	397
Size:	26.6 KB
ID:	53939  

Close


Credit to:
TruthElixirX, Tralala, nevetS and Lionel
For their help. Thanks.

PS This hack is compatible with 3.7

Download

This modification is archived, downloads are still allowed.

File Type: %1$s pmavatar.xml (281 Bytes, 492 downloads)

Screenshots

Click image for larger version
Name:	pmavexample.jpg
Views:	1509
Size:	27.8 KB
ID:	53845  


vblts.ru supports vBulletin®, 2022-2024