Message Text |
PHP4.4, Apache2 MySQL 4.0.25
I'm trying to set up on the main page 3 rows and each row having a separate and different Top Level Category type, here is the snippit of main.tpl html code:
<td colspan="2" valign="top" bgcolor="#F09C6E" width="195"><p>
<!-- BEGIN CATSBODY -->
<!-- BEGIN GROUPAI -->
<a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br>
<IF {SWITCH_FORUMVIEWS}>{CATVIEWS} views<br></IF>
<!-- BEGIN SUBSUB -->
<a href="index.php?
action=displaycat&catid={CATID}">{CATNAME}</a>,
<!-- END SUBSUB --></p>
<!-- END GROUPAI -->
<!-- END CATSBODY -->
</td>
<td width="19"><img name="home_r3_c5" src="https://www.webmastersite.net/forums/templates/default/images/home_r3_c5.gif" width="19" height="192" border="0" alt=""></td>
<td valign="top" bgcolor="#F09C6E" width="208"><p>
<!-- BEGIN CATSBODY -->
<!-- BEGIN JRGROUP -->
<a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br>
<IF {SWITCH_FORUMVIEWS}>{CATVIEWS} views<br></IF>
<!-- BEGIN SUBSUB -->
<a href="index.php?action=displaycat&catid={CATID}">{CATNAME}</a>,
<!-- END SUBSUB --> </p>
<!-- END JRGROUP -->
<!-- END CATSBODY -->
</td>
<td width="16"><img name="home_r3_c7" src="https://www.webmastersite.net/forums/templates/default/images/home_r3_c7.gif" width="16" height="192" border="0" alt=""></td>
<td colspan="3" valign="top" bgcolor="#F09C6E" width="200"><p>
<!-- BEGIN CATSBODY -->
<!-- BEGIN SZGROUP -->
<a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br>
<IF {SWITCH_FORUMVIEWS}>{CATVIEWS} views<br></IF>
<!-- BEGIN SUBSUB -->
<a href="index.php?action=displaycat&catid={CATID}">{CATNAME}</a>,
<!-- END SUBSUB --></p>
<!-- END SZGROUP -->
<!-- END CATSBODY -->
</td>
I'm not sure if it's a bug or I'm doing something wrong. The first category type show's up fine. However the other types don't show or display "Top Level".
If I use the default Type "regular" all the types show up in one row.
If I log out as admin the "Top Level" link disappears and the First category shows as both the Top Level and the SUB-category.
Here is how the page is rendered:
td colspan="2" valign="top" bgcolor="#F09C6E" width="195"><p>
<!-- BEGIN CATSBODY -->
<!-- END GROUPAI -->
<!-- BEGIN CATSBODY -->
<!-- BEGIN GROUPAI -->
<a href="index.php?action=displaycat&catid=1" class="categoryname">A,B,C</a> (0) <br>
<a href="index.php?action=displaycat&catid=2">Amateurs</a>,
<a href="index.php?action=displaycat&catid=3">Astro</a>,
<a href="index.php?action=displaycat&catid=4">Anime</a><!-- END SUBSUB --></p>
<!-- BEGIN GROUPAI -->
<a href="index.php?action=displaycat&catid=7" class="categoryname">D,E,F</a> (0) <br>
<!-- END SUBSUB --></p>
<!-- END GROUPAI -->
<!-- BEGIN CATSBODY -->
<!-- END GROUPAI -->
<!-- BEGIN CATSBODY -->
<!-- END GROUPAI -->
<!-- END CATSBODY -->
</td>
<td width="19"><img name="home_r3_c5" src="https://www.webmastersite.net/forums/templates/jack/images/home_r3_c5.gif" width="19" height="192" border="0" alt=""></td>
<td valign="top" bgcolor="#F09C6E" width="208"><p>
<!-- BEGIN CATSBODY -->
<!-- BEGIN JRGROUP -->
<a href="index.php?action=displaycat&catid=1" class="categoryname">A,B,C</a> (0) <br>
<!-- BEGIN SUBSUB -->
<a href="index.php?action=displaycat&catid=1">A,B,C</a>,
<!-- END SUBSUB --> </p>
<!-- END JRGROUP -->
<!-- END CATSBODY -->
</td>
<td width="16"><img name="home_r3_c7" src="https://www.webmastersite.net/forums/templates/jack/images/home_r3_c7.gif" width="16" height="192" border="0" alt=""></td>
<td colspan="3" valign="top" bgcolor="#F09C6E" width="200"><p>
<!-- BEGIN CATSBODY -->
<!-- BEGIN SZGROUP -->
<a href="index.php?action=displaycat&catid=1" class="categoryname">A,B,C</a> (0) <br>
<!-- BEGIN SUBSUB -->
<a href="index.php?action=displaycat&catid=1">A,B,C</a>,
<!-- END SUBSUB --></p>
<!-- END SZGROUP -->
<!-- END CATSBODY -->
</td>
If I understand the documentation and examples, this should work?
Or there is another way?
Thanks. |