1
This is my first post here so first let me say that I love Xoops. I have used it before and did not like it (can't remember exactly what I did not like, it was a while ago) but 2.0.6 has got me hooked.
Anyways, I still do not know much about the core of this program so maybe someone could help improve this hack in some way I have yet to see...
I wanted to get the title of the forum topic to show up in the browsers title, mainly for keywords in google. Here is how I did it...
ROOT/themes/*theme name*/theme.html
Change
<title><{$xoops_sitename}> - <{$xoops_pagetitle}>title>
To...
<title><{$xoops_sitename}> - <{$xoops_pagetitle}> - <{$xoops_post_title}>title>
ROOT/modules/newbb/viewtopic.php
Add
$xoopsTpl->assign('xoops_post_title', $forumdata['topic_title']);
Before...
include XOOPS_ROOT_PATH.'/footer.php';
(*Note: There may be better placement for this in viewtopic.php but I am very unfamiliar with XOOPS at the moment and just wanted to make sure that the object was initialized before being assigned.)
I hope this does somebody good.