Sugree

Main menu

  • About
    • Self
  • Project
    • jibjib
    • microblog-purple
    • Mitter
  • English
  • Thai

Drupal Boot Camp Day 2

Submitted by sugree on Mon, 06/02/2008 - 09:38.
  • BootCamp
  • Drupal
  • DrupalBootCamp
  • Thai

ต่อจากเมื่อวันเสาร์ DrupalBootCamp วันที่ 2 เริ่มมาก็ไม่พูดพล่ามทำเพลง ลุยแกะ theme ตั้งแต่ index.php ลงไป theme.inc เรื่อยไปจนถึง phptemplate.engine ปกติผมไม่ค่อยได้แก้ theme เลยไม่รู้ว่าจะปรับแต่งอะไรตรงไหน ตอนพูดก็เลยยกตัวอย่างแปลกๆ ที่ตลอดชีวิตอาจจะไม่ได้ใช้ กะว่าจะให้ไอเดียแต่ง theme แบบสุดขีดกู่ไม่กลับ

เนื้อหาหลักๆ คือการแต่ง theme ตั้งแต่ปรับ style.css ไปจนถึงแก้ไฟล์ *.tpl.php และ template.php วันทั้งวันเปิดแต่ Firebug สนุกไปอีกแบบ ได้แต่หวังว่าจะมีใครลองเอา 2 ฟังก์ชั่นข้างล่างไปใช้จริงบ้าง (มันดีเกินไป)

  • _phptemplate_callback()
  • _phptemplate_variables()

ว่าแล้วก็นึกถึงปัญหาที่แก้ไม่ได้ซะทีตอนพยายามทำให้ bluemarine รู้สึก color ซึ่งผมเอา logo มาใส่ใน header ซึ่งโดนครอบใน table อีกที รูปมันดันล้นลงมาด้านล่าง 1px แต่ความสูงของ td เท่ากับ img ที่ 72px พอดีเป๊ะ รู้แค่ว่าถ้าเอาบรรทัดข้างล่างของ Drupal ออกก็จะหาย

  border-collapse: collapse;

ลองเปลี่ยนเป็น separate ก็ไม่หาย สุดท้ายต้องยอมแพ้ เปลี่ยนความสูงของ td เป็น 73px แก้ขัดไปก่อน รู้สึกเหมือนหนีปัญหาชอบกล

ว่าแต่มีที่ไหนรับฝากไฟล์มั่ง

Post new comment

The content of this field is kept private and will not be shown publicly.
Input format
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockcode> <pre>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • You can use Markdown syntax to format and style the text.

More information about formatting options

Popular Tags

Assumption BarCamp BarCampBangkok BarCampBkk2 Creature Drupal DrupalCamp DrupalCampBangkok Education Google Gutsy Hardware Hardy Health Java JibCafe jibjib Joke NokNok OpenOffice.org Python Review SoC Social Network ThailandNextWebApps Trip TwittBKK TwittDay Twitter Ubuntu
more tags

Powered By

debian
apache
drupal
drupal.in.th
feedburner

© 2007-2008 Sugree Phatanapherom. Creative Commons [Feed Content / Comment]
RoopleTheme