Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Sender Avatar In Private Message List Details »
Sender Avatar In Private Message List
Mod Version: 1.00, by .Tim (Member) .Tim is offline
Developer Last Online: Mar 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.4 Rating: (3 votes - 4.33 average) Installs: 85
Released: 24 Sep 2006 Last Update: 25 Sep 2006 Downloads: 325
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And replace it with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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:
http://www.vbulletin.org/forum/showp...1&postcount=26

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

PS This hack is compatible with 3.7

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	pmavexample.jpg
Views:	1482
Size:	27.8 KB
ID:	53845  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #46  
Old 01 Feb 2007, 22:32
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Real name: Tim
I have no idea, check and make sure you've done all the steps correctly. I haven't had that problem.
Reply With Quote
  #47  
Old 04 Feb 2007, 17:50
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
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.

I tried duplicating the plug-in that is used in private_messagelist_messagebit and put it in usercp_pmbit.

When I do this, and refresh the page that has a private message on it says


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Here is a screenshot of what I mean (ignore the header at the top, it was already fixed.)
Attached Images
File Type: jpg usercplink-20070202-230246.jpg (39.2 KB, 18 views)
Reply With Quote
  #48  
Old 05 Feb 2007, 01:26
marcsmith73 marcsmith73 is offline
 
Join Date: Jan 2007
Parse error: syntax error, unexpected '<' in /home/salthub/public_html/private.php(1678) : eval()'d code on line 1


I have loaded ...loaded again,...again....I get this in my Pm list. Along with no avatar pics, and red X's Now I know I am not retarded! WTF!
Reply With Quote
  #49  
Old 06 Feb 2007, 01:18
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Originally Posted by marcsmith73 View Post
Parse error: syntax error, unexpected '<' in /home/salthub/public_html/private.php(1678) : eval()'d code on line 1


I have loaded ...loaded again,...again....I get this in my Pm list. Along with no avatar pics, and red X's Now I know I am not retarded! WTF!
I think you stuck an extra "<" in your template edit. Double check.
Reply With Quote
  #50  
Old 06 Feb 2007, 15:23
mamashid mamashid is offline
 
Join Date: Jan 2007
I want to put this hack on my board, i tried all you all stated to do and i get the red X's if I dont get a red X then I get my wording up above and then my red X boxes down below the boxes...please help! I so would love to use this hack! what a great idea it was
Reply With Quote
  #51  
Old 06 Feb 2007, 19:25
mamashid mamashid is offline
 
Join Date: Jan 2007
Originally Posted by xman_79 View Post
My solution is :
Replace in pm_messagelistbit template :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Create a image :
Width 80 and height 80
name : no_avatar.jpg
location : vb/images

and result :
Still the X, what else can I do?
Reply With Quote
  #52  
Old 11 Feb 2007, 22:01
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Originally Posted by TruthElixirX View Post
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.

Originally Posted by TruthElixirX View Post
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.)

Last edited by Tralala; 11 Feb 2007 at 22:12.
Reply With Quote
  #53  
Old 16 Feb 2007, 16:56
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Originally Posted by Tralala View Post

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?
Reply With Quote
  #54  
Old 17 Feb 2007, 06:01
Trana Trana is offline
 
Join Date: Apr 2005
Some of my users still receive the following error message when viewing their PMs:

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'
Any ideas?
Reply With Quote
  #55  
Old 18 Feb 2007, 13:53
anywares anywares is offline
 
Join Date: Dec 2006
Does this work on vB 3.6.4?
Reply With Quote
  #56  
Old 18 Feb 2007, 15:05
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Real name: Tim
Yes.
Reply With Quote
  #57  
Old 18 Feb 2007, 16:13
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Originally Posted by .Tim View Post
Yes.

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.
Reply With Quote
  #58  
Old 18 Feb 2007, 16:33
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Real name: Tim
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.
Reply With Quote
  #59  
Old 18 Feb 2007, 17:12
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Thanks, .Tim, that's about all I can ask.

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.
Reply With Quote
  #60  
Old 19 Feb 2007, 15:31
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
nice hack!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:44.

Layout Options | Width: Wide Color: