Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Ciced - joulukuu 13, 2005, 05:44:00 IP

Otsikko: Output the name of the board currently being viewed in MessageIndex.template?
Kirjoitti: Ciced - joulukuu 13, 2005, 05:44:00 IP
Hi all. In my custom MessageIndex.template.php (SMF 1.0.5) I'm trying to find how to output the name of the board the user is currently viewing inside a header cell. So for example if the user is browsing the "Off Topic" forum it would say "Off Topic" in my desired header table cell. Does anybody know the php required to do so?
Otsikko: Re: Output the name of the board currently being viewed in MessageIndex.template
Kirjoitti: Oldiesmann - joulukuu 13, 2005, 06:20:36 IP
$context['name'] will get you what you want.
Otsikko: Re: Output the name of the board currently being viewed in MessageIndex.template
Kirjoitti: Ciced - joulukuu 13, 2005, 07:38:23 IP
Thanks Michael, works great.