xman โพสต์เมื่อ 2009-1-8 00:42:31

ระบุเพศด้วยสี

http://www.dishack.cn/thread-634-1-4.html

วิธีทำ
เปิด \templates\default\viewthread_node.htm

หา

$post  (อันแรก)

แก้เป็น

<!--{if $post['gender'] == 1}--><font color="blue">$post</font>
<!--{elseif $post['gender'] == 2}--><font color="red">$post</font>
<!--{else}--><font color="#000000">$post<!--{/if}-->

เปลี่ยนสีได้ตามชอบใจ  ตัวอย่างโค๊ดสี #666666

**** Hidden Message *****

theerawut โพสต์เมื่อ 2009-1-8 01:06:45

ขอบคุณครับ

nccatman โพสต์เมื่อ 2009-1-8 08:52:30

ขอบคุณคับ ต้องลองๆ

Saokim999 โพสต์เมื่อ 2009-1-8 09:36:06

thankss....................:victory:

penze โพสต์เมื่อ 2009-1-8 10:46:53

ขอบคูณในความมีน้ำใจค่ะ

professio โพสต์เมื่อ 2009-1-8 10:49:06

ลองหน่อยนะครับ ขอบคุณ

DrNui โพสต์เมื่อ 2009-1-8 13:10:04

ขอลองด้วยคนครับ

Saokim999 โพสต์เมื่อ 2009-1-8 14:58:55

<!--{if $post['gender'] == 1}--><img src="{IMGDIR}/view_boy.gif" alt="Boy"  /><font color="blue">$post</font>
<!--{elseif $post['gender'] == 2}--><img src="{IMGDIR}/view_girl.gif" alt="Girl"  /><font color="#3399FF">$post</font>
<!--{else}--><img src="{IMGDIR}/view_bga.gif" alt="Gay"  /><font color="#000000">$post<!--{/if}-->
:lol

penze โพสต์เมื่อ 2009-1-9 14:03:29

ขอบคุณมากๆค่ะ

dominaro โพสต์เมื่อ 2009-1-9 15:41:17

ว้าวว สุดยอดความรู้
หน้า: [1] 2 3 4 5 6 7 8 9 10
ดูในรูปแบบกติ: ระบุเพศด้วยสี