Solved: 5 Years, 2 Months, 4 Weeks ago Show Parent Forum/Category in Page Title
#1
Solved: 5 Years, 2 Months, 4 Weeks ago
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.
Reply
#2
Solved: 5 Years, 2 Months, 4 Weeks ago
{$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
Reply
#3
Solved: 5 Years, 2 Months, 4 Weeks ago
(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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)