Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Remove Icon Selection Trouble

Aloittaja guider, maaliskuu 19, 2005, 07:11:22 IP

« edellinen - seuraava »

guider

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?

[Unknown]

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]

Advertisement: