Yes I have a solution. Editing the php file is a demanding task after every update. But it is a solution.
1. Create a new template. Name:
forumbit_depth2_forum_hidden
Content:
<tr>
<td class="{$bgcolor}" align="center" valign="center" width="1"><span class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></span></td>
<td class="{$bgcolor}" valign="top">
<span class="lockedforumname">{$forum['name']}</span>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>
2. Create a new template. Name:
forumbit_depth3_hidden
Content:
{$comma}{$statusicon}<span class="lockedforumname">{$forum['name']}</span>
3. Change template:
forumbit_depth2_forum_lastpost_hidden
New content (adjust to your own needs):
<div class="smalltext center"><strong>{$lastpost_subject}</strong><br>{$lastpost_date}<br />{$lang->by} {$lastpost_profilelink}</div>
4. Change file
inc/functions_forumlist.php as follows:
replace:
if(isset($permissions['canviewthreads']) && $permissions['canviewthreads'] != 1)
{
$hideinfo = true;
}
with:
if(isset($permissions['canviewthreads']) && $permissions['canviewthreads'] != 1)
{
$hideinfo = true;
// EDIT: => Lock forum if no threads permitted!
$forum_url = "";
$showlockicon = 1;
}
-----------------------
replace:
if(isset($permissions['canonlyviewownthreads']) && $permissions['canonlyviewownthreads'] == 1)
{
$hidecounters = true;
with:
if(isset($permissions['canonlyviewownthreads']) && $permissions['canonlyviewownthreads'] == 1)
{
// EDIT: => Show Counters for everyone!
// $hidecounters = true;
-----------------------
replace:
// If we are hiding information (lastpost) because we aren't authenticated against the password for this forum, remove them
if($hidelastpostinfo == true)
{
$lastpost_data = array(
'lastpost' => 0,
'lastposter' => ''
);
}
with:
// If we are hiding information (lastpost) because we aren't authenticated against the password for this forum, remove them
// EDIT: => No, don't!
/*
if($hidelastpostinfo == true)
{
$lastpost_data = array(
'lastpost' => 0,
'lastposter' => ''
);
}
*/
-----------------------
replace:
// Increment the counters for the parent forum (returned later)
if($hideinfo != true && $hidecounters != true)
with:
// Increment the counters for the parent forum (returned later)
// EDIT: => only no counters when explicitly no counters wanted
// if($hideinfo != true && $hidecounters != true)
if($hidecounters != true)
-----------------------
replace:
// Fetch the template and append it to the list
eval("\$forum_list .= \"".$templates->get("forumbit_depth3", 1, 0)."\";");
with:
// Fetch the template and append it to the list
// EDIT: => hidden if no url:
if($forum_url == "") {
eval("\$forum_list .= \"".$templates->get("forumbit_depth3_hidden", 1, 0)."\";");
}
else {
eval("\$forum_list .= \"".$templates->get("forumbit_depth3", 1, 0)."\";");
}
-----------------------
replace:
// Forum is a standard forum, set template type
else
{
$forumcat = '_forum';
}
with:
// Forum is a standard forum, set template type
else
{
// EDIT: => hidden if no url:
if($forum_url == "") {
$forumcat = '_forum_hidden';
}
else {
$forumcat = '_forum';
}
}
-----------------------
replace:
if($forum['linkto'] == '')
{
// No posts have been made in this forum - show never text
if(($lastpost_data['lastpost'] == 0 || $lastpost_data['lastposter'] == '') && $hideinfo != true)
{
eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_never")."\";");
}
elseif($hideinfo != true)
with:
if($forum['linkto'] == '')
{
// EDIT: => Last Date for everyone!
// Format lastpost date and time
$lastpost_date = my_date('relative', $lastpost_data['lastpost']);
$lastpost_profilelink = build_profile_link($lastpost_data['lastposter'], $lastpost_data['lastposteruid']);
$lastpost_subject = $full_lastpost_subject = $parser->parse_badwords($lastpost_data['lastpostsubject']);
// Call hidden lastpost template
if($depth != 1)
{
eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_hidden")."\";");
}
// No posts have been made in this forum - show never text
// EDIT: => Last Date for everyone!
// if(($lastpost_data['lastpost'] == 0 || $lastpost_data['lastposter'] == '') && $hideinfo != true)
if(($lastpost_data['lastpost'] == 0 || $lastpost_data['lastposter'] == ''))
{
eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_never")."\";");
}
elseif($hideinfo != true)
-----------------------
replace:
// If this forum is a link or is password protected and the user isn't authenticated, set counters to "-"
if($forum['linkto'] != '' || $hideinfo == true || $hidecounters == true)
{
$posts = "-";
$threads = "-";
}
with:
// If this forum is a link or is password protected and the user isn't authenticated, set counters to "-"
// EDIT: => Only hide counters when counters should be explicitly hidden
//if($forum['linkto'] != '' || $hideinfo == true || $hidecounters == true)
if($forum['linkto'] != '' || $hidecounters == true)
{
$posts = "-";
$threads = "-";
}
-----------------------
replace:
// If this forum is a link or is password protected and the user isn't authenticated, set lastpost to "-"
if($forum['linkto'] != '' || $hideinfo == true || $hidelastpostinfo == true)
{
eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_hidden")."\";");
}
with:
// If this forum is a link or is password protected and the user isn't authenticated, set lastpost to "-"
// EDIT: => too late for hideinfo, already done
//if($forum['linkto'] != '' || $hideinfo == true || $hidelastpostinfo == true)
if($forum['linkto'] != '')
{
eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_hidden")."\";");
}
-----------------------
replace:
// If the current forums lastpost is greater than other child forums of the current parent and forum info isn't hidden, overwrite it
if((!isset($parent_lastpost) || $lastpost_data['lastpost'] > $parent_lastpost['lastpost']) && $hideinfo != true)
with:
// If the current forums lastpost is greater than other child forums of the current parent and forum info isn't hidden, overwrite it
// EDIT: => $hideinfo removed
// if((!isset($parent_lastpost) || $lastpost_data['lastpost'] > $parent_lastpost['lastpost']) && $hideinfo != true)
if((!isset($parent_lastpost) || $lastpost_data['lastpost'] > $parent_lastpost['lastpost']) )