Missing "nophoto.gif" in Member List

Topics: Developer Discussion, Help, Request
Apr 27, 2007 at 12:56 AM
Hi all,
Has anyone noticed in RC1 that when you don't upload a photo that you get the red "x" next to the username when viewing the /member/list.aspx?
In the original Club Starter Kit, a "No Photo Selected" icon used to show up next to users who didn't upload a photo.
Any ideas on how to fix this?

Here how the source looks after the page is rendered:

<div class="membercard">
<div style="float: left; padding: 0 5px 0 0;">
<img id="ctl00ContentPlaceHolder1DataList1ctl00ImageThumbnail1" src="" style="border-width:0px;" />

<span id="ctl00ContentPlaceHolder1DataList1ctl00titleLabel">test 123</span>
Apr 27, 2007 at 3:09 AM
There are a number of those gifs missing from RC1, three or four in the Forum section that I found. I've been getting them from an older version, Version 2-Beta 2 I think. So far I've found them all there. Some need to go in the /images folder and some in whatever theme/images folder that you are using. Just put a copy in both and you should be good to go.
Apr 28, 2007 at 3:21 PM
efrazier and akabatman2... can you make a list of the images that need to go in the images folder?
Apr 30, 2007 at 2:50 PM
So Far,

This is what I have. I can't remember what I had to put in there, but this is a list of what I have in my /images folder:

Apr 30, 2007 at 3:15 PM
Edited Apr 30, 2007 at 3:19 PM
I added a function to the top of the page

Public Function picit(ByVal content As String) As String
If content Is Nothing Then
Return "../images/nophoto.gif"
Return content
End If
End Function

then i modified the line that references the picture to use the function

<asp:image ID="ImageThumbnail1" runat="server" imageURL='<%# picit(Cstr(Eval("PhotoURL"))) %>' />

there is probably an easier way to do this but I had to do this quickly.

As you can see in what you pointed out. The src doesn't point anywhere in RC1. This is because the database is returning a null value. This is in turn getting passed into the page. My function simply checks if it is null and if it is, it returns ../images/nophoto.gif which will put the image that you are looking for in there as long as you have the nophoto.gif file in your images.