Sugree

Main menu

  • About
    • Self
  • Project
    • GT200
    • GeoPin
    • Mitter
    • Red Mob
    • Thairath Breaking News
    • jibjib
    • microblog-purple
    • 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 แก้ขัดไปก่อน รู้สึกเหมือนหนีปัญหาชอบกล

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

Roti (alpha) thinks you may like these:
  • Drupal
  • Drupal 6.4
  • Drupal 6.5
  • Drupal เจ๋งมากมาย
  • Drupal Bacon

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>, <html>. 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>, <html>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • You can use Markdown syntax to format and style the text. Also see and Markdown Extra for tables, footnotes, and more.
  • Twitter-style @usersnames are linked to their Twitter account pages.
  • Twitter-style #hashtags are linked to search.twitter.com.

More information about formatting options

Popular Tags

Android BarCamp BarCampBangkok BarCampBangkok2 Book Django Drupal Education Family Google Hardware Hardy Health Interview Java jibjib Joke Life microblog-purple OpenOffice.org OpenSource Podcast Python Review SoC Social Network Trip Twitter Ubuntu Weekly Suki
more tags

Powered By

debian
apache
drupal
drupal.in.th
openfreehost
inox
feedburner

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