[LON-CAPA-users] Can't display images
Guy Albertelli II
Fri, 2 Sep 2005 12:32:29 -0400 (EDT)
> I've gotten a bit more info on this. After one of the students
> disabled his Norton firewall, he could see the images. This
> triggered a memory about graphics and port 8080. Does LON-CAPA
> still use this port for some graphics?
Yes. But only for internal graphics (the buttons and other icons
lon-capa uses, not user provided static or dynamic images)
> Could that be this student's problem?
I wonder if the Norton firewall has any logs about what it is doing
> > > Seems like I've seen this one before, but can't find the answer just now.
> > > I've got at least 2 students who say they can view problems, etc. but
> > > can't view the associated images. Any ideas?
> > This is usually because of missing or incorrect <allow>s in the
> > associated problem. Most usually because the problem use variable
> > images.
> > If you do
> > <img src="/res/domain/author/$imagename.jpg" />
> > where $imagename could be either "a" "b" or "c"
> > You need to make sure you have in the problem
> > <allow src="/res/domain/author/a.jpg" />
> > <allow src="/res/domain/author/b.jpg" />
> > <allow src="/res/domain/author/c.jpg" />
> > or
> > <allow src="/res/domain/author/*.jpg" />