Remove Message Icons?

Started by lordrene, December 08, 2014, 10:50:27 PM

Previous topic - Next topic

lordrene

Is there any mod or code that can be replaced to remove the message icons as a whole out of the post form


Arantor



Arantor

1. Mods for 2.0.3 will work fine on 2.0.9. It might not work on all themes, and it can leave other things in a slightly broken state glancing at the code.

2. I don't have the power to just update mods even if I have the skill for it, there are little matters regarding copyright law to deal with.

lordrene


Arantor


Hj Ahmad Rasyid Hj Ismail

The mod is still working according to my test just now. And it will remove hot topic icons and message icons in the stated four places i.e. in messsage index, display, recent and post templates. Do read the OP for the mod as it also states mods to remove hot topic icons and message icons separately.

Quote from: ahrasis on August 20, 2010, 04:03:47 AM
This mod remove hot topic and message icons at all places, i.e in messsage index, display, recent and post templates.

Updated so there is no need to tick anything in Admin Center, i.e. the mod will work immediately upon installation.

To only remove hot topic icon, use RemoveHotTopicIcon1111.zip.

To only remove message icon, use RemoveMessageIcon111.zip.

lordrene

Quote from: ahrasis on December 15, 2014, 10:39:30 AM
The mod is still working according to my test just now. And it will remove hot topic icons and message icons in the stated four places i.e. in messsage index, display, recent and post templates. Do read the OP for the mod as it also states mods to remove hot topic icons and message icons separately.
Hey, this is the error i get!


Hj Ahmad Rasyid Hj Ismail

Mod only works on a plain SMF installation. If you have made any changes to the said file, especially with the relevant code, you will get the error(s). All you need to do is modify all the said files manually based on the said mod and you are good to go. I will into that mod again if I got time today.

Steve

DO NOT pm me for support!

Roentgenium

@ Arantor: Yes, there is.

@ lordrene: I hope it helps (don't forget to backup your files before).

.Themes/default/Post.template.php

Find and remove:

<dt class="clear_left">
', $txt['message_icon'], ':
</dt>
<dd>
<select name="icon" id="icon" onchange="showimage()">';

// Loop through each message icon allowed, adding it to the drop down list.
foreach ($context['icons'] as $icon)
echo '
<option value="', $icon['value'], '"', $icon['value'] == $context['icon'] ? ' selected="selected"' : '', '>', $icon['name'], '</option>';

echo '
</select>
<img src="', $context['icon_url'], '" name="icons" hspace="15" alt="" />
</dd>


.Themes/default/Display.template.php

Find and remove:

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


.Themes/default/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="8%" colspan="0">&nbsp;</th>

Find and remove:

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

Arantor

The context of my answer was that there isn't anything premade. Of course it could be done to remove it. I'm not sure your code wouldn't cause issues with the JavaScript that runs on a topic page to handle quick modification of icons with AJAX though.

lordrene


Advertisement: