The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Sender Avatar In Private Message List Details »» | |||||||||||||||||||||||||
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: https://vborg.vbsupport.ru/showpost....1&postcount=26 Credit to: TruthElixirX, Tralala, nevetS and Lionel For their help. Thanks. PS This hack is compatible with 3.7 Show Your Support
|
Comments |
#92
|
|||
|
|||
what php version you running? People need to start letting people know this is for php5+ or whatever cause I just upgraded to 5+ from 4.4.4 and now I have all sorts of errors from mods. Also fixed tons of errors from mods. Not to say this is the case with your mod will find out in bit while I test.
|
#93
|
||||
|
||||
When the avatar shows up in the inbox of your PM's, is it shruck to fit or the same usual size?
|
#94
|
||||
|
||||
In the PM list it is resized to a smaller size but in the actual PM itself it is the normal size.
|
#95
|
||||
|
||||
I like the hack, but didn't want to replace the post icon with the avatar, so I put the post icon and the status icon on top of each other. Here's my pm_messagelistbit template:
HTML Code:
<tr> <td class="alt1"><img src="$stylevar[imgdir_statusicon]/pm_$pm[statusicon].gif" alt="" border="0" /> <img src="$pm[iconpath]" alt="$pm[icontitle]" /></td> <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> <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> <if condition="$show['pmcheckbox']"><td class="alt2" align="center" style="padding:0px"><input type="checkbox" name="pm[$pmid]" value="$groupid" /></td></if> </tr> |
#96
|
||||
|
||||
Quote:
ie. Admin CP > User Options > etc. Thanks, AO |
#97
|
|||
|
|||
Quote:
I narrowed it down a little bit. I found that the affected members have records in pmtest with no related records in pm. Something is inserting PMs incorrectly and it causes this mod to blow up. Perhaps the author could code in a function to check and see if the userid is blank, and if so, to use the noavatar.gif instead. I know this is a workaround, but it will fix this for everyone that is having problems until the offending culprit is found. Thanks! |
#98
|
||||
|
||||
Tim, this adds a query for every unique avatar on the page, so if you have 22 users sending you PMs and they are all listed on this page, it will add 22 queries for the page on top of the vb default and whatever else they having running in there.
|
#99
|
|||
|
|||
Installed! Nice one!
|
#100
|
|||
|
|||
Quote:
I stumbled on this today, if you still need the fix it is: Got to the plugin manager, find the plug in 'PM Avatars' and edit PHP Code:
PHP Code:
Let me know how you get on, it will fix it! AO |
#101
|
|||
|
|||
Finished adding this with 0 queries added yes 0. Will give to mod owner or will just release it. I also integrated it with opacity avatar MOD.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|