I saw a couple of people asking at the TFL and Codegrrl forums about customizing Enth 3.1 to show the number of listings joined per category. Something similar to what I have here.
This involves tinkering with show_joined.php.
Lines 88-102:
PHP:
-
echo '<ul class="show_joined_list_items">';
-
-
if( $intro )
-
echo '<li> <a href="' .
$page .
$connector .
'cat=all">All ' .
-
'listings (' .
count( get_joined
( 'approved' ) ) .
')</a> </li>';
-
-
// are there pending listings?
-
if( $intro &&
count( get_joined
( 'pending' ) )>
0 )
-
echo '<li> <a href="' .
$page .
$connector .
-
'cat=pending">All Pending approval</a> </li>';
-
-
foreach( $cats as $cat )
-
echo '<li> <a href="' .
$page .
$connector .
'cat=' .
$cat['catid'] .
-
'">' . $cat['text'] . '</a> </li>';
-
change that to these:
PHP:
-
echo '<ul class="show_joined_list_items">';
-
-
if( $intro )
-
echo '<li> <a href="' .
$page .
$connector .
'cat=all">All ' .
-
'listings (' .
count( get_joined
( 'approved' ) ) .
')</a> </li>';
-
-
// are there pending listings?
-
if( $intro &&
count( get_joined
( 'pending' ) )>
0 )
-
echo '<li> <a href="' .
$page .
$connector .
-
'cat=pending">All Pending approval (' .
count( get_joined
( 'pending' ) ) .
' FLs)</a></li>';
-
-
foreach( $cats as $cat )
-
echo '<li> <a href="' .
$page .
$connector .
'cat=' .
$cat['catid'] .
-
'">' .
$cat['text'] .
' (' .
count( get_joined_by_category
( $cat['catid'] ) ) .
' FLs)</a></li>';
-
If you want to show that one in columns, try using TABLEs and TDs. I used SPANs in mine so that I could tinker with the hovering. XD And this also works for Enth3.1.1.