8
           
            
                
     
    
    You can put almost the exact same code in viewcat.php to show category titles in xdirectory:
 $title=""; 
if($cid>0) 
{ 
$sql = "SELECT title FROM ".$xoopsDB->prefix("xdir_cat")." t where cid=$cid"; 
$result=$xoopsDB->query($sql,$show,$min); 
$myrow = $xoopsDB->fetchArray($result); 
$title=$myts->makeTboxData4Show($myrow['title']); 
} 
 
$xoopsTpl->assign('xoops_pagetitle', $title.' | '.$myts->makeTboxData4Show($xoopsModule->getVar('name')));  
I added this around line 90 just above this line:
 if ($xoopsModuleConfig['useshots'] == 1) {  
Have fun!