phocadownload titles problem

phocadownload doesn’t show section, category, file and play name on the title !!!!!!!!!!
Solution:
for “section” view:
open that file
components/com_phocadownload/views/section/view.html.php
add this code

		// Set page title per category
		if (!empty($section[0]->title)) {
		    $document->setTitle($section[0]->title);
		}

after that code

		// Breadcrumbs
		if (!empty($section[0]->title)) {
			$pathway 		=& $mainframe->getPathway();
			$pathway->addItem($section[0]->title, JRoute::_(PhocaDownloadHelperRoute::getSectionsRoute()));
		}

for “category” view:
open that file
components/com_phocadownload/views/category/view.html.php
add this code

		// Set page title per category
		if (!empty($category[0]->title)) {
		    $document->setTitle($category[0]->title);
		}

after that code

		// Breadcrumbs
		$pathway 		=& $mainframe->getPathway();
		if (!empty($section[0]->title)) {
			$pathway->addItem($section[0]->title, JRoute::_(PhocaDownloadHelperRoute::getSectionRoute($section[0]->id, $section[0]->alias)));
		}
		if (!empty($category[0]->title)) {
			$pathway->addItem($category[0]->title);
		}

for “file” view:
open that file
components/com_phocadownload/views/file/view.html.php
add this code

		// Set page title per category
		if (!empty($file[0]->title)) {
		    $document->setTitle($file[0]->title);
		}

after that code

		// Breadcrumbs
		$pathway 		=& $mainframe->getPathway();
		if (!empty($category[0]->sectiontitle)) {
			$pathway->addItem($category[0]->sectiontitle, JRoute::_(PhocaDownloadHelperRoute::getSectionRoute($category[0]->sectionid, $category[0]->sectionalias)));
		}
		if (!empty($category[0]->sectiontitle) && !empty($category[0]->sectionid)) {
			$pathway->addItem($category[0]->title, JRoute::_(PhocaDownloadHelperRoute::getCategoryRoute($category[0]->id, $category[0]->alias, $category[0]->sectionid)));
		}
		if (!empty($file[0]->title)) {
			$pathway->addItem($file[0]->title);
		}

for “play” view:
open that file
components/com_phocadownload/views/play/view.html.php
add this code

		// Set page title per category
		if (!empty($file[0]->title)) {
		    $document->setTitle(JText::_('Play').' - '.$file[0]->title);
		}

after that code

		$tmpl['filetype']	= '';
		if ($fileExt == 'mp3') {
			$tmpl['filetype'] 		= 'mp3';
			$tmpl['playerheight']	= $params->get( 'player_mp3_height', 30 );
		}

—————————————————————————
XMap – google sitemap
you can download the new modified files for phocadownload extension from here:
xmap for phocadownload