Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

re; how to delete "New posts" and "No new posts" box

Aloittaja isolina, kesäkuu 25, 2006, 09:49:11 IP

« edellinen - seuraava »

isolina

hi everyone,
i am trying to delete New posts and No new posts box can't find it.

thanks in advance,

Isolina


codenaught

If you are using the SMF default theme for 1.1RC2, you would edit
Themes/default/BoardIndex.template.php

and find and delete:

<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

echo '</a>
</td>
Dev Consultant
Former SMF Doc Coordinator

isolina

#2
sorry i went into boardindex.template.php and i found this. i exacly deleted the followings lines but doesn't work. am i missing anything??

thanks

isolina

<td class="windowbg" width="6%" align="center" valign="top">';
// If the board is new, show a strong indicator.
   if ($board['new'])
   echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all!  The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

echo '</td>
**************************************
and this
**************************************
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
   $children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                  $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
   }
echo '
div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
            }

Elmacik

@isolina, probably you are using a different theme and not the default which akabugeyes referred.
Try finding and deleting those in your own theme's BoardIndex.template.php
Home of Elmacik

Advertisement: