Page 1 of 1
Detecting forum plugin
Posted: Tue Nov 10, 2009 10:08 pm
by yellowled
I'm looking for a variable to detect if the visitor is on a page created by the forum plugin, similar to {if $view == 'entry'} or {if $plugin_contactform_name}. I tried {if $pagetitle} which is used in all .tpl files used by the forum plugin, but that doesn't seem to work.
YL
Re: Detecting forum plugin
Posted: Tue Nov 10, 2009 11:03 pm
by garvinhicking
Hi!
{$staticpage_pagetitle} ?!
Regards,
Garvin
Re: Detecting forum plugin
Posted: Wed Nov 11, 2009 10:10 am
by yellowled
garvinhicking wrote:{$staticpage_pagetitle} ?!
Yes. (Once I managed to understand the regexp used to convert the pagetitle to just letters and underscores.)
Thanks.
YL