Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Is their anyway to turn off message icons?

Aloittaja eric123, tammikuu 22, 2005, 11:31:31 AP

« edellinen - seuraava »

eric123

What the title says...i dont want to display fmessage icons next to each thread, any ideas on how to do

A.M.A

If you mean in the message index .. then open MessageIndex.template.php look for and remove:
<img src="', $settings['images_url'], '/post/', $topic['first_post']['icon'], '.gif" alt="" />
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

eric123

i dont have a file called that

and this is what i dont want to show:

Trekkie101


eric123

Well I kind of want to eliminate the entire column of the table, or not allow users to be able to selectt the message icon, either one

[Unknown]

The file he referenced is Themes/yourtheme/MessageIndex.template.php.  You may also want to remove it from Post.template.php, like so:

Find:
</td>
</tr>
<tr>
<td align="right">
<b>', $txt[71], ':</b>
</td>
<td>
<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="', $settings['images_url'], '/post/', $context['icon'], '.gif" name="icons" border="0" hspace="15" alt="" />
</td>


Replace:
<input type="hidden" name="icon" value="xx" />
</td>


How do I modify files?

-[Unknown]

eric123

I don't have those fiiles though, i have settings.templates.php, index.templates.php, and index.php style.css, theme_info.xml, images folder and language folder and thats all

[Unknown]

If you don't have them, copy them from the "default" folder (but I suggest you don't modify the default ones unless you know the consequences.)

-[Unknown]

eric123

thanks that wroked one last thing, is their any way to get rid of the column that is thier now with no message icons or no?

[Unknown]

You mean the column in the database?  I wouldn't suggest it, it would make third party add-ons, mods, and such very confused :P,

-[Unknown]

eric123

I mean this right here:

I want to remove the column where the images used to be, would that mess somethign up?

eric123


[Unknown]

Oh, sorry, I hadn't looked at what A.M.A suggested.

Find, MessageIndex.template.php:

<td width="9%" colspan="2"></td>

Replace:
<td width="5%"></td>

Remove:
<td class="windowbg2" valign="middle" align="center" width="4%">
<img src="', $settings['images_url'], '/post/', $topic['first_post']['icon'], '.gif" alt="" />
</td>


-[Unknown]

Puchu

#13
Edit: I must have had the coding wrong at some point for it works now...

guider

Oops. Did that and see what happened:

http://www.guider.atwebhosting.com/mambo/index.php?option=com_smf&Itemid=124&?topic=5.0

See the broken image thing? How can I make sure that gets linked to the regular Post Icon like in the first post?

[Unknown]

Are you sure you followed my instructions exactly?  That should have left you with an "xx" (standard) icon.

-[Unknown]


[Unknown]

Actually, the changes to Post.template.php are more important.  See the part where it says "xx"?  Are you sure that's there?

-[Unknown]

guider


[Unknown]

I'm afraid that looks like it hasn't seen any of this topic's changes at all.

-[Unknown]

Advertisement: