1
xcgal Pagetitle hack ..improve the searchability of your site!The title of your page plays an important role in helping search engines (google,yahoo,msn,..etc) and visitors to determine the content of your site.
xcgal is one of the most popular galleries but it's use name of module as pagetitle for all pages, so this will lead to lose of most vistors and remember: google, yahoo and msn search engines are vistors too!!
This small hack will fix this
Edit displayimage.php and find at the end:
include XOOPS_ROOT_PATH.'/include/comment_view.php';
include_once "../../footer.php";
}
?>
then add before it:
$xoopsTpl->assign('xoops_pagetitle', $myts->makeTboxData4Show($xoopsModule->name()) . ' - ' .$myts->makeTboxData4Show($CURRENT_ALBUM_DATA['title']) . ' - ' .$myts->makeTboxData4Show($CURRENT_PIC_DATA['title']));
The result will be:
$xoopsTpl->assign('xoops_pagetitle', $myts->makeTboxData4Show($xoopsModule->name()) . ' - ' .$myts->makeTboxData4Show($CURRENT_ALBUM_DATA['title']) . ' - ' .$myts->makeTboxData4Show($CURRENT_PIC_DATA['title']));
include XOOPS_ROOT_PATH.'/include/comment_view.php';
include_once "../../footer.php";
}
?>
You can use the following code to display album name in album page (thumbnails.php):
$xoopsTpl->assign('xoops_pagetitle', $myts->makeTboxData4Show($xoopsModule->name()) . ' - ' .$myts->makeTboxData4Show($CURRENT_ALBUM_DATA['title']));
include_once "../../footer.php";
?>
Demo: click here