Sender Avatar In Private Message List
This modification is in the archives.
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 /> </if></td></if> 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 /> </if></td></if>
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>
Width 80 and height 80 name : no_avatar.jpg location : vb/images and result : ![]() 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. Screenshots |