Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Topic Tags: User Avatars
Orgiz
#1 Posted : Sunday, January 29, 2012 2:56:24 PM(UTC)


Rank: Greenhorn

Joined: 1/4/2012(UTC)
Posts: 7

Hi!

I have seen in your documentation that you uses:
Quote:
<SUEETIE:UserAvatar runat=server />

as UserAvatar Control. And i also seen there is some properties to the UserAvatar Control.

It works realy nice in all sites but i can't find the avatar control in the forum.

Im interested to change the avatar size in my forum to the larger image found in users profile.
I dont want the forum to show the thumbnail version of the image (60x60px).

In YAF control panel you can change the avatar max size in pixels, but its have no effects to the forums avatar. I still uses thumbnails.

Is it possible to change UserAvatar control in the forum?

Or should i go some other way to do this?

Thanks in advance, keep up the good work!

// Orgiz
Dave Burke
#2 Posted : Sunday, January 29, 2012 7:20:10 PM(UTC)


Rank: Administration

Joined: 12/7/2008(UTC)
Posts: 1,134
Man
United States

Thanks: 25 times
Was thanked: 53 time(s) in 53 post(s)
Orgiz,

The Forum Avatar is hard-coded, probably something we should re-evaluate now that you brought it up. Each Sueetie User has two avatar files: thumbnail (60x60) and larger (200x200). Those sizes are configurable in the Sueetie.config, btw.

We're replacing YAF's UserBox.cs control with one in Sueetie.Forums.UserBox.cs. For performance sake, the thumbnail is used (the avatar with syntax [userid]t.jpg, as opposed to [userid].jpg.) The first screenshot below is the image you want for the larger display, the second screenshot is how you get there, by overriding the GetUserAvatarUrl() method by requesting enabling the userOriginalImage boolean param.

Good luck,
Dave

Edited by user Sunday, January 29, 2012 7:22:16 PM(UTC)  | Reason: Not specified

Dave Burke attached the following image(s):
avatar0129a.png (72kb) downloaded 14 time(s).
avatar0129b.png (94kb) downloaded 20 time(s).

You cannot view/download attachments. Try to login or register.
Orgiz
#3 Posted : Monday, January 30, 2012 4:53:56 PM(UTC)


Rank: Greenhorn

Joined: 1/4/2012(UTC)
Posts: 7

Do not know if I understand correctly.

But, will I need to use Atomo with the project files to access GetUserAvatarUrl enabling the userOriginalImage boolean param?

There's no way that i can complete my Gummybear istallation with the new files from Atomo?

Or can you attach the new files that are hardcoded?



I have found the Sueetie.Forums.UserBox.cs, but i dont know how to write the new code with userOriginalImage and complete it.


Sorry for the confusion,I have too little experience of visaul studio and I think this is maby over my head :(
Dave Burke
#4 Posted : Monday, January 30, 2012 5:03:13 PM(UTC)


Rank: Administration

Joined: 12/7/2008(UTC)
Posts: 1,134
Man
United States

Thanks: 25 times
Was thanked: 53 time(s) in 53 post(s)
Orgiz,

Yes, you'd need Atomo and need to compile it. The exact change to userBox.cs would be:

Code:
.ToString()), 
     true);


Or simply add a "true" to the method. I'm only telling you to do that cause if you want to do a pure CSS play and change the img.forumavatarimage (as shown on the attached) the image will no doubt be blurry since we're expanding a smaller image rather than reducing a larger one.

Good luck,
Dave


Dave Burke attached the following image(s):
yaf0130a.png (84kb) downloaded 10 time(s).

You cannot view/download attachments. Try to login or register.
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.6.1 | YAF © 2003-2012, Yet Another Forum.NET
This page was generated in 0.154 seconds.
Copyright © 2008-2012 Sueetie LLC. All rights reserved.
Sueetie