Version: 1.00, by .Tim
Developer Last Online: Mar 2013
Category: Private Messages Enhancements -
Version: 3.6.4
Rating:
Released: 09-23-2006
Last Update: 09-24-2006
Installs: 87
Uses Plugins Template Edits
No support by the author.
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.
I seem to be encountering a strange problem. If a user goes to their User CP and sees the private message bit (if the PM is brand new and unread), the avatars don't show up. I'm not sure why.
Here is a screenshot of what I mean (ignore the header at the top, it was already fixed.)
Likewise, when I apply the edit offered up here, in order to use the "noavatar.gif" graphic for members that have no avatar, I get that graphic in the private message bit of the UserCP, even if the sender does, in fact, have an avatar:
This tells me that it should work properly. I just would rather have it show the sender's actual avatar in that spot, not a blank space, or worse, this "noavatar.gif" graphic.
Quote:
Originally Posted by TruthElixirX
I tried duplicating the plug-in that is used in private_messagelist_messagebit and put it in usercp_pmbit.
I did the same, and now see an avatar... but it's not the correct avatar from the sender. It's the avatar of a completely different forum member. Color me confused (and stumped.)
This tells me that it should work properly. I just would rather have it show the sender's actual avatar in that spot, not a blank space, or worse, this "noavatar.gif" graphic.
At the very least I'd like to remove the avatar field from the "new PM" in the UserCP view entirely.
It kinda sucks that enabling it for the Private Messages page also makes it appear here, and that it appears incorrectly to boot. Looks great in the PM box, though. So, any clues on separating these two so it doesn't look so wrong/bad in the UserCP?
Some of my users still receive the following error message when viewing their PMs:
Quote:
Invalid SQL:
SELECT user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(customavatar.userid) AS hascustom, customavatar.dateline,
customavatar.width, customavatar.height
FROM user AS user
LEFT JOIN avatar AS avatar ON avatar.avatarid = user.avatarid
LEFT JOIN customavatar AS customavatar ON customavatar.userid = user.userid
WHERE user.userid = cc;
MySQL Error : Unknown column 'cc' in 'where clause'
Tim, any response as to how to fix the issue of a blank, wrong, or broken image showing up as avatar in the private message bit of UserCP, when using this add-on? TruthElixirX and I have been discussing it in the last few posts.
I honestly have no idea. I haven't experienced those problems on either board I'm using this on. Sorry. I'll post in here if I have a break through and come up with something though.
For the record, I'm experiencing this on a pretty clean install of vBulletin 3.6.4, using the built-in vBulletin skin. If you'd like to investigate by checking out my forum, just let me know and I can PM you a login.
In the meantime I'm going to have to explore turning off the private message bit of UserCP entirely, which obviously is a bummer.
Thanks for the consideration though, and for sharing this otherwise-very-cool hack.