Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: opayne93 on December 20, 2014, 04:23:48 PM

Title: Custom Theme Help
Post by: opayne93 on December 20, 2014, 04:23:48 PM
Hi All,

New to this forum so apologies if I have posted in the wrong place.

I'm in the process of creating my own SMF theme and would like to edit the small images at the bottom of the forum that show the different images for "New Posts", "No New Posts" and "Redirect". I would like to get rid of the "New Posts" and just have the other 2. I can't seem to find where the script for this is - I have looked in index.php and index.css. The images are stored in the correct places and I have managed to add in my own images but not remove the one I don't want.

Any help would be much appreciated.

Cheers.
Title: Re: Custom Theme Help
Post by: ARG01 on December 20, 2014, 04:41:08 PM
BoardIndex.template.php.

{
echo '
<div id="posting_icons" class="floatleft">';

// Mark read button.
$mark_read_button = array(
'markread' => array('text' => 'mark_as_read', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;' . $context['session_var'] . '=' . $context['session_id']),
);

echo '
<ul class="reset">
<li class="floatleft"><img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'new_some.png" alt="" /> ', $txt['new_posts'], '</li>
<li class="floatleft"><img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'new_none.png" alt="" /> ', $txt['old_posts'], '</li>
<li class="floatleft"><img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'new_redirect.png" alt="" /> ', $txt['redirect_board'], '</li>
</ul>
</div>';

// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '<div class="mark_read">', template_button_strip($mark_read_button, 'right'), '</div>';
}
else
{
echo '
<div id="posting_icons" class="flow_hidden">
<ul class="reset">
<li class="floatleft"><img src="', $settings['images_url'], '/new_none.png" alt="" /> ', $txt['old_posts'], '</li>
<li class="floatleft"><img src="', $settings['images_url'], '/new_redirect.png" alt="" /> ', $txt['redirect_board'], '</li>
</ul>
</div>';
}
Title: Re: Custom Theme Help
Post by: Kindred on December 20, 2014, 05:29:13 PM
Why would you want to get rid if the "new posts" icon?
Title: Re: Custom Theme Help
Post by: opayne93 on December 21, 2014, 09:30:33 AM
Simpmode, thanks chap.

Kindred, I don't want there to be a new posts icon .  :o
Title: Re: Custom Theme Help
Post by: Kindred on December 21, 2014, 10:38:43 AM
What simpmode posted just gets rid of the LEGEND... it does not stop the display of the icons themselves next to each board name...

As for no new posts icon... why would you ever do a silly thing like that?
If there is no icon for new posts, how are your users going to know which boards have new posts in them, and are thus important to read through?

Title: Re: Custom Theme Help
Post by: ARG01 on December 21, 2014, 11:44:37 AM
Quote from: Kindred on December 21, 2014, 10:38:43 AM
What simpmode posted just gets rid of the LEGEND... it does not stop the display of the icons themselves next to each board name...

I assumed the OP only wanted the "new post" icon removed from the legend. If he/she want's it removed from the board area then I agree, that would not be recommended.
Title: Re: Custom Theme Help
Post by: Hj Ahmad Rasyid Hj Ismail on December 21, 2014, 10:55:05 PM
Agreed that it will be silly to only remove one of them only. Might as well remove all icons in the legend.

As to how to know what the icon means, I think the tooltip has that covered. It will states what the icon means upon mouse over / hover.
Title: Re: Custom Theme Help
Post by: Steve on December 22, 2014, 08:33:10 AM
Quote from: ahrasis on December 21, 2014, 10:55:05 PMMight as well remove all icons in the legend.

Which is what I do. I see no point in it, especially for small forums with very little member change. I don't even show the icons next to the board name except for the new one. Makes it look less cluttered imo and makes it easier to see which boards have new posts at a glance. The difference between new and nonew icons on some themes is minute.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1262.photobucket.com%2Falbums%2Fii614%2FOPStuph%2Fall2%2FScreengrab122214.png%7Eoriginal&hash=f294c7fc73b5c8138167f61809459f8690705369)