MyBB Community Forums

Full Version: Show Parent Forum/Category in Page Title
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I display the name of a threads parent forum and category in the thread title.


How do I display "Category" and "Forum" in the title...

<title>Website | Category | Forum | Thread</title>


Example: I have thread named Oranges in Citrus forum in Fruits category and want the title to display:

<title>Food Forum | Fruits | Citrus | Oranges</title>



<title>{$mybb->settings['bbname']}??? WHAT GOES HERE ?? | ??? WHAT GOES HERE ?? | {$thread['subject']}</title>

Thanks for answers.
{$forum['name']} can be used for the forum name. IIRC, getting category name is not that simple !
{$forum['fid']} & {$forum['pid']} give numbers of forum id & parent id
(2016-01-24, 02:57 PM).m. Wrote: [ -> ]{$forum['name']} can be used for the forum name. IIRC, getting category name is not that simple !
{$forum['fid']} & {$forum['pid']} give numbers of forum id & parent id

Thanks for that.... Okay, so I got...

<title>{$mybb->settings['bbname']} | ??? WHAT GOES HERE ?? | {$forum['name']} | {$thread['subject']}</title>

May have to re-think strategy and just leave out the category if it's not simple.

Thanks again.