|
| Display avatar in member search |
 |
Wed, 6 Dec 2006 08:53:53 +0000 |
I used to following code in View-ForumMembers.ascx, it shows the users avatar
but also an error when no avatar has been found.
<tdclass="CommonListCell"><asp:ImageImageUrl='<%#
"../../../users/avatar.aspx?userid=" +
DataBinder.Eval(Container.DataItem,
"UserID")%>'ID="Avatar"runat="server"/></
td>
Anyone any idea how to avoid this?
Thanks in advance.
|
| Post Reply
|
| Re: Display avatar in member search |
 |
Wed, 6 Dec 2006 16:36:00 +0000 |
Since we have a UserAvatar control, it's even easier than you think!
<td align="center" class="CommonListCell">
<CS:UserAvatar runat="server" User="<%#
Container.DataItem %>" />
</td>
Hope that helps.
|
| Post Reply
|
| Re: Display avatar in member search |
 |
Wed, 6 Dec 2006 18:27:22 +0000 |
That did the trick!
Thanks!
|
| Post Reply
|
| Re: Display avatar in member search |
 |
Mon, 11 Dec 2006 08:46:07 +000 |
Would it also be possible to search for displayname or public email in the
members search (/user/Members.aspx)?
|
| Post Reply
|
| Re: Display avatar in member search |
 |
Mon, 11 Dec 2006 19:11:52 +000 |
Enabling search for those add'l fields would require a code change and a
re-compile. In addition to changing the skin to reflect which fields to search,
you'd want to, at a minimum, tweak the dynamic sql that's generated in the
SqlGenerator class (\Data Providers\SqlDataProvider\SqlGenerator.cs).
Hope that helps...
|
| Post Reply
|
|
|
|
|
|
|
|
|
|