The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Right, the activity stream templates is what you would have to edit in order to change the size, and there is quite a few of them to change.
If you look in your customavatar table, you will see that the height is set to 60 This is controlled by the class_core.php file when you load a avatar to the site. So in order to change this, without doing a query, and a file edit, is to edit each template for the activity stream, and find something like this. Code:
<img src="{vb:raw userinfo.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw userinfo.username}}" /> Code:
<img width="100px" height="100px" src="{vb:raw userinfo.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw userinfo.username}}" /> |
#12
|
||||
|
||||
Yikes.
|
#13
|
||||
|
||||
Like I said, I looked into this, and that is why I posted this.
|
#14
|
||||
|
||||
HTML Code:
li.activitybit .avatar img {width: 100px;} |
Благодарность от: | ||
Max Taxable |
#15
|
||||
|
||||
Yeah I already went there Lynne haha.
This size is defined when avatars are uploaded. They saved themselves alot of coding to scale images doing it this way, but makes it a real pain in the butt to customize to your liking. |
#16
|
||||
|
||||
Well son of a gun, I could have sworn I tried that before, but I guess not.
But, you will also have to adjust the width in this css to acomodate the increased size. Code:
li.activitybit .avatar { float: left; padding-right: 10px; width: 75px; } |
#17
|
||||
|
||||
So to sum it all up, add this to your additional.css
Code:
/* Start Resize Avatar In Activity Stream */ li.activitybit .avatar img { width: 100px; } li.activitybit .avatar { width: 115px; } li.activitybit .fulllink { margin-left: 40px; } /* End Resize Avatar In Activity Stream */ This will make the avatars 100px high by 100px wide, and take care of the display issues with text overlapping the avatar. Now should you want the avatar height different from the width, change the first bit of CSS to this. Code:
li.activitybit .avatar img { width: 100px; height: 60px; } |
2 благодарности(ей) от: | ||
Lynne, Max Taxable |
#18
|
||||
|
||||
Much thanks to *all* of you for your help on this.
Strangely, the enlarged avatar comes out blurry (the avatar height and width in the usergroup settings + the css above are identical). This makes me think that the 60x60px version is still being pulled instead of the actual avatar itself. Any thoughts on this? |
#19
|
||||
|
||||
Yes, the actual thumb is being used, and resized. There is no other way around this without, a file edit, then having all users reupload their avatars. And quite possibly some more changes.
IMO the best bet it to leave well enough alone, to much trouble, just to make avatars bigger, which really is not going to have any benefit to the site. |
#20
|
||||
|
||||
Yep any time you are using script to scale images up, this happens.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|