Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Image on detailed page

Quote Reply
Image on detailed page
Hi All,

I've searched but unable to come up with an answer here. Please direct me to a previous thread if there is one. Here's my question. I've successfully added an image to go along with an article on a detailed page. The image with article shows fine in IE but nothing shows in Netscape. I get the header with a blank page. If there is no image the article displays perfectly in Netscape.

This is what's been done so far:
Added an image field (column) to the "add link" form. When someone goes to add a link, if they have an image to go with the article (we are displaying on detailed pages) they can add the image url in the image field. This is what I've added in the image field for testing purposes: <img src="http://fakeurl.com/images/jakbqwik.jpg" width="51" height="87" alt="Image" align="left" hspace="6" vspace="3">

On the detailed template, I added this code:
<%if Image%>
<table width="90%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td valign="top" align="left">
<p><%Image%><%Article%></p>
</td>
</tr>
</table>
<%else%>
<%Article%>
<%end if%>

I'm sure it's either something in the code or possibly because of netscape and tables. After all, I'm far from an expert in HTML or any programming language. I've done this by hit and miss. Can anyone tell me where I went wrong and a possible solution?

Thanks so much!
Nadine

Quote Reply
Re: Image on detailed page In reply to
When this happens, it's almost always a tables issue. Missing </tr> tags, usually, or improperly closed or nested </table> tags (usually a missing one). NN doesn't handle missing closing tags really well.

Go to one of the sites that check your html pages for you, and submit the url of the page that you are having problems with.

I think you'll find the errors jump out at you :)

Also, NN has problems with some java/javascripts, so if that is there, that might be a problem.

Also, when this happens, rebooting your machine should be the _first_ thing you do (the windows machine running NN and MSIE <G>)



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Plugins:http://LinkSQL.com/plugin
Quote Reply
Re: Image on detailed page In reply to
Thanks! I did that, found many errors...LOL! However, one major error was the tag <%end if%> - should have been <%endif%>. Guess I should take a few classes, eh? :)

Thanks, Pugdog!

Quote Reply
Re: [Westiegirl] Image on detailed page In reply to
Hi Westie girl,

I know you posted this some time ago, however, I was wondering if you have updated your code with the new Links2.1 version and if possible do you have a "how-to" for adding an image to the detailed file?

Thanks
Webmaster
http://www.e-bannerx.com
Quote Reply
Re: [fulcan] Image on detailed page In reply to
Its easy. Simply add a new field (it has been discussed by me at least 3 times this week already, and more by other people), something like DetailedImage, then insert into the detailed.html template;

<%if DetailedImage%><img src=<%DetailedImage%>><%endif%>

Then do a rebuild. If any of the links have this field set up to show an image (via the database entry for it), then it will display an image for it.

Hope that helps. I'm just off for a driving lesson at the moment, so I'm afraid I don't have time to go through it in more depth.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!