PDA

View Full Version : Change avatar size at post info


gatsman
05-07-2014, 07:56 AM
We upgraded to VB5 and our users want bigger size avatars (64x64 is really small?)
So we changed in to 130x200 in css_b_avatar.css
.b-avatar--m { } & .b-avatar--m > img {}

It worked ok all avatars changed to the desired size inside the post info? until i clicked on the navigation button for the next page inside a topic and the full size avatar changed to avatar thumb!!! with size 64px

Full size avatar path - Shows on first page load
http://www.mysite.com/forum/core/image.php?userid=1&dateline=1399359366

Thumb avatar path - Shows if you navigate inside a thread
http://www.mysite.com/forum/core/image.php?userid=1&thumb=1&dateline=1399359366

Reloading the page will again show the correct avatar in full size.
I found that it's this condition that changes the avatar in conversation_userinfo
<vb:elseif condition="$conversation['senderAvatar'] AND $conversation['senderAvatar']['avatarpath'] AND $conversation['senderAvatar']['hascustom']" />
<a href="{vb:url 'profile', {vb:raw conversation}}" class="b-avatar b-avatar--m b-avatar--thread h-margin-bottom-l">
<img src="{vb:raw baseurl_corecdn}/{vb:raw conversation.senderAvatar.avatarpath}" alt="{vb:raw conversation.authorname}" title="{vb:raw conversation.authorname}" />
</a>
<vb:elseif condition="$conversation['avatar'] AND $conversation['avatar']['avatarpath'] AND $conversation['avatar']['hascustom']" />
<a href="{vb:url 'profile', {vb:raw conversation}}" class="b-avatar b-avatar--m b-avatar--thread h-margin-bottom-l">
<img src="{vb:raw baseurl_corecdn}/{vb:raw conversation.avatar.avatarpath}" alt="{vb:raw conversation.authorname}" title="{vb:raw conversation.authorname}" />
</a>


How can I avoid this?

Also my avatars path is something like this:
http://www.mysite.com/forum/core/image.php?userid=1&dateline=1379298462
in vbulletin.com and here it?s something like:
http://www.vbulletin.org/custompics/forum/avatars/avatar65230_3.gif

Is there a way to change my avatars location from database to files?

Lynne
05-07-2014, 05:23 PM
You can move the avatars to the file system in admincp > Avatars > User Picture Storage Type

gatsman
05-07-2014, 05:56 PM
Thanks for that i will try it.
Any info on the avatar change?

Zachery
05-07-2014, 05:58 PM
Why not just set a CSS override, instead of editing the css templates? It should be kept applied. Worst case, edit the template(s), and remove that class.

gatsman
05-07-2014, 06:12 PM
What class is that?
This is not happening because of a class it is loading a different image if you click and navigate the pages.

Lynne
05-07-2014, 08:18 PM
This is a bug. http://tracker.vbulletin.com/browse/VBV-12186 (Note, you must first login to the vbulletin.com forums as a Licensed User before you may see the Jira issue.)

gatsman
05-08-2014, 05:28 PM
It seems that every issue we have on VB5 is a bug and the worst thing is no one is working on them...
Very disappointed in VB5 its a complete disaster for me, never upgrade vbulletin.org to VB5.

Thank you for you time guys.

Lynne
05-08-2014, 05:42 PM
The devs are working on them, just perhaps not the bugs that you find most important. You should 'vote' on any issue of importance to you since the managers (who decide which bugs get worked on) do look to see if an issue has any votes.