2

Closed

Using on a subsite

description

I placed the web part on a subsite that has the structure of: http://server/sites/Team/Site1. I created a picture library named 'Pictures' within Site1. I placed the word Pictures in the query field for the webpart, but I only receive a red X showing within the web part. When I check the properties of the red X, it says the picture it is trying to show should be located at http://server/Pictures/111.jpg

I also tried to put in the full path of http://server/sites/Team/Site1/Pictures with no success. I also tried sites/Team/Site1/Pictures.

Is this a bug?
Closed Jun 15, 2010 at 10:01 PM by MikeJohnson

comments

mdh1ugs wrote Apr 9, 2008 at 8:33 AM

changing line
imgRandom.ImageUrl = "/" + oColl[i].Url;
to
imgRandom.ImageUrl = oSPWeb.Url + "/" + oColl[i].Url;
Seems to do the trick.

wrote Apr 10, 2008 at 2:12 PM

dggcoop wrote Apr 10, 2008 at 2:20 PM

I installed using the SPAdRotator.wsp file. Where should the suggested information be changed? I am assuming in the source code, but what file?

mdh1ugs wrote Apr 10, 2008 at 9:03 PM

get hold of the source code, edit SPAdRotator.cs, rebuild the dll and copy to the GAC. (i actually made a new dll so had to edit web config). please mail me if you need further info.

MikeJohnson wrote Apr 15, 2008 at 1:57 AM

I have uploaded a new solution, click on the Releases tab to download.

wrote Apr 15, 2008 at 1:57 AM

wrote Apr 15, 2008 at 1:58 AM

MikeJohnson wrote Apr 15, 2008 at 4:39 AM

I have uploaded a new solution that fixes this problem. Click on the Releases tab to download.

** Closed by MikeJohnson 4/14/2008 6:58 PM

MikeJohnson wrote Apr 15, 2008 at 4:39 AM

wrote Apr 15, 2008 at 4:39 AM

wrote Apr 15, 2008 at 4:41 AM

wrote Jun 15, 2010 at 10:01 PM

wrote Feb 14, 2013 at 7:40 PM

wrote May 16, 2013 at 9:27 AM