The code below is from the main.tpl file. I am trying to create it with 3 columns - one bigger in the middle, and smaller ones at the sides. I also wanted the database to display along the left column, and at the bottom of that column, other links.
What's happening is no matter how I try to place the second set of links on the bottom of the first column, they don't stay them.
Also, I left the default listing code to continue to display, but now the first column has a copy of the display code, and the center column won't display.
Anyone have any ideas on this. Thanks so much.
MAIN.TPL...
<table width="95%"> <tr> <td width="20%" align="left" valign="top"> <span class="title">LISTINGS AT A GLANCE!</span><br><br> <table align="left" cellpadding="1" cellspacing="2"> <!-- BEGIN CATSBODY --> <!-- BEGIN REGULAR --> <td {CATWIDTH} valign="top" class="category"> <a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW}<br> <br> <!-- BEGIN SUBSUB --> <a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a>, <!-- END SUBSUB --> </td> <!-- END REGULAR --> <!-- END CATSBODY --> <span align="left" valign= "top" class="title"><p>OTHER FEATURES</p></span> <span><p><a href="http://name.com/links/">Get a Free Display Listing</a></p></span> </table> </td>
<td width="65%" valign="top"> <table align="center" cellpadding="5" cellspacing="10"> <!-- BEGIN CATSBODY --> <!-- BEGIN REGULAR --> <td {CATWIDTH} valign="top" class="category"> <img src="templates/default/images/folder.gif" alt="folder"> <a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br> {CATDESCRIPTION} <br> <!-- BEGIN SUBSUB --> <a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a>, <!-- END SUBSUB --> </td> <!-- END REGULAR --> <!-- END CATSBODY --> </table>
I guess it's an html thing, but you have to put the items for the second part of the listings to be in the column between the first list's </table> tag and the column's ending </td>. Of course, it helps to check your code for missing tags too - this also came in handy
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on trouble with template mods
Member
Usergroup: Member
Joined: May 25, 2005
Total Topics: 6
Total Comments: 13
Hi.
The code below is from the main.tpl file. I am trying to create it with 3 columns - one bigger in the middle, and smaller ones at the sides. I also wanted the database to display along the left column, and at the bottom of that column, other links.
What's happening is no matter how I try to place the second set of links on the bottom of the first column, they don't stay them.
Also, I left the default listing code to continue to display, but now the first column has a copy of the display code, and the center column won't display.
Anyone have any ideas on this.
Thanks so much.
MAIN.TPL...
<table width="95%">
<tr>
<td width="20%" align="left" valign="top">
<span class="title">LISTINGS AT A GLANCE!</span><br><br>
<table align="left" cellpadding="1" cellspacing="2">
<!-- BEGIN CATSBODY -->
<!-- BEGIN REGULAR -->
<td {CATWIDTH} valign="top" class="category">
<a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW}<br>
<br>
<!-- BEGIN SUBSUB -->
<a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a>,
<!-- END SUBSUB -->
</td>
<!-- END REGULAR -->
<!-- END CATSBODY -->
<span align="left" valign= "top" class="title"><p>OTHER FEATURES</p></span>
<span><p><a href="http://name.com/links/">Get a Free Display Listing</a></p></span>
</table>
</td>
<td width="65%" valign="top">
<table align="center" cellpadding="5" cellspacing="10">
<!-- BEGIN CATSBODY -->
<!-- BEGIN REGULAR -->
<td {CATWIDTH} valign="top" class="category">
<img src="templates/default/images/folder.gif" alt="folder"> <a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br>
{CATDESCRIPTION} <br>
<!-- BEGIN SUBSUB -->
<a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a>,
<!-- END SUBSUB -->
</td>
<!-- END REGULAR -->
<!-- END CATSBODY -->
</table>
<div align="center">
....
Member
Usergroup: Member
Joined: May 25, 2005
Total Topics: 6
Total Comments: 13
Got it!
In case this is of interest,
I guess it's an html thing, but you have to put the items for the second part of the listings to be in the column between the first list's </table> tag and the column's ending </td>. Of course, it helps to check your code for missing tags too - this also came in handy