Custom Theme Help

Started by opayne93, December 20, 2014, 04:23:48 PM

Previous topic - Next topic

opayne93

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.

ARG01

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>';
}
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Kindred

Why would you want to get rid if the "new posts" icon?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

opayne93

Simpmode, thanks chap.

Kindred, I don't want there to be a new posts icon .  :o

Kindred

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?

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ARG01

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.
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Hj Ahmad Rasyid Hj Ismail

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.

Steve

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.

DO NOT pm me for support!

Advertisement: