Gossamer Forum
Home : Products : Links 2.0 : Customization :

Tables in links.html

Quote Reply
Tables in links.html
I have searched the forum and cant get an exact answer to my question. I am using the logo link mod and it works great. I am looking to display catagory listings in a table so the graphic is on the left and descrition on the right. I modified link.html to look like this:



<ul><li><table width="400" border="0" cellpadding="0" cellspacing="3" summary="">
<tr>
<td width="120"><%if Graphic%>
<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="_blank"><img src="<%Graphic%>" width="<%Gwidth%>" height="<%Gheight%>" alt="<%Title%>" border="0"></a>

<%endif%>
</td>
<td valign="top"><%if Description%>
<%Description%></span>
<%endif%></td>
</tr>
</table>
<small class="date">(Added: <%Date%> Hits: <%Hits%> Rating: <%Rating%> Votes: <%Votes%>) <a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">Rate It</a></small>
</ul>



But when I build pages it is removeing the <td> tags. I am assuming that I have to modify site_html.pl but I cant find where its removing the <td> tags

to see what i mean goto:

http://www.bullseyehit.com/...-bin/pages/National/

and view source...

Any help would be greatly appreciated
Quote Reply
Re: [tonyurso] Tables in links.html In reply to
Its the <ul> and <li> tags that are probably causing the problem Type something like;

Code:
<table width="400" border="0" cellpadding="0" cellspacing="3" summary="">
<tr>
<td width="120"><%if Graphic%>
<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="_blank"><img src="<%Graphic%>" width="<%Gwidth%>" height="<%Gheight%>" alt="<%Title%>" border="0"></a>

<%endif%>
</td>
<td valign="top"><%if Description%>
<%Description%></span>
<%endif%></td>
</tr>
</table>
<small class="date">(Added: <%Date%> Hits: <%Hits%> Rating: <%Rating%> Votes: <%Votes%>) <a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">Rate It</a></small>

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!
Quote Reply
Re: [tonyurso] Tables in links.html In reply to
nope now its just printing the bottom line....huhh?
Quote Reply
Re: [tonyurso] Tables in links.html In reply to
each tag has to have its own line for some reason...fiqured it out
Quote Reply
Re: [tonyurso] Tables in links.html In reply to
Unless you install the Enhanced Template.pm code hack located in the Resources section, which will allow you to put codes and tags in whatever "format" in the template pages.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [tonyurso] Tables in links.html In reply to
What I did was put this code in the category.html

Code:
<!-- Links listings -->
<%if links%>
<TR>
<TD valign="top">
<table border="0" cellpadding="5" cellspacing="0"> <%links%>
</table>
</TD>
</TR>
<%endif%>


Then, in link.html, just the TR and TD code you want to display. This way, you only have one table, instead of a stack of 'em.

Reason for edit:-------Am I the only one who looses half his post each time a reply is submitted??


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Sep 20, 2002, 10:47 PM