[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]

Re: Re: Question with custom Navbar: <img src= does not load graphics


  • From: Gunnar Hjalmarsson  
  • Date: Wed, 10 Jan 2007 00:12:49 +0100

Justin Mann wrote:
(Repost in ascii: the original post deleted text marked "bold")

Well, for a mailing list, posted is posted and cannot be deleted. Even if I personally prefer plain text, especially when code is involved, we do accept HTML messages as well.

When I setup a custom navbar (In Ringadmin under [customize] -> [html code]),
it will not show the graphics from the <img src="..." command.

a) For a test, I uploaded a gif picture into every ringlink directory.
b) I wrote the following demo code:

<table border="3" cellpadding="3" cellspacing="3"><tr>
<td><a href="[cgiURL]/home.pl?ringid=GegenImmobetrug;siteid=[siteid]" target="_blank"> <img src=" logo-im-info.gif" alt="WebRing Info" width="24" height="20" border="0"></a></td></tr></table> Besides of having src="logo-im-info.gif", I also tried src="/logo-im-info.gif", it will not display the graphics (only the text "webring info").

If you look at the page source of the "Customize HTML code" page, you'll find a <base href= ...> element. Hence, src="logo-im-info.gif", which is a relative URL, makes Ringlink look for the image in the directory of your ring homepage page. Place the image there, and you'll hopefully notice a difference.

When I change the code and add the [cgiURL]/ infront of the graphic file, then it works:

Hmm.. If [cgiURL] refers to a directory in your cgi-bin, that's surprising to me. If the web server allows reading of files in the cgi-bin from a browser, its configuration is not convincing.

The issue is: giving this code to the users is not so practical, because they should store the graphics on their local machines (instead of opening them from the webring server).

Solution provided above.

/ Gunnar


Follow-Ups from:
Justin Mann

References to:
Justin Mann
Gunnar Hjalmarsson
Justin Mann
Justin Mann

[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]