Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: bellrosk - elokuu 08, 2011, 05:48:14 AP

Otsikko: Get rid of minimize button and unread posts in category?
Kirjoitti: bellrosk - elokuu 08, 2011, 05:48:14 AP
Hey there, I'm using a curve based theme at the moment. I'd like to get rid of everything of the right side of the category bars on the home page (minimize button and unread posts link) in every forum. Could anybody help me out?
Otsikko: Re: Get rid of minimize button and unread posts in category?
Kirjoitti: MrGrumpy - elokuu 08, 2011, 06:44:50 AP
In BoardIndex.template.php

Find and delete


// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a class="collapse" href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

if (!$context['user']['is_guest'] && !empty($category['show_unread']))
echo '
<a class="unreadlink" href="', $scripturl, '?action=unread;c=', $category['id'], '">', $txt['view_unread_category'], '</a>';


Or if you wish to leave the code there incase you change your mind in future you can comment it out

Replace


// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a class="collapse" href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

if (!$context['user']['is_guest'] && !empty($category['show_unread']))
echo '
<a class="unreadlink" href="', $scripturl, '?action=unread;c=', $category['id'], '">', $txt['view_unread_category'], '</a>';


With


/* // If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a class="collapse" href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

if (!$context['user']['is_guest'] && !empty($category['show_unread']))
echo '
<a class="unreadlink" href="', $scripturl, '?action=unread;c=', $category['id'], '">', $txt['view_unread_category'], '</a>'; */