PDA

View Full Version : Profile Pic or Avatar?



Kihon Kata
Thu 30th Aug '07, 1:01am
On "my blog", the user's profile pics are there and NOT avatars, is this the way it's supposed to be?

Onimua
Thu 30th Aug '07, 1:11am
Yes, that's how it appears here as well.

Grover
Thu 30th Aug '07, 2:55am
And... what happens then if you do not allow Profile Pictures on your site?

Wouldn't it be better if we had the choice to either use the Avatars or the Profile Pictures for the Blog?

Onimua
Thu 30th Aug '07, 3:29am
It would.

If you don't have a profile pic, it should display your avatar. At least that's how I've understood it to work.

Freddie Bingham
Thu 30th Aug '07, 5:01pm
It would.

If you don't have a profile pic, it should display your avatar. At least that's how I've understood it to work.
That is how it does work. You should be able to edit the user sidebar template and replace the condition that chooses the profile pic with just the avatar code if that is what you want.

Smelly_Fed
Thu 6th Sep '07, 5:27pm
That is how it does work. You should be able to edit the user sidebar template and replace the condition that chooses the profile pic with just the avatar code if that is what you want.

I found the template (blog_sidebar_user) but not really sure what code to search for to find the profile picture and replace with the avatar picture.

Could you give just a little more direction there?

A lot of my users have oversized profile pictures and that obscures the blog content.

Lizard King
Thu 6th Sep '07, 5:47pm
The profile pictures shall be resized to fit in your sidebar.

Smelly_Fed
Thu 6th Sep '07, 5:54pm
The profile pictures shall be resized to fit in your sidebar.

What is that, some sort of wishful thinking?

I would have used "Abbra Cadabra" if I thought it'd help. :cool:

Freddie Bingham
Fri 7th Sep '07, 1:02pm
If they aren't being resized then that means they are older profile pictures that predate the time when we started storing the dimensions of the image. You can reupload those specific images, wait for 1.0.1 for a script to update the images, or you can try the user supplied code at http://www.vbulletin.com/forum/project.php?issueid=23095

MsJacquiiC
Tue 11th Sep '07, 3:27am
I found the template (blog_sidebar_user) but not really sure what code to search for to find the profile picture and replace with the avatar picture.

Could you give just a little more direction there?

A lot of my users have oversized profile pictures and that obscures the blog content.

Think it has something to do with the following code...
Direction will be appreciated though - As I want to show the avatar - just don't see an option for that anywhere.

Help please!

Jacquii.


<if condition="$show['profilepic']">
<div style="text-align:center; margin-bottom:$stylevar[cellpadding]px">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]"><img src="$userinfo[profilepicurl]" $userinfo[ppwidth] $userinfo[ppheight] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_profilepic]</phrase>" border="0" class="alt2" style="<if condition="$userinfo['ppwidthpx'] > 180">max-width:180px; height:auto; width:auto !important; width:180px<else />display:inline</if>" /></a>
</div>
<else />
<if condition="$show['avatar']">
<div style="text-align:center; margin-bottom:$stylevar[cellpadding]px">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]"><img src="$userinfo[avatarurl]" $userinfo[avwidth] $userinfo[avheight] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" class="alt2" style="<if condition="$userinfo['avwidthpx'] > 180">max-width:180px; height:auto; width:auto !important; width:180px<else />display:inline</if>" /></a>
</div>
</if>
</if>

Freddie Bingham
Thu 13th Sep '07, 2:48am
Try replacing all of that code with
<if condition="$show['avatar']">
<div style="text-align:center; margin-bottom:$stylevar[cellpadding]px">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]"><img src="$userinfo[avatarurl]" $userinfo[avwidth] $userinfo[avheight] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" class="alt2" style="<if condition="$userinfo['avwidthpx'] > 180">max-width:180px; height:auto; width:auto !important; width:180px<else />display:inline</if>" /></a>
</div>
</if>

MsJacquiiC
Thu 13th Sep '07, 7:36pm
Works like a charm = Thanx FREDDIE ;)

Jacquii.