1
karuna
Each page have it's own title ~~
  • 2004/4/20 9:28

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


Thanks JackJ and Koreus
Do as this post here i got this little hack works in news newbb mydownloads and weblog.

Here is how:

for News
as JackJ says:
Quote:
go to modules/news/article.php

add a line before

include XOOPS_ROOT_PATH.'/include/comment_view.php';

The line:

$xoopsTpl->assign('xoops_pagetitle', htmlentities($xoopsModule->name() . ' -' . $article->title()));

But since my site is a Chinese site
so i have to change
$xoopsTpl->assign('xoops_pagetitle', htmlentities($xoopsModule->name() . ' -' . $article->title()));
to
$xoopsTpl->assign('xoops_pagetitle', htmlspecialchars($xoopsModule->name() . '- ' . $article->title()));
to have is works fine

for newbb
in the file viewtopic.php
add this line:
$xoopsTpl->assign('xoops_pagetitle', htmlspecialchars($xoopsModule->name() . ' - ' . $forumdata['topic_title']));


for mydownload
add this line:
$xoopsTpl->assign('xoops_pagetitle', htmlspecialchars($xoopsModule->name() . ' - ' . $title));

for weblog
in the file details.php
add this line:
$xoopsTpl->assign('xoops_pagetitle', htmlspecialchars($xoopsModule->name() . ' - ' . $entryObject->getVar('title')));



Login

Who's Online

342 user(s) are online (272 user(s) are browsing Support Forums)


Members: 0


Guests: 342


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits