patvdv
01-27-2002, 12:43 PM
Hi,
I am trying to setup a hack that would display an icon in front of each forum title/description (see attachment). The hack is a modification from Firefly's Category sponsoring (https://vborg.vbsupport.ru/showthread.php?s=&threadid=26818) hack and I managed to do the template and MySQL part of things. However I am having problems with modifying the code in index.php. This is what I have now:
if ($forum['forumimg'] && $forum['cancontainthreads']==1 && $depth==2) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level2_post_image")."\";");
} else {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
}
However with this code, all my forums show up twice, so I assume somewhere the forumhome_forumbit_level2_post template is evaluated twice. The forumhome_forumbit_level2_post_image is the customized template that would show the icon.
I can't figure out how to undo the double-up on my forums. Any help much appreciated!
I am trying to setup a hack that would display an icon in front of each forum title/description (see attachment). The hack is a modification from Firefly's Category sponsoring (https://vborg.vbsupport.ru/showthread.php?s=&threadid=26818) hack and I managed to do the template and MySQL part of things. However I am having problems with modifying the code in index.php. This is what I have now:
if ($forum['forumimg'] && $forum['cancontainthreads']==1 && $depth==2) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level2_post_image")."\";");
} else {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
}
However with this code, all my forums show up twice, so I assume somewhere the forumhome_forumbit_level2_post template is evaluated twice. The forumhome_forumbit_level2_post_image is the customized template that would show the icon.
I can't figure out how to undo the double-up on my forums. Any help much appreciated!