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?
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?