Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: guider - maaliskuu 19, 2005, 07:11:22 IP

Otsikko: Remove Icon Selection Trouble
Kirjoitti: guider - maaliskuu 19, 2005, 07:11:22 IP
When I remove the section below from Post.template.php the selection will be gone but all new posts made through Post.template.php will not be set with the standard icon, they show a broken image.


<tr>
<td align="right">
<b>' . $txt[71] . ':</b>
</td>
<td>
<select name="icon" onchange="showimage()">';
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>
</tr>


How do I need to alter the file so the icon selection will be gone, but the standard icon will still be assigned when posting?
Otsikko: Re: Remove Icon Selection Trouble
Kirjoitti: [Unknown] - maaliskuu 20, 2005, 11:40:46 IP
As I've said before, you cannot just remove that section, you have to add on the same page somewhere:

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

-[Unknown]