ok, it's done, here's how:
in mainfile.php add
$xoopsConfig['forumpage'] = 0;
$xoopsConfig['forumtitle'] = "";
after $xoopsConfig['db_pconnect'] = 1;
yes, probably isn't the best way but works for me, after this:
-------------
in /modules/newbb/viewtopic.php
take the
include(XOOPS_ROOT_PATH."/header.php"); around line 46 and port it after
$myts->makeTboxData4Show($forumdata['topic_title']);
and before add
$xoopsConfig['forumtitle'] = $forumdata['topic_title'];
so it will result:
- - - - - -
$forumdata['topic_title'] = $myts->makeTboxData4Show($forumdata['topic_title']);
$xoopsConfig['forumtitle'] = $forumdata['topic_title'];
include(XOOPS_ROOT_PATH."/header.php");
- - - - - -
around line 40 of the same file add
$xoopsConfig['forumpage'] = 1;
after
} elseif (empty($topic_id)) {
redirect_header("viewforum.php?forum=$forum",2,_MD_ERRORTOPIC);
exit();
}
so it will result
- - - - - -
} elseif (empty($topic_id)) {
redirect_header("viewforum.php?forum=$forum",2,_MD_ERRORTOPIC);
exit();
}
$xoopsConfig['forumpage'] = 1;
- - - - - -
around line 36-40
------------------------------
in /include/functions.php
find the tag and the others one, replace all with
if ($xoopsConfig['forumpage'] == 1)
{
echo "\n";
echo "\n";
echo "
".$xoopsConfig['sitename']." - ".$xoopsConfig['forumtitle']."\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n\n";
//$xoopsConfig['forumpage'] = 0;
} else {
echo "\n";
echo "\n";
echo "
".$xoopsConfig['sitename']." - ".$xoopsConfig['slogan']."\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n\n";
}
so it will result
- - - - - - - -
$meta = $myts->makeTareaData4InsideQuotes($meta);
if ($xoopsConfig['forumpage'] == 1)
{
echo "\n";
echo "\n";
echo "
".$xoopsConfig['sitename']." - ".$xoopsConfig['forumtitle']."\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n\n";
//$xoopsConfig['forumpage'] = 0;
} else {
echo "\n";
echo "\n";
echo "
".$xoopsConfig['sitename']." - ".$xoopsConfig['slogan']."\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n\n";
}
include(XOOPS_ROOT_PATH."/include/xoopsjs.php");
- - - - -
around line 52-83
that's all, when you or some search engine spider visits a forum's thread you or he will see the topic title in title's page
example:
http://www.kuht.it/modules/newbb/viewtopic.php?topic_id=1443&forum=3