Posted: 11/14/2001 12:36:00 PM
Reply Quoted
Zufinden:
http://barre.nom.fr/web/inlink/patch/patch-no-empty-cats-or-links-sections.txt
Patch: Do not display empty Cats or Links sections
--------------------------------------------------------------------
Sébastien BARRE (Time-stamp: <2001-07-22 17:41:10 barre>
http://barre.nom.fr/web/inlink/
*Disclaimer*: use this patch at your own risk. Neither Intechnic or me will be responsible for any loss of data, etc. etc.
This patch will prevent Inlink front-end from displaying the whole "Categories" or "Links" sections if there is no item in them.
i) themesdefaultindex.tpl
themesdefaultsub_pages.tpl
----------------
Locate the lines:
<TABLE width="760" border="0" cellspacing="1" cellpadding="1" align="center">
<TR>
<TD width="100%" valign="top">
<%include:sort_cats%>
Add that one just before them:
<?php if (<%insert_cat_count%>
: ?>
Locate the lines:
<TABLE width="760" border="0" cellspacing="1" cellpadding="1" align="center">
<TR>
<TD class="text">
<%include:sort_links%>
Add these one just before them:
<?php endif; ?>
<?php if (<%insert_link_count%>
: ?>
Locate the lines:
<%include:box_search%>
<%include:footer%>
Add this one just before them:
<?php endif; ?>