สมมุติจะแก้ไข Siteground68 template ก็เลือกแล้วกด Edit HTML
1.แก้ไข Footer
เดิม code ตรง footer คือ (? $sg = ''; include "templates.php"; ?)
แสดงผลเป็น Coupons Friendly, Powered by Joomla!; free resources by SG web hosting
แก้เป็น เปิดแท็ก (div align="center")(?php echo 'Copyright 2009 CouponsFriendly.com , All rights reserved.'?) (/div)
แสดงผลเป็น Copyright 2009 CouponsFriendly.com , All rights reserved.
2.Comment ในภาษา php
แบบบรรทัดเดียว เปิดด้วย //
แบบหลายบรรทัด เปิดด้วย /* และปิดด้วย */
3.ตัวแปร ใช้ จะมีเครื่องหมาย $ นำหน้า เช่น $a = 20; หรือ define ("ตัวแปร","ค่าคงที่")
ตัวแปรไดนามิก $$xxx หรือ ${$xxx}
4.Operator
Concatenation เชื่อมข้อความด้วยเครื่องหมาย จุด .
Comparison เปรียบเทียบใช้ == , != , > , < , >= , <=
Logical ใช้ && หรือ and , or
Showing posts with label mambo. Show all posts
Showing posts with label mambo. Show all posts
การเพิ่ม Mambo Template
- Site > Template Manager > Site Templates
ถ้าต้องการ Add Template เข้าไปใหม่
New > Upload Package File > Browse เลือก template file . zip ที่เราหามาได้ใหม่ > Upload file & Install
ถ้าชอบใจรูปแบบไหนก็เลือก radio button หน้า template นั้น แล้วกด Default
จะดูผลว่าหน้าตา Web site เราเป็นยังไงก็ Site > Preview > In new window











ถ้าต้องการ Add Template เข้าไปใหม่
New > Upload Package File > Browse เลือก template file . zip ที่เราหามาได้ใหม่ > Upload file & Install
ถ้าชอบใจรูปแบบไหนก็เลือก radio button หน้า template นั้น แล้วกด Default
จะดูผลว่าหน้าตา Web site เราเป็นยังไงก็ Site > Preview > In new window
ลองมาดูตัวอย่าง templates ที่ download มาใช้แล้ว











Subscribe to:
Posts (Atom)
