- ชื่อ: Prompt for URL
- ผู้เขียน: zelda
- นำเสนอโดย: DexMoreGroup
- ประเภท: Feature Enhancement
- รองรับ: SMF 1.1.xx, 2.0.xx
- ปรับปรุงล่าสุด: 18 มิถุนายน 2553
รายละเอียด จะมีหน้าต่าง PopUp เล็กๆ ขึ้นมาให้ท่านวาง URL เมื่อท่านคลิกปุ่ม "ใส่ไฮเปอร์ลิงค์" เป็นสิ่งช่วยอำนวยความสะดวกอย่างหนึ่งในการโพสต์ลิงค์ในกระทู้
ตัวอย่าง
แก้ไขไฟล์:file Post.template.php
ค้นหา -->>
// Print a drop down list for all the colors we allow!
เพิ่มไว้ก่อน -->>
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Comค้นหา -->>
foreach ($context['bbc_tags'][1] as $image => $tag)
{
if (isset($tag['before']))
{
// Is this tag disabled?
if (!empty($context['disabled_tags'][$tag['code']]))
continue;
เพิ่มไว้หลัง -->>
// only replace the URL tag! . . . . . . . . . . .
if (isset($tag['code']) && $tag['code'] == 'url')
{
echo '<a href="javascript:void(0);" onclick="urlINPT(); return false;"><img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';
continue;
}
ลิงค์หัวข้อ:
http://dexmore.com/topic/320