News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Check if user/guest is viewing a Board or Topic?

Started by MobileCS, June 21, 2016, 02:22:49 PM

Previous topic - Next topic

MobileCS

Is there an way to see if the user/guest is viewing a board message list or an actual topic in the index.template.php file?

After all I can see doing is something like this :

if (!empty($context['current_topic']))

But the code above also fires when a person is replying to a topic (which I don't want) and doesn't address users "viewing a board".

Any assistance would be greatly appreciated.

Illori


MobileCS

No, but maybe I didn't phrase myself correctly.

I don't need to know who they are, just if the page that is currently being displayed is either a message list or an actual topic.

Advertisement: