This will make the on.gif a link to get the latest threads in that forum. It will not affect the off.gif. It's just like the "Get New Posts" link, only forum specific .
File edits: 6 (2 in root/index.php, 2 in root/forumdisplay.php, 2 in root/usercp.php)
Oh thanks. In both forumdisplay.php and root/index.php
Replace:
PHP Code:
if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
$forum['onoff'].='lock';
}
With:
PHP Code:
if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
$forum['onoff']='<img src="{ imagesfolder}/lock.gif" border="0" alt="This forum is locked">';
}
And remember to take out the space in { imagesfolder} .
Is there a version that you can make of the installer to update the previously installed version instead of going through the whole entire process again?>
-------------------------------------------
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:
-------------------------------------------
-------------------------------------------
*******************************************
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:
-------------------------------------------
+===============================================+
|NOTE:Remove space in { imagesfolder}, then find|
+===============================================+
-------------------------------------------
Replace it with
-------------------------------------------
$forum[onoff]
-------------------------------------------
-------------------------------------------
In template "forumdisplay_forumbit_level2_post" find:
-------------------------------------------
+===============================================+
|NOTE:Remove space in { imagesfolder}, then find|
+===============================================+
-------------------------------------------
Replace it with
-------------------------------------------