News:

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

Main Menu

[2.0RC5]How to disable message icons from the posting and make the topic index..

Started by helike13, June 24, 2011, 04:59:33 AM

Previous topic - Next topic

helike13




MrGrumpy

You need to edit 2 files MessageIndex.template.php & Post.template.php - first file edits removes the column and the second file edits removes the message icon selector from the post input box area - I know this works as I do it on custom themes like this 1 http://www.simplemachines.org/community/index.php?topic=440573.0


In MessageIndex.template.php

find
<th scope="col" class="first_th" width="8%" colspan="2">&nbsp;</th>

replace with
<th scope="col" class="first_th" width="5%" >&nbsp;</th>

then

find

  <td class="icon2 ', $color_class, '">
    <img src="', $topic['first_post']['icon_url'], '" alt="" />
  </td>


delete that


Then open Post.template.php

find
                  
// Now show the subject box for this post.
echo '
<dt>
<span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>
</dt>
<dd>
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
</dd>
<dt class="clear_left">
', $txt['message_icon'], ':
</dt>
<dd>
<select name="icon" id="icon" onchange="showimage()">';


replace with
// Now show the subject box for this post.
echo '
<dt>
<span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>
</dt>
<dd>
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
</dd>
<dt class="clear_left" style="display:none">
', $txt['message_icon'], ':
</dt>
<dd style="display:none">
<select name="icon" id="icon" onchange="showimage()">';


the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x


MrGrumpy

the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

Nickhead

could you tell me what the edit would look like were the topics/hot topics icons and column to disappear?

wanting to keep the message icons/column

1.1.14

.Org, .Net, .Com

MrGrumpy

Sorry I don't use the 1.1.x branch of SMF and wouldn't be able to test anything to see what the edit's would be.

Try starting a new topic and see if anyone else can help you with it, link to this post if you want an example of what you what to do to save you having to explain it all.
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

desibees

Hi MrGrumpy,
Really wana thank you for this my self. There were many people looking on how to do this, including my self from long time and this worked like a charm. Thank you mate


I'm the.. Help abuser



Skylined

I've tried this in 2.0.2 and it has worked like a charm, but you could still see the icon in the topic.


Just delete the following from Display.template.php. :)



<div class="messageicon">
<img src="', $message['icon_url'] . '" alt=""', $message['can_modify'] ? ' id="msg_icon_' . $message['id'] . '"' : '', ' />
</div>

Advertisement: