Is it possible to have this working on forumdisplay as well as index?
I also have the category sponsors hack installed, and here's that section of code from my index.php:
PHP Code:
if ($forum['sponsorimg'] && $forum['cancontainthreads']==0 && $depth==1) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_sponsor")."\";");
} else {
// eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
if(strstr(" ".$columnparent." ", " ".$forum['parentid']." ")) {
if($colsdone!=1) {
$colsdone=1;
$colcounter=1;
eval("\$forumbits .= \"".gettemplate("colforumtableheader")."\";");
} else {
$colcounter++;
if($colcounter%($forumcols+1)==0) {
$forumbits .= "</tr><tr>";
$colcounter=1;
}
}
$width="width=".(100/$forumcols)."%"; //take out if you want variable column widths
eval("\$forumbits .= \"".gettemplate("colforumbit")."\";");
} else {
if($colsdone==1) {
$colsdone=0;
$colcounter=0;
eval("\$forumbits .= \"".gettemplate("colforumtablefooter")."\";");
}
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
}
}
if ($depth<$forumhomedepth) {
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
}
} // END if can view
} // END while ( list($key2,$forum)=each($val1) ) {
} // END while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) {
Is that right?