22 พฤษภาคม 2555, 16:41:54
ยินดีต้อนรับผู้เยี่ยมชม
  • noavata
  • ยินดีต้อนรับคุณ, ผู้เยี่ยมชม กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
    เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
Page Rank

ทำเว็บไซต์ | แต่งบอร์ด | ออกแบบ | SMF | Joomla | Drupal | WordPress | JQuery | CMS | ECommerce | Tel. +668-08577477

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: New Style Message Icon ทำไอค่อนหัวข้อให้เป็นแนวนอน  (อ่าน 1098 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
  • ชื่อ: New Style Message Icon
  • ผู้เขียน: M-DVD
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: Posting
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 15 กุมภาพันธ์ 2552
  • ต้นฉบับ: New Style Message Icon

รายละเอียด
      ทำไอค่อนหัวข้อให้เป็นแนวนอนและมีเส้นขอบ

ตัวอย่าง


สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file $themedir/Post.template.php

ค้นหา -->>
โค๊ด: [Select]
// Start with message icons - and any missing from this theme.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
/*

ค้นหา -->>
โค๊ด: [Select]
// The functions used to preview a posts without loading a new page.]]></search>
<add><![CDATA[
*/

ค้นหา -->>
โค๊ด: [Select]
var textFields = ["subject", "message", "icon", "guestname", "email", "evtitle", "question", "topic"];

แก้เป็น -->>
โค๊ด: [Select]
var textFields = ["subject", "message", "guestname", "email", "evtitle", "question", "topic"];

ค้นหา -->>
โค๊ด: [Select]
<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="', $context['icon_url'], '" name="icons" hspace="15" alt="" />
</td>
</tr>';

แก้เป็น -->>
โค๊ด: [Select]
<td align="right">&nbsp;</td>
<td>
<fieldset id="newstyleMI">
<legend><b>', $txt[71] ,':</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

เพิ่ม -->>
โค๊ด: [Select]

/* MOD New Style Message Icon */
#newstyleMI { width: 94%; border: 1px solid #7f9db9 }
#newstyleMI input { margin: 5px 10px 5px 15px }

ลิงค์หัวข้อ: http://dexmore.com/topic/2333
Windows XP    Firefox 3.6.6   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*
*


!Personal

Germany   ชาย ผู้เริ่มต้นกระทู้นี้ ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 1 เมื่อ: 10 กรกฎาคม 2553, 13:05:32
สำหรับ SMF 2.0.xx

แก้ไขไฟล์:

file $themedir/Post.template.php

ค้นหา -->>
โค๊ด: [Select]
// Start with message icons - and any missing from this theme.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
/*

ค้นหา -->>
โค๊ด: [Select]
// A function needed to discern HTML entities from non-western characters

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
*/

ค้นหา -->>
โค๊ด: [Select]
var textFields = ["subject", "', $context['post_box_name'], '", "icon", "guestname", "email", "evtitle", "question", "topic"];

แก้เป็น -->>
โค๊ด: [Select]
var textFields = ["subject", "', $context['post_box_name'], '", "guestname", "email", "evtitle", "question", "topic"];

ค้นหา -->>
โค๊ด: [Select]
<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>';

แก้เป็น -->>
โค๊ด: [Select]
<td align="right">&nbsp;</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

เพิ่ม -->>
โค๊ด: [Select]

/* MOD New Style Message Icon */
#newstyleMI { width: 68%; border: 1px solid #7f9db9 }
#newstyleMI input { margin: 5px 10px 5px 15px }

ลิงค์หัวข้อ: http://dexmore.com/topic/2333
Windows XP    Firefox 3.6.6   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
ส่งหัวข้อนี้พิมพ์ หน้า: 1 
กระโดดไป:  

Creative Commons License

SMF Thai Translation Powered by SMF © 2006–2012, Simple Machines LLC

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 18 พฤษภาคม 2555, 14:42:59

jQuery Plugin Copyright © 2551-2555 Themes Design & Hosting by DexMoreGroup

Sitemap | Thai Simple Machines Forum support SMF Thai

Web Begining | SMF Modifications | SMF Thai Translation Web Begining

Drupal | WordPress | CMS Joomla | jQuery Plugin | Web Graphics CMS Joomla