my plan is to include them on certain pages.
for when a user views the hard disk category, or views a hard disk, I am including a file with the following codes. ( I categorize hard disks by type (internal, external, laptop) and by size/capacity). Opt18 is type, and opt19 is capacity. Type=44 is Hard Disk category. It is against the hyperlinks that I want to show the listing count. Of course, if the overheads outweighs the benefits, it may not be worth doing it.
Code:
<div id="sidebar">
<h1>Hard Drives</h1>
<div class="left-box-incategorysearch">
<div class="categorylist">
<b>Type</b><br>
{if $smarty.get.opt18==""}<b>All</b>{else}
<a href="searchresults.php?type=44&sortfield=dateadded&sortorder=desc">All</a>
{/if}<br>
{if $smarty.get.opt18=="External Hard Drives"}External Hard Drives{else}
<a href="searchresults.php?type=44&opt18=External+Hard+Drives&Submit=Search&sortfield=dateadded&sortorder=desc">External Hard Drives</a>
{/if}<br>
{if $smarty.get.opt18=="Internal Hard Drives"}Internal Hard Drives{else}
<a href="searchresults.php?type=44&opt18=Internal+Hard+Drives&Submit=Search&sortfield=dateadded&sortorder=desc">Internal Hard Drives</a>
{/if}<br>
{if $smarty.get.opt18=="Laptop Hard Drives"}Laptop Hard Drives{else}
<a href="searchresults.php?type=44&opt18=Laptop+Hard+Drives&Submit=Search&sortfield=dateadded&sortorder=desc">Laptop Hard Drives</a>
{/if}<br><br>
{*Capacity for All Types of Hard*}
{if $smarty.get.opt18==""}
<b>Capacity</b><br>
{if $smarty.get.opt19==""}All{else}
<a href="searchresults.php?type=44&Submit=Search">All</a>
{/if}<br>
{if $smarty.get.opt19=="100 GB and Less"}100 GB & Less{else}
<a href="searchresults.php?type=44&opt19=100+GB+and+Less&Submit=Search">100 GB & Less</a>
{/if}<br>
{if $smarty.get.opt19=="101 GB to 200 GB"}101 GB to 200 GB{else}
<a href="searchresults.php?type=44&opt19=101+GB+to+200+GB&Submit=Search">101 GB to 200 GB</a>
{/if}<br>
{if $smarty.get.opt19=="201 GB to 300 GB"}201 GB to 300 GB{else}
<a href="searchresults.php?type=44&opt19=201+GB+to+300+GB&Submit=Search">201 GB to 300 GB</a>
{/if}<br>
{if $smarty.get.opt19=="301 GB to 500 GB"}301 GB to 500 GB{else}
<a href="searchresults.php?type=44&opt19=301+GB+to+500+GB&Submit=Search">301 GB to 500 GB</a>
{/if}<br>
{if $smarty.get.opt19=="501 GB to 999 GB"}501 GB to 999 GB{else}
<a href="searchresults.php?type=44&opt19=501+GB+to+999+GB&Submit=Search">501 GB to 999 GB</a>
{/if}<br>
{if $smarty.get.opt19=="1 TB and More"}1 TB and More{else}
<a href="searchresults.php?type=44&opt19=1+TB+and+More&Submit=Search">1 TB and More</a>
{/if}<br><br>
{/if}
{* Capacity for External Hard*}
{if $smarty.get.opt18=="External Hard Drives"}
<b>Capacity</b><br>
{if $smarty.get.opt19==""}All{else}
<a href="searchresults.php?type=44&opt18=External+Hard+Drives=&Submit=Search">All</a>
{/if}<br>
{if $smarty.get.opt19=="100 GB and Less"}100 GB & Less{else}
<a href="searchresults.php?type=44&opt19=100+GB+and+Less&opt18=External+Hard+Drives&Submit=Search">100 GB & Less</a>
{/if}<br>
{if $smarty.get.opt19=="101 GB to 200 GB"}101 GB to 200 GB{else}
<a href="searchresults.php?type=44&opt19=101+GB+to+200+GB&opt18=External+Hard+Drives&Submit=Search">101 GB to 200 GB</a>
{/if}<br>
{if $smarty.get.opt19=="201 GB to 300 GB"}201 GB to 300 GB{else}
<a href="searchresults.php?type=44&opt19=201+GB+to+300+GB&opt18=External+Hard+Drives&Submit=Search">201 GB to 300 GB</a>
{/if}<br>
{if $smarty.get.opt19=="301 GB to 500 GB"}301 GB to 500 GB{else}
<a href="searchresults.php?type=44&opt19=301+GB+to+500+GB&opt18=External+Hard+Drives&Submit=Search">301 GB to 500 GB</a>
{/if}<br>
{if $smarty.get.opt19=="501 GB to 999 GB"}501 GB to 999 GB{else}
<a href="searchresults.php?type=44&opt19=501+GB+to+999+GB&opt18=External+Hard+Drives&Submit=Search">501 GB to 999 GB</a>
{/if}<br>
{if $smarty.get.opt19=="1 TB and More"}1 TB and More{else}
<a href="searchresults.php?type=44&opt19=1+TB+and+More&opt18=External+Hard+Drives&Submit=Search">1 TB and More</a>
{/if}<br><br>
{/if}
{* Capacity for Internal Hard*}
{if $smarty.get.opt18=="Internal Hard Drives"}
<b>Capacity</b><br>
{if $smarty.get.opt19==""}All{else}
<a href="searchresults.php?type=44&opt18=Internal+Hard+Drives&Submit=Search">All</a>
{/if}<br>
{if $smarty.get.opt19=="100 GB and Less"}100 GB & Less{else}
<a href="searchresults.php?type=44&opt19=100+GB+and+Less&opt18=Internal+Hard+Drives&Submit=Search">100 GB & Less</a>
{/if}<br>
{if $smarty.get.opt19=="101 GB to 200 GB"}101 GB to 200 GB{else}
<a href="searchresults.php?type=44&opt19=101+GB+to+200+GB&opt18=Internal+Hard+Drives&Submit=Search">101 GB to 200 GB</a>
{/if}<br>
{if $smarty.get.opt19=="201 GB to 300 GB"}201 GB to 300 GB{else}
<a href="searchresults.php?type=44&opt19=201+GB+to+300+GB&opt18=Internal+Hard+Drives&Submit=Search">201 GB to 300 GB</a>
{/if}<br>
{if $smarty.get.opt19=="301 GB to 500 GB"}301 GB to 500 GB{else}
<a href="searchresults.php?type=44&opt19=301+GB+to+500+GB&opt18=Internal+Hard+Drives&Submit=Search">301 GB to 500 GB</a>
{/if}<br>
{if $smarty.get.opt19=="501 GB to 999 GB"}501 GB to 999 GB{else}
<a href="searchresults.php?type=44&opt19=501+GB+to+999+GB&opt18=Internal+Hard+Drives&Submit=Search">501 GB to 999 GB</a>
{/if}<br>
{if $smarty.get.opt19=="1 TB and More"}1 TB and More{else}
<a href="searchresults.php?type=44&opt19=1+TB+and+More&opt18=Internal+Hard+Drives&Submit=Search">1 TB and More</a>
{/if}<br><br>
{/if}
{*Laptop Hard*}
{if $smarty.get.opt18=="Laptop Hard Drives"}
<b>Capacity</b><br>
{if $smarty.get.opt19==""}All{else}
<a href="searchresults.php?type=44&opt18=Laptop+Hard+Drives&Submit=Search">All</a>
{/if}<br>
{if $smarty.get.opt19=="100 GB and Less"}100 GB & Less{else}
<a href="searchresults.php?type=44&opt19=100+GB+and+Less&opt18=Laptop+Hard+Drives&Submit=Search">100 GB & Less</a>
{/if}<br>
{if $smarty.get.opt19=="101 GB to 200 GB"}101 GB to 200 GB{else}
<a href="searchresults.php?type=44&opt19=101+GB+to+200+GB&opt18=Laptop+Hard+Drives&Submit=Search">101 GB to 200 GB</a>
{/if}<br>
{if $smarty.get.opt19=="201 GB to 300 GB"}201 GB to 300 GB{else}
<a href="searchresults.php?type=44&opt19=201+GB+to+300+GB&opt18=Laptop+Hard+Drives&Submit=Search">201 GB to 300 GB</a>
{/if}<br>
{if $smarty.get.opt19=="301 GB to 500 GB"}301 GB to 500 GB{else}
<a href="searchresults.php?type=44&opt19=301+GB+to+500+GB&opt18=Laptop+Hard+Drives&Submit=Search">301 GB to 500 GB</a>
{/if}<br>
{if $smarty.get.opt19=="501 GB to 999 GB"}501 GB to 999 GB{else}
<a href="searchresults.php?type=44&opt19=501+GB+to+999+GB&opt18=Laptop+Hard+Drives&Submit=Search">501 GB to 999 GB</a>
{/if}<br>
{if $smarty.get.opt19=="1 TB and More"}1 TB and More{else}
<a href="searchresults.php?type=44&opt19=1+TB+and+More&opt18=Laptop+Hard+Drives&Submit=Search">1 TB and More</a>
{/if}<br>
<br>
{/if}
</div>
</div>
</div>