The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Full size avatar in user's profile
It seems that Jelsoft expects everyone to have profile pictures enabled. This is the only explanation I can think for the fact that in the user's profile, his/her own avatar, is a thumbnail, whereas in other places such as the postbit or the memberinfo, its full size Personally, I have disabled profile pictures, as I feel they are completely superfluous and I wanted the user's avatar to display at the place that the vB devs have intended the profile pic to do so. The template edit to put it there was easy. However, how the hell would I make it full size? I even tried using the code from my 3.6.x memberinfo template. It didn't help. No template edit I thought helped. So, as a last resort, I looked at the code. After some reading, I found out what I had to change: file: includes/class_userprofile.php line: 197 find: PHP Code:
PHP Code:
And there isn't even a hook somewhere nearby, to save the file edit. I hope it helps someone save the time that I spent looking for it. And if any vB dev is reading, I want to say that its disgraceful to have to make a file edit for that!!! |
#22
|
|||
|
|||
Thank you!
|
#23
|
||||
|
||||
Does anyone here happen to know if an avatar can be made to only be full size if it's under a certain amount of dimensions? For example, if an avatar is over 100x100, it will only display a thumbnail?
|
#24
|
|||
|
|||
what template would i find this in????
|
#25
|
||||
|
||||
none. it's a file edit, not a template edit
|
#26
|
|||
|
|||
sorry but im a noob on this..where would i find said file???
|
#27
|
||||
|
||||
Col,
You have to use an FTP program like Filezilla or CuteFTP to edit the file "class_userprofile.php", which is located in the directory "/includes/", with the first "/" representing your "root" directory, or your first/top directory (you should see it after logging into your website). I assume whoever is hosting your forum has allowed you database access. If you're not sure, you should ask your host; from the host, too, you can get the user name, password, and FTP address you'll need to login (the latter is usually ftp:// followed by your site URL after "www."). |
#28
|
|||
|
|||
i have a board with variable size avatars from 125x125 up to 200x200. this trick works but the 200x200 avatars are too big for the profile page box in sits in. so i figured out a way to set the dimensions by trial and error but there is one draw back. i set my dimensions at 125x125 but any avatar that a members adds that is less then 125x125 will be stretched and lose resolution. here is what i did:
Code:
fetch_avatar_from_userinfo($this->userinfo, true, false); Code:
fetch_avatar_from_userinfo($this->userinfo, false, false); Code:
($this->userinfo['avatarwidth'] ? ' width="' Code:
($this->userinfo['avatarwidth'] ? ' width="125px' Code:
($this->userinfo['avatarheight'] ? ' height="' Code:
($this->userinfo['avatarheight'] ? ' height="125px' can anyone provide any help on how to work around this? like rather then defining a set dimension, defining a maximum allowable dimension |
#29
|
|||
|
|||
Thank you so much for sharing this! Very helpful and looks MUCH better in the profile.
|
#30
|
|||
|
|||
can some one show me how to to the same with friends avatars ??
|
#31
|
||||
|
||||
THanks for this. I'm going to try it with VB 3.8.7. It would be nice if vBulletin included this as an adjustable feature. By that I mean the display size of the avatar image on the profile page.
Quote:
Is there any way to keep the aspect ratio of the image? So I can just set width restrictions? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|