Updates:
[8/16] - Added the code to forumdisplay.php
[8/16] - Added 2 template for subforums in forumdisplay.php
[8/17] - Fixed lock.gif issue
And no...
From the first version, do these steps.
PHP Code:
-------------------------------------------
In root/index.php find:
-------------------------------------------
forumhome_forumbit_level2_post,forumhome,
-------------------------------------------
Replace it with:
-------------------------------------------
forumhome_forumbit_level2_post,forumhome,forumhome_onlink,
-------------------------------------------
Still in root/index.php find:
-------------------------------------------
if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
$forum['onoff'].='lock';
}
-------------------------------------------
Replace it with:
-------------------------------------------
if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
$forum['onoff']='<img src="{ imagesfolder}/lock.gif" border="0" alt="This forum is locked">';
}
+====================================+
|NOTE:Remove space in { imagesfolder}|
+====================================+
-------------------------------------------
In root/forumdisplay.php find:
-------------------------------------------
forumdisplay_forumbit_level1_nopost,forumdisplay_forumbit_level2_post,
-------------------------------------------
Replace it with:
-------------------------------------------
forumdisplay_forumbit_level1_nopost,forumdisplay_forumbit_level2_post,forumhome_onlink,
-------------------------------------------
*******************************************
Step 4
*******************************************
-------------------------------------------
Still in root/forumdisplay.php find:
-------------------------------------------
if ($userlastvisit<$forum['lastpost']) {
$forum['onoff']='on';
} else {
$forum['onoff']='off';
}
}
if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
$forum['onoff'].='lock';
}
-------------------------------------------
Replace it with:
-------------------------------------------
// on/off link hack
if ($userlastvisit<$forum['lastpost']) {
eval("\$forum['onoff'] = \"".gettemplate('forumhome_onlink')."\";");
} else {
$forum['onoff']='<img src="{ imagesfolder}/off.gif" border="0" alt="There are no new posts in this forum">';
}
}
if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
$forum['onoff']='<img src="{ imagesfolder}/lock.gif" border="0" alt="This forum is locked">';
}
// end on/off link hack
+====================================+
|NOTE:Remove space in { imagesfolder}|
+====================================+
-------------------------------------------
In template "forumdisplay_forumbit_level1_post" find:
-------------------------------------------
<img src="{ imagesfolder}/$forum[onoff].gif" border="0" alt="">
+===============================================+
|NOTE:Remove space in { imagesfolder}, then find|
+===============================================+
-------------------------------------------
Replace it with
-------------------------------------------
$forum[onoff]
-------------------------------------------
-------------------------------------------
In template "forumdisplay_forumbit_level2_post" find:
-------------------------------------------
<img src="{ imagesfolder}/$forum[onoff].gif" border="0" alt="">
+===============================================+
|NOTE:Remove space in { imagesfolder}, then find|
+===============================================+
-------------------------------------------
Replace it with
-------------------------------------------
$forum[onoff]
-------------------------------------------