สำหรับ SMF 2.0.xxแก้ไขไฟล์:file $themedir/Post.template.php
ค้นหา -->>
// Start with message icons - and any missing from this theme.
เพิ่มไว้ก่อน -->>
/*
ค้นหา -->>
// A function needed to discern HTML entities from non-western characters
เพิ่มไว้ก่อน -->>
*/
ค้นหา -->>
var textFields = ["subject", "', $context['post_box_name'], '", "icon", "guestname", "email", "evtitle", "question", "topic"];
แก้เป็น -->>
var textFields = ["subject", "', $context['post_box_name'], '", "guestname", "email", "evtitle", "question", "topic"];
ค้นหา -->>
<td align="right">
<b>', $txt['message_icon'], ':</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="', $context['icon_url'], '" name="icons" hspace="15" alt="" />
</td>
</tr>';
แก้เป็น -->>
<td align="right"> </td>
<td>
<fieldset id="newstyleMI">
<legend><b>', $txt['message_icon'] ,':</b></legend>';
// Loop through each message icon allowed, adding it to the drop down list.
foreach ($context['icons'] as $icon)
echo '
<input type="radio" name="icon" value="', $icon['value'], '"', $icon['value'] == $context['icon'] ? ' checked="checked"' : '', ' /><img src="', $icon['url'], '" alt="', $icon['name'], '" title="', $icon['name'], '" />';
echo '
</fieldset>
</td>
</tr>';
file $themedir/style.css
เพิ่ม -->>
/* MOD New Style Message Icon */
#newstyleMI { width: 68%; border: 1px solid #7f9db9 }
#newstyleMI input { margin: 5px 10px 5px 15px }
ลิงค์หัวข้อ:
http://dexmore.com/topic/2333