Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Indent on Links

Quote Reply
Indent on Links
Greetings All!

Code:
# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<dl><dt><font face="Verdana, Helevtica, " size=-1><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<span class="descript">$description </span>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl>|;
}

That is from my site.template.html.pl ..What I wish to do is take away the indent on all the links..

dd has been removed, what else do i have to do..

Also I would like to put the links in two tables. The date added etc etc in one and the actual link and description in another.


------------------
http://www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory


Quote Reply
Re: Indent on Links In reply to
Hello Ian,

You have to edit your link.html template file to take out the indents. I believe that you downloaded and installed the Snap.com template. Edit the link.html and see what happens.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Indent on Links In reply to
Hi there Elliot!

Code:
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<font face="arial size=" 2"><a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="_blank"><img src="/images/list.gif" border="0" width="16" height="18"> <%Title%></a></font>

<%if Description%><font face="arial size=" 2">- <%Description%> - </font>
<%endif%>

<%if isNew%>
<%new_img%>
<%endif%>

<%if is Popular%><font face="arial size=" 2">pop</font>
<%endif%>

<font face="arial size=" 2">(Added: <%Date%> Hits: <%Hits%> Rating: <%Rating%>
Votes: <%Votes%> ) <a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">[Rate It]</a></font>

Nothing in the link.html that indents the links on the pages...

I tired putting a table(s) here and all I did was muck the whole thing up quite badly..



------------------
http://www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory


Quote Reply
Re: Indent on Links In reply to
Greetings All!

Is someone able to answer this ? with snap clone templates.

------------------
http://www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory


Quote Reply
Re: Indent on Links In reply to
Ian,

All you have to do is add indenting codes (like definition list <dl><dt><dd></dd></dl> ) around the link codes, like the following:

Code:
<dl>
<dt><li>
<font face="arial size=" 2"><a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="_blank"><img src="/images/list.gif" border="0" width="16" height="18"> <%Title%></a></font>
<%if Description%>
<font face="arial size=" 2">-
<%Description%>
- </font>
<%endif%>
<%if isNew%>
<%new_img%>
<%endif%>
<%if is Popular%>
<font face="arial size="2">pop</font>
<%endif%>
<font face="arial size=" 2">(Added: <%Date%> Hits: <%Hits%> Rating: <%Rating%> Votes: <%Votes%> )
<a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">[Rate It]</a></font>
</dl>

If this still does not make any sense, check out my directory and also my link,html file:


You will notice that the description and additional information are INDENTED. (You can include the link as part of the indented text.)

Smile

Hope this helps.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------