I'm new to this so I apologize ahead of time.
I'm trying to make a simple plugin that will just display some text based on forum id.
The plugin is almost working, but it seems that [forumid] is being ignored as it is showing across all forums, not just the forum that is listed.
Plugin Code
Code:
ob_start();
include('/media/data/vhosts/site.com/htdocs/forum/headings.php');
$cw_h2 = ob_get_contents();
ob_end_clean();
PHP FILE CONTENTS
Code:
<if condition='$thread[forumid] == 237'><div align="center"><h2>Some Text</h2></div></if>
It displays when I reference $cw_h2 in a template, but problem is it displays in all forums, not just forum 237.