I have the following snippet in template 'phpinclude'
It doesn't seem to be working, even though other similar scripts work fine. It never evaluates $foruminfo[cancontainthreads] equal to 1, even if I am on a page where the "New Thread" button is visible.
Is the $foruminfo variable not available at the time the phpinclude is procesed within forumdisplay.php?
PHP Code:
if( basename($PHP_SELF)=="forumdisplay.php" and $foruminfo[cancontainthreads]==1 and $foruminfo[allowposting]==1 ) {
$navhead_post="
<td width=50>
<a href=\"newthread.php?s=$session[sessionhash]&action=newthread&forumid="
.$foruminfo[forumid]
."\">
<img src=\"{dcimages}/post.gif\" border=0><br>
<smallfont>Post!</smallfont></a></td>";
} else {
$navhead_post="";
}
Is the $foruminfo variable not available at the time the phpinclude is procesed within forumdisplay.php?
Comment