IT4X เทคนิคคอมพิวเตอร์ โน๊ตบุค ข่าว IT

ข่าวสาร / ความรู้ => ทิป เทคนิค คอมพิวเตอร์ => ข้อความที่เริ่มโดย: ßë©äûšë ที่ พฤษภาคม 25, 2010, 20:56:52

หัวข้อ: ทำปุ่ม High Slide Image ใน smf
เริ่มหัวข้อโดย: ßë©äûšë ที่ พฤษภาคม 25, 2010, 20:56:52
อันดับแรกให้ทำรูปฟังชันมาหนึ่งรูปตั้งชื่อว่า hs.gif แล้วอัพไปไว้ใน images/bbc/ หรือจะเอารูปนี้ไปใช้ก็ได้ครับ (http://image.ohozaa.com/id/og8hs.gif)

แล้วอัพโหลดโฟลเดอร์ highslide  ไปไว้ใน Themes/default/

อันดับแรกให้ทำรูปฟังชันมาหนึ่งรูปตั้งชื่อว่า hs.gif แล้วอัพไปไว้ใน images/bbc/

แล้วอัพโหลดโฟลเดอร์ highslide (http://go2.wordpress.com/?id=725X1342&site=choicepon.wordpress.com&url=http://www.ziddu.com/download/9987856/highslide.rar.html&sref=http://choicepon.wordpress.com/2010/05/24/ทำปุ่ม-high-slide-image/) ไปไว้ใน Themes/default/
Index.template.php (You Theme)

โค๊ด: [Select]
// If RSS feeds are enabled, advertise the presence of one.

Add Before:
โค๊ด: [Select]
// Highslide image mod
echo ‘



’;

source/Subs.php
Search:
โค๊ด: [Select]
array(
‘tag’ => ‘img’,
‘type’ => ‘unparsed_content’,
‘parameters’ => array(
‘alt’ => array(‘optional’ => true),
‘width’ => array(‘optional’ => true, ‘value’ => ‘ width=”$1″‘, ‘match’ => ‘(d )’),
‘height’ => array(‘optional’ => true, ‘value’ => ‘ height=”$1″‘, ‘match’ => ‘(d )’),
),
‘content’ => ‘”{alt}”{width}{height}’,
‘validate’ => create_function(‘&$tag, &$data, $disabled’, ‘
$data = strtr($data, array(’
’ => ’'));
if (strpos($data, ’http://’) !== 0 && strpos($data, ’https://’) !== 0)
$data = ’http://’ . $data;
‘),
‘disabled_content’ => ‘($1)’,
),

Add Before:
โค๊ด: [Select]
array(
‘tag’ => ‘hs’,
‘type’ => ‘unparsed_content’,
‘parameters’ => array(
‘width’ => array(‘optional’ => true, ‘value’ => ‘ width=”$1″‘, ‘match’ => ‘(d )’),
‘height’ => array(‘optional’ => true, ‘value’ => ‘ height=”$1″‘, ‘match’ => ‘(d )’),
),
‘content’ => ‘”"{width}{height}’,
‘validate’ => create_function(‘&$tag, &$data, $disabled’, ‘
$data = strtr($data, array(’
’ => ’'));
if (strpos($data, ’http://’) !== 0 && strpos($data, ’https://’) !== 0)
$data = ’http://’ . $data;
‘),
‘disabled_content’ => ‘($1)’,
),

Post.template.php (You Theme)
Search:
โค๊ด: [Select]
‘img’ => array(‘code’ => ‘img’, ‘before’ => ‘[img]‘, ‘after’ => ‘[/img]‘, ‘description’ => $txt[435]),
Add After:
โค๊ด: [Select]
‘hs’ => array(‘code’ => ‘hs’, ‘before’ => ‘[hs width=300 height=300]‘, ‘after’ => ‘[/hs]‘, ‘description’ => “Highslide Image”),

ที่มา http://smf.ruk-com.in.th/topic/29320-ทำปุ่ม-High-Slide-Image-กันครับ.htm

เครดิต : mod_smf , Putter
ที่มา : http://choicepon.wordpress.com/2010/05/24/ (http://choicepon.wordpress.com/2010/05/24/)ทำปุ่ม-high-slide-image/

site : www.it4x.com (http://www.it4x.com)