Hi
the file is the same
/components/com_content/content.php
i am using mambo Version : 4.5 Stable (1.0.7)
line 165-174 Code:
// get the list of other categories
$database->setQuery( "SELECT c.*, COUNT(b.id) AS numitems"
. "\nFROM #__categories AS c"
. "\nLEFT JOIN #__content AS b ON b.catid = c.id $xwhere2"
. "\nWHERE c.section='$category->section' $xwhere"
. ($noauth ? "\n AND c.access<='$gid'" : "" )
. "\nGROUP BY c.id"
. "\n HAVING COUNT(b.id) > 0"
. "\nORDER BY c.ordering"
);
line 186 -193 Code:
// get the total number of records
$database->setQuery( "SELECT count(id)"
. "\nFROM #__content AS c"
. "\nWHERE c.catid='$id' $xwhere"
. ($noauth ? "\n AND c.access<='$gid'" : "" )
. "\nAND '$category->access'<='$gid'"
);
$total = $database->loadResult();
line 199-210 Code:
// get the list of items for this category
$database->setQuery( "SELECT c.id, c.title, c.hits, c.created_by, c.created_by_alias,"
. "\n c.created AS created, c.access, u.name AS author, c.state"
. "\nFROM #__content AS c"
. "\nLEFT JOIN #__users AS u ON u.id = c.created_by"
. "\nWHERE c.catid='$category->id' $xwhere"
. ($noauth ? "\n AND c.access<='$gid'" : "" )
. "\nAND '$category->access'<='$gid'"
. "\nORDER BY c.ordering"
. "\nLIMIT $limitstart, $limit"
);
$items = $database->loadObjectList();