<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>รวมวิธีการใช้ Wordpress, Joomla, Drupal, Magento และ SEO &#187; image</title> <atom:link href="http://killthewhat.com/tag/image/feed/" rel="self" type="application/rss+xml" /><link>http://killthewhat.com</link> <description>Knowledge Base by howhost.com</description> <lastBuildDate>Fri, 24 Dec 2010 15:00:17 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.3</generator> <item><title>Slideshow Creator ทำ slide ภาพใน drupal</title><link>http://killthewhat.com/drupal-tutorials/slideshow-creator-%e0%b8%97%e0%b8%b3-slide-%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b9%83%e0%b8%99-drupal/</link> <comments>http://killthewhat.com/drupal-tutorials/slideshow-creator-%e0%b8%97%e0%b8%b3-slide-%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b9%83%e0%b8%99-drupal/#comments</comments> <pubDate>Tue, 11 May 2010 13:38:03 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[image]]></category> <category><![CDATA[module]]></category> <category><![CDATA[picture]]></category> <category><![CDATA[slide]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=5928</guid> <description><![CDATA[Slideshow Creator เป็น module ไว้นำภาพมาเป็นสไลค์โชว์ภาพใน drupal ของเราง่ายๆครับ ซึ่งสามารถนำไปใช้ร่วมกับ node หรือ block ได้ครับ โดย module Slideshow Creator สามารถใช้งานร่วมกับ CCK ได้ และยังสามารถดึงรูปจาก directory ของเรามาทำเป็นสไลค์ได้ด้วยครับ ซึ่ง module ตัวนี้จะใช้ jQuery Cycle plugin เป็นตัวจัดการครับ วิธีติดตั้งให้เราโหลด module jQuery plugins และ Slideshow Creator มาทำการติดตั้งก่อนครับ สามารถตั้งค่าได้จาก admin/settings/slideshow_creator ต่อมาให้ไปตั้งค่าการใข้งานใน input formats ครับโดยการแก้ไข format ที่เราต้องการจากนั้นช่อง Slideshow Creator เพื่อทำให้ใส่ code ทำสไลค์รูปได้ครับ วิธีการใช้งานโดยโค็ดจะเป็นดังนี้นะครับ [slideshow:VERSION, img=&#124;IMAGE_URL&#124;LINK&#124;TITLE&#124;DESCRIPTION&#124;TARGET&#124;, img=&#124;IMAGE_URL&#124;LINK&#124;TITLE&#124;DESCRIPTION&#124;TARGET&#124;] อธิบาย [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://killthewhat.com/wp-content/uploads/2010/05/Selection_0022.png" alt="" title="Selection_002" width="303" height="166" class="aligncenter size-full wp-image-5929" /></p><p>Slideshow Creator เป็น module ไว้นำภาพมาเป็นสไลค์โชว์ภาพใน drupal ของเราง่ายๆครับ ซึ่งสามารถนำไปใช้ร่วมกับ node หรือ block ได้ครับ<span
id="more-5928"></span></p><p>โดย module Slideshow Creator สามารถใช้งานร่วมกับ CCK ได้ และยังสามารถดึงรูปจาก directory ของเรามาทำเป็นสไลค์ได้ด้วยครับ ซึ่ง module ตัวนี้จะใช้ <a
href="http://www.malsup.com/jquery/cycle/">jQuery Cycle plugin</a> เป็นตัวจัดการครับ</p><p>วิธีติดตั้งให้เราโหลด module <a
href="http://drupal.org/project/jquery_plugin">jQuery plugins</a> และ <a
href="http://drupal.org/project/slideshow_creator">Slideshow Creator</a> มาทำการติดตั้งก่อนครับ<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2010/05/Selection_004.png" alt="" title="Selection_004" width="478" height="307" class="aligncenter size-full wp-image-5930" /></p><p>สามารถตั้งค่าได้จาก admin/settings/slideshow_creator<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2010/05/Selection_005.png" alt="" title="Selection_005" width="296" height="386" class="aligncenter size-full wp-image-5931" /></p><p>ต่อมาให้ไปตั้งค่าการใข้งานใน input formats ครับโดยการแก้ไข format ที่เราต้องการจากนั้นช่อง Slideshow Creator เพื่อทำให้ใส่ code ทำสไลค์รูปได้ครับ<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2010/05/Selection_007.png" alt="" title="Selection_007" width="395" height="334" class="aligncenter size-full wp-image-5932" /></p><p><strong>วิธีการใช้งานโดยโค็ดจะเป็นดังนี้นะครับ</strong></p><pre class="brush: php; title: ;">
[slideshow:VERSION, img=|IMAGE_URL|LINK|TITLE|DESCRIPTION|TARGET|, img=|IMAGE_URL|LINK|TITLE|DESCRIPTION|TARGET|]
</pre><p><strong>อธิบาย</strong><br
/> <strong>VERSION:</strong> เลือกเวอร์ชั่นของ slideshow แต่ค่าที่ใส่ก็คือ <strong>2</strong> ครับ<br
/> <strong>IMAGE_URL:</strong> url ของรูปภาพ<br
/> <strong>LINK:</strong> ใส่ลิงค์ให้กับรูปภาพ<br
/> <strong>TITLE:</strong> หัวข้อรูปภาพ<br
/> <strong>DESCRIPTION:</strong> คำอธิบาย<br
/> <strong>TARGET:</strong> เมื่อใส่ลิงค์ให้กับรูปภาพเราต้องเลือกด้วยว่าจะให้พอกดแล้วเป็นแบบไหน โดยจะเป็นในรูปแบบ html เช่น  _blank (default) , _parent, _self</p><p><a
href="http://drupal.org/node/237049">อ่านเพิ่มเติมครับ</a></p><p>ตัวอย่างโค็ดครับ สามารถนำไปใช้งานเพื่อดูตัวอย่างได้ครับ</p><pre class="brush: php; title: ;">
[slideshow: 2, img=|http://drupal.org/sites/all/themes/bluebeach/logos/drupal.org.png|drupal.org|Drupal|The ultimate CMS. Download it now!|Drupal|, img=|http://www.mysql.com/common/logos/mysql_100x52-64.gif|http://www.mysql.com|MySQL|Free and reliable SQL server and client.|_self|, dir=|files/|yes||Generic Photos|Aren't they great?||]
</pre><p>วิธีใช้งานเพิ่มเติม : http://drupal.org/node/237049</p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/drupal-tutorials/slideshow-creator-%e0%b8%97%e0%b8%b3-slide-%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b9%83%e0%b8%99-drupal/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ทำให้ CMS อัพโหลดรูปได้ใน prestashop</title><link>http://killthewhat.com/prestashop-tutorials/%e0%b8%97%e0%b8%b3%e0%b9%83%e0%b8%ab%e0%b9%89-cms-%e0%b8%ad%e0%b8%b1%e0%b8%9e%e0%b9%82%e0%b8%ab%e0%b8%a5%e0%b8%94%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%84%e0%b8%94%e0%b9%89%e0%b9%83%e0%b8%99-prestashop/</link> <comments>http://killthewhat.com/prestashop-tutorials/%e0%b8%97%e0%b8%b3%e0%b9%83%e0%b8%ab%e0%b9%89-cms-%e0%b8%ad%e0%b8%b1%e0%b8%9e%e0%b9%82%e0%b8%ab%e0%b8%a5%e0%b8%94%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%84%e0%b8%94%e0%b9%89%e0%b9%83%e0%b8%99-prestashop/#comments</comments> <pubDate>Tue, 09 Mar 2010 22:28:46 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[PrestaShop]]></category> <category><![CDATA[cms]]></category> <category><![CDATA[image]]></category> <category><![CDATA[upload]]></category> <category><![CDATA[wysiwyg]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=5599</guid> <description><![CDATA[ระบบ CMS ใน prestashop เอาไว้สร้างพวกหน้าต่างๆภายในเว็บไซต์เรา โดย prestashop นั้นจะมาพร้อมกับ WYSIWYG editor มาให้พร้อมใช้งานเลยซึ่งมันก็สะดวกมาก แต่&#8230;มันดันอัพโหลดรูปไม่ได้ซะงั้น -_- ทำให้ผมรู้สึกว่ามันขาดไรสิ่งสำคัญแบบนี้ไปได้ยังไง ผมเลยไปหาวิธีทำมาและก็เจอเข้าจนได้ครับ วิธีทำก็ไม่ยากให้โหลดไฟล์มาจาก http://www.prestashop.com/forums/viewthread/25836 ก่อน เจ้าของไฟล์ดันเรียกเป็น module ผมว่ามันไม่ใช่ module นะเพราะเราต้องเข้าไปแก้ไขโค็ดเอง หลังจากโหลดมาแล้วทำการแตกซิบไฟล์ออกมา ให้เข้าไปที่โฟลเดอร์ root/ แล้วก็อปปี้โฟลเดอร์ js/ ออกมาใส่ไว้ที่ตัวเว็บของ prestashop จากนั้นทำการแก้ไขไฟล์ admin/tabs/AdminCMS.php โดยหาคำว่า plugins : &#34;safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen&#34;, แก้เป็น plugins : &#34;safari,pagebreak,style,layer,table,advimage,images,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen&#34;, และหาคำว่า theme_advanced_buttons2 : &#34;cut,copy,paste,pastetext,pasteword,&#124;,search,replace,&#124;,bullist,numlist,&#124;,outdent,indent,blockquote,&#124;,undo,redo,&#124;,link,unlink,anchor,image,cleanup,help,code,,&#124;,forecolor,backcolor&#34;, แก้ไขเป็น theme_advanced_buttons2 : &#34;cut,copy,paste,pastetext,pasteword,&#124;,search,replace,&#124;,bullist,numlist,&#124;,outdent,indent,blockquote,&#124;,undo,redo,&#124;,link,unlink,anchor,image,images,cleanup,help,code,,&#124;,forecolor,backcolor&#34;, จากนั้นทำการบันทึกเพียงเท่านี้เมื่อเราเข้าไปที่ CMS และใช้งานในส่วนของ WYSIWYG editor ที่เขาเอามาให้แล้วใช้ไอคอนดังรูป ก็จะสามารถอัพโหลดรูปขึ้น [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://killthewhat.com/wp-content/uploads/2010/03/upload_1.png" alt="" title="upload_1" width="184" height="150" class="aligncenter size-full wp-image-5600" /><br
/> ระบบ CMS ใน prestashop เอาไว้สร้างพวกหน้าต่างๆภายในเว็บไซต์เรา โดย prestashop นั้นจะมาพร้อมกับ WYSIWYG editor มาให้พร้อมใช้งานเลยซึ่งมันก็สะดวกมาก แต่&#8230;มันดันอัพโหลดรูปไม่ได้ซะงั้น -_- <span
id="more-5599"></span>ทำให้ผมรู้สึกว่ามันขาดไรสิ่งสำคัญแบบนี้ไปได้ยังไง ผมเลยไปหาวิธีทำมาและก็เจอเข้าจนได้ครับ</p><p>วิธีทำก็ไม่ยากให้โหลดไฟล์มาจาก http://www.prestashop.com/forums/viewthread/25836 ก่อน เจ้าของไฟล์ดันเรียกเป็น module ผมว่ามันไม่ใช่ module นะเพราะเราต้องเข้าไปแก้ไขโค็ดเอง</p><p>หลังจากโหลดมาแล้วทำการแตกซิบไฟล์ออกมา ให้เข้าไปที่โฟลเดอร์ root/ แล้วก็อปปี้โฟลเดอร์ js/ ออกมาใส่ไว้ที่ตัวเว็บของ prestashop<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2010/03/Selection_0012.png" alt="" title="Selection_001" width="365" height="186" class="aligncenter size-full wp-image-5601" /></p><p>จากนั้นทำการแก้ไขไฟล์ admin/tabs/AdminCMS.php โดยหาคำว่า</p><pre class="brush: php; title: ;">
plugins : &quot;safari,pagebreak,style,layer,table,advimage,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen&quot;,
</pre><p>แก้เป็น</p><pre class="brush: php; title: ;">
plugins : &quot;safari,pagebreak,style,layer,table,advimage,images,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,fullscreen&quot;,
</pre><p>และหาคำว่า</p><pre class="brush: php; title: ;">
theme_advanced_buttons2 : &quot;cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor&quot;,
</pre><p>แก้ไขเป็น</p><pre class="brush: php; title: ;">
theme_advanced_buttons2 : &quot;cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,images,cleanup,help,code,,|,forecolor,backcolor&quot;,
</pre><p>จากนั้นทำการบันทึกเพียงเท่านี้เมื่อเราเข้าไปที่ CMS และใช้งานในส่วนของ WYSIWYG editor ที่เขาเอามาให้แล้วใช้ไอคอนดังรูป<img
src="http://killthewhat.com/wp-content/uploads/2010/03/upload_0.png" alt="" title="upload_0" width="66" height="18" class="aligncenter size-full wp-image-5602" /> ก็จะสามารถอัพโหลดรูปขึ้น server เราได้แล้วครับ&#8230;</p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/prestashop-tutorials/%e0%b8%97%e0%b8%b3%e0%b9%83%e0%b8%ab%e0%b9%89-cms-%e0%b8%ad%e0%b8%b1%e0%b8%9e%e0%b9%82%e0%b8%ab%e0%b8%a5%e0%b8%94%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%84%e0%b8%94%e0%b9%89%e0%b9%83%e0%b8%99-prestashop/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>นำรูปสินค้ามาใส่ไว้ใน page หรือ block ของ magento</title><link>http://killthewhat.com/magento-tutorials/%e0%b8%99%e0%b8%b3%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%aa%e0%b8%b4%e0%b8%99%e0%b8%84%e0%b9%89%e0%b8%b2%e0%b8%a1%e0%b8%b2%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b9%84%e0%b8%a7%e0%b9%89%e0%b9%83%e0%b8%99-page/</link> <comments>http://killthewhat.com/magento-tutorials/%e0%b8%99%e0%b8%b3%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%aa%e0%b8%b4%e0%b8%99%e0%b8%84%e0%b9%89%e0%b8%b2%e0%b8%a1%e0%b8%b2%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b9%84%e0%b8%a7%e0%b9%89%e0%b9%83%e0%b8%99-page/#comments</comments> <pubDate>Wed, 17 Feb 2010 13:24:41 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[Magento]]></category> <category><![CDATA[block]]></category> <category><![CDATA[image]]></category> <category><![CDATA[page]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=5520</guid> <description><![CDATA[วันนี้ไปเจอทริคเล็กๆน้อยๆของ magento ที่จะมานำเสนอกันก็คือ ดึงรูป thumbnail ของสินค้าเรามาใส่ไว้ใน CMS page หรือ block ครับ ขั้นแรกให้เราสร้างไฟล์ .phtml ตั้งชื่อว่า thumb_pic.phtml แล้วนำอัพขึ้นไปที่ app/design/frontend/default/[ธีมที่ใช้งาน]/template/catalog/product/view/ โดยข้างในมีโค็ดดังนี้ &#60;?php $productId = $this-&#62;getProduct_id(); $_product = Mage::getModel('catalog/product')-&#62;load($productId); //load the product ?&#62; &#60;img src=&#34;&#60;? echo Mage::helper('catalog/image')-&#62;init($_product, 'thumbnail')-&#62;resize(75, 75); ?&#62;&#34; alt=&#34;&#60;?php echo $this-&#62;htmlEscape($_product['name']); ?&#62;&#34; border=&#34;0&#34; width=&#34;75&#34; /&#62; จากนั้นไปที่ CMS > Manage Pages ในที่นี้ผมจะเอารูปไปใช้ใน page นะครับ นำโค็ดด้านล่างไปใช้งาน {{block type=&#34;catalog/product_new&#34; product_id=&#34;2&#34; [...]]]></description> <content:encoded><![CDATA[<p>วันนี้ไปเจอทริคเล็กๆน้อยๆของ magento ที่จะมานำเสนอกันก็คือ ดึงรูป thumbnail ของสินค้าเรามาใส่ไว้ใน CMS page หรือ block ครับ<span
id="more-5520"></span></p><p>ขั้นแรกให้เราสร้างไฟล์ .phtml ตั้งชื่อว่า thumb_pic.phtml แล้วนำอัพขึ้นไปที่ app/design/frontend/default/[ธีมที่ใช้งาน]/template/catalog/product/view/ โดยข้างในมีโค็ดดังนี้</p><pre class="brush: php; title: ;">
&lt;?php
$productId = $this-&gt;getProduct_id();
$_product = Mage::getModel('catalog/product')-&gt;load($productId); //load the product
?&gt;
&lt;img src=&quot;&lt;? echo Mage::helper('catalog/image')-&gt;init($_product, 'thumbnail')-&gt;resize(75, 75); ?&gt;&quot; alt=&quot;&lt;?php echo $this-&gt;htmlEscape($_product['name']); ?&gt;&quot; border=&quot;0&quot; width=&quot;75&quot; /&gt;
</pre><p>จากนั้นไปที่ CMS > Manage Pages ในที่นี้ผมจะเอารูปไปใช้ใน page นะครับ นำโค็ดด้านล่างไปใช้งาน</p><pre class="brush: php; title: ;">
{{block type=&quot;catalog/product_new&quot; product_id=&quot;2&quot; template=&quot;catalog/product/view/thumb_pic.phtml&quot;}}
</pre><p>โดยให้เราดูที่ product_id=&#8221;&#8230;&#8221; ให้นำ id ของสินค้ามาใส่<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2010/02/Selection_0031.png" alt="" title="Selection_003" width="550" height="176" class="aligncenter size-full wp-image-5523" /></p><p>ตัวอย่างผมแก้จาก About Us<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2010/02/Selection_004.png" alt="" title="Selection_004" width="550" height="173" class="aligncenter size-full wp-image-5524" /></p><p>การแสดงผลออกมาจากตัวอย่างข้างต้น สามารถนำไปประยุกต์ใช้ได้นะครับ<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2010/02/Selection_005.png" alt="" title="Selection_005" width="473" height="253" class="aligncenter size-full wp-image-5525" /></p><p>เครดิต : http://www.molotovbliss.com/blog/magento-commerce/magento-display-a-product-image-within-static-pages-and-blocks/</p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/magento-tutorials/%e0%b8%99%e0%b8%b3%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%aa%e0%b8%b4%e0%b8%99%e0%b8%84%e0%b9%89%e0%b8%b2%e0%b8%a1%e0%b8%b2%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b9%84%e0%b8%a7%e0%b9%89%e0%b9%83%e0%b8%99-page/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>นำรูปมาโชว์หน้าแรกของบทความใน wordpress</title><link>http://killthewhat.com/wordpress-tutorials/%e0%b8%99%e0%b8%b3%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a1%e0%b8%b2%e0%b9%82%e0%b8%8a%e0%b8%a7%e0%b9%8c%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2%e0%b9%81%e0%b8%a3%e0%b8%81%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b8%9a/</link> <comments>http://killthewhat.com/wordpress-tutorials/%e0%b8%99%e0%b8%b3%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a1%e0%b8%b2%e0%b9%82%e0%b8%8a%e0%b8%a7%e0%b9%8c%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2%e0%b9%81%e0%b8%a3%e0%b8%81%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b8%9a/#comments</comments> <pubDate>Fri, 16 Oct 2009 19:38:25 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[image]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[รูปภาพ]]></category> <category><![CDATA[โชว์หน้าแรก]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=4927</guid> <description><![CDATA[วิธีนี้เป็นวิธีการดึงรูปในบทความของเรานำออกมาแสดงในหน้าแรกของ wordpress ยังที่เห็นกันในเว็บบล็อกต่างๆทั่วไป ซึ่งสามารถช่วยให้สื่อความหมายของบทความที่เราเขียนได้มากทีเดียว 1. ให้นำโค็ดนี้ไปเพิ่มใน wp-content/themes/[ชื่อ theme ของเรา]/funtion.php function catch_that_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('/&#60;img.+src=[\'&#34;]([^\'&#34;]+)[\'&#34;].*&#62;/i', $post-&#62;post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ //Defines a default image $first_img = &#34;/images/default.jpg&#34;; } return $first_img; } 2. จากนั้นไปที่ไฟล์ index.php ของ theme หา &#60;div class=&#34;entry&#34;&#62; &#60;?php the_content('Read the rest of [...]]]></description> <content:encoded><![CDATA[<p><img
class="aligncenter size-full wp-image-4928" title="wordpress" src="http://killthewhat.com/wp-content/uploads/2009/10/wordpress1.png" alt="wordpress" width="566" height="303" /></p><p>วิธีนี้เป็นวิธีการดึงรูปในบทความของเรานำออกมาแสดงในหน้าแรกของ wordpress ยังที่เห็นกันในเว็บบล็อกต่างๆทั่วไป ซึ่งสามารถช่วยให้สื่อความหมายของบทความที่เราเขียนได้มากทีเดียว<span
id="more-4927"></span></p><p>1. ให้นำโค็ดนี้ไปเพิ่มใน wp-content/themes/[ชื่อ theme ของเรา]/funtion.php</p><pre class="brush: php; title: ;">function catch_that_image() {
  global $post, $posts;
  $first_img = '';
  ob_start();
  ob_end_clean();
  $output = preg_match_all('/&lt;img.+src=[\'&quot;]([^\'&quot;]+)[\'&quot;].*&gt;/i', $post-&gt;post_content, $matches);
  $first_img = $matches [1] [0];

  if(empty($first_img)){ //Defines a default image
    $first_img = &quot;/images/default.jpg&quot;;
  }
  return $first_img;
}
</pre><p>2. จากนั้นไปที่ไฟล์ index.php ของ theme หา</p><pre class="brush: php; title: ;">
&lt;div class=&quot;entry&quot;&gt;
 &lt;?php the_content('Read the rest of this entry &amp;raquo;'); ?&gt;
&lt;/div&gt;
</pre><p>แก้เป็น</p><pre class="brush: php; title: ;">
&lt;div class=&quot;entry&quot;&gt;
 &lt;img src=&quot;&lt;?php echo catch_that_image() ?&gt;&quot; alt=&quot;&lt;?php the_title(); ?&gt;&quot; class=&quot;dis-pic&quot; /&gt;
 &lt;?php the_content('Read the rest of this entry &amp;raquo;'); ?&gt;
&lt;/div&gt;
</pre><p>จกานั้นเราก็จัด css ได้ตามใจชอบ<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/wordpress2.png" alt="wordpress" title="wordpress" width="523" height="399" class="aligncenter size-full wp-image-4935" /></p><p>Via : http://wordpress.org/support/topic/246893</p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/wordpress-tutorials/%e0%b8%99%e0%b8%b3%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a1%e0%b8%b2%e0%b9%82%e0%b8%8a%e0%b8%a7%e0%b9%8c%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2%e0%b9%81%e0%b8%a3%e0%b8%81%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b8%9a/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>การทำ image mapping ให้เชื่อมกับสินค้าภายในร้านบน prestashop</title><link>http://killthewhat.com/prestashop-tutorials/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-image-mapping-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%80%e0%b8%8a%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%a1%e0%b8%81%e0%b8%b1%e0%b8%9a%e0%b8%aa%e0%b8%b4%e0%b8%99/</link> <comments>http://killthewhat.com/prestashop-tutorials/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-image-mapping-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%80%e0%b8%8a%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%a1%e0%b8%81%e0%b8%b1%e0%b8%9a%e0%b8%aa%e0%b8%b4%e0%b8%99/#comments</comments> <pubDate>Mon, 05 Oct 2009 19:20:24 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[PrestaShop]]></category> <category><![CDATA[image]]></category> <category><![CDATA[image mapping]]></category> <category><![CDATA[รูปภาพ]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=4741</guid> <description><![CDATA[จากครั้งที่แล้วผมได้เสนอเกี่ยวกับการทำ image mapping ไปซึ่งผมก็พึ่งรู้ว่า image mapping มันทำได้มากกว่าที่ผมเสนอไปคราวก่อนนั้นก็คือ สามารถลิงค์เชื่อมกับสินค้าภายในร้านเราได้ครับดูตัวอย่างได้จาก http://www.prestashop.com/demo/2-music-ipods ซึ่งเมื่อเราเอาเมาส์ไปชี้ที่รูปภาพมันจะแสดงรายละเอียดของสินค้าเรามาแสดง และยังสามารถลิงค์ไปยังสินค้าดังกล่าวได้ด้วย มาดูวิธีทำกันดีกว่าครับ ให้เราเข้าไปแก้ไข image mapping ในหน้า admin ของเราครับ แล้วคลิกไปตัวที่เราจะทำการแก้ไข จากนั้นให้เราลงมาดูที่รูปภาพขนาดใหญ่ ให้นำเมาส์กดวางสี่เหลี่ยมครอบนะตำแหน่งที่จะให้ลิงค์ไปยังสินค้า ดังรูป ช่องด้านล่างให้เราพิมพ์รายชื่อสินค้าเพื่อทำการค้นหาสินค้าที่ต้องให้ลิงค์ไป จากนั้นกดตกลง เมื่อเสร็จแล้วจะเป็นดังรูป สามารถทำเพิ่มเติมได้ เสร็จขั้นตอนแล้วกด บันทึก image map ซะ แล้วไปดูที่หน้าร้านของเรา ไปที่หมวดหมู่ทีเราทำไว้ที่รูปภาพจะมีตัว บวก อยู่เมื่อนำเมาส์ไปวางไว้ก็จะแสดงรายละเอียดสินค้าของเราขึ้นมา และสามารถคลิกเข้าไปได้ ผมว่ามันเป็นอีกหนึ่งฟิวเจอร์ที่น่าสนใจทีเดียวสำหรับ prestashop ซึ่งผมยังไม่เคยเจอสำหรับ cms ตัวอื่น]]></description> <content:encoded><![CDATA[<p>จากครั้งที่แล้วผมได้เสนอเกี่ยวกับการทำ <a
href="http://killthewhat.com/prestashop-tutorials/image-mapping-%E0%B9%80%E0%B8%9E%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B8%A5%E0%B8%B9%E0%B8%81%E0%B9%80%E0%B8%A5%E0%B9%88%E0%B8%99%E0%B8%A0%E0%B8%B2%E0%B8%9E%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B8%81%E0%B8%B1/"><strong>image mapping</strong></a> ไปซึ่งผมก็พึ่งรู้ว่า <strong>image mapping</strong> มันทำได้มากกว่าที่ผมเสนอไปคราวก่อนนั้นก็คือ<span
id="more-4741"></span> สามารถลิงค์เชื่อมกับสินค้าภายในร้านเราได้ครับดูตัวอย่างได้จาก http://www.prestashop.com/demo/2-music-ipods ซึ่งเมื่อเราเอาเมาส์ไปชี้ที่รูปภาพมันจะแสดงรายละเอียดของสินค้าเรามาแสดง และยังสามารถลิงค์ไปยังสินค้าดังกล่าวได้ด้วย มาดูวิธีทำกันดีกว่าครับ</p><p>ให้เราเข้าไปแก้ไข image mapping ในหน้า admin ของเราครับ แล้วคลิกไปตัวที่เราจะทำการแก้ไข<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/prestashop19.png" alt="prestashop" title="prestashop" width="630" height="384" class="aligncenter size-full wp-image-4745" /></p><p>จากนั้นให้เราลงมาดูที่รูปภาพขนาดใหญ่ ให้นำเมาส์กดวางสี่เหลี่ยมครอบนะตำแหน่งที่จะให้ลิงค์ไปยังสินค้า ดังรูป<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/prestashop20.png" alt="prestashop" title="prestashop" width="630" height="268" class="aligncenter size-full wp-image-4746" /></p><p>ช่องด้านล่างให้เราพิมพ์รายชื่อสินค้าเพื่อทำการค้นหาสินค้าที่ต้องให้ลิงค์ไป จากนั้นกดตกลง<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/prestashop21.png" alt="prestashop" title="prestashop" width="630" height="307" class="aligncenter size-full wp-image-4748" /></p><p>เมื่อเสร็จแล้วจะเป็นดังรูป<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/prestashop22.png" alt="prestashop" title="prestashop" width="630" height="286" class="aligncenter size-full wp-image-4749" /></p><p>สามารถทำเพิ่มเติมได้<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/prestashop23.png" alt="prestashop" title="prestashop" width="630" height="307" class="aligncenter size-full wp-image-4750" /></p><p>เสร็จขั้นตอนแล้วกด บันทึก image map ซะ แล้วไปดูที่หน้าร้านของเรา ไปที่หมวดหมู่ทีเราทำไว้ที่รูปภาพจะมีตัว บวก อยู่เมื่อนำเมาส์ไปวางไว้ก็จะแสดงรายละเอียดสินค้าของเราขึ้นมา และสามารถคลิกเข้าไปได้<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/prestashop24.png" alt="prestashop" title="prestashop" width="630" height="318" class="aligncenter size-full wp-image-4751" /></p><p>ผมว่ามันเป็นอีกหนึ่งฟิวเจอร์ที่น่าสนใจทีเดียวสำหรับ prestashop ซึ่งผมยังไม่เคยเจอสำหรับ cms ตัวอื่น</p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/prestashop-tutorials/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-image-mapping-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%80%e0%b8%8a%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%a1%e0%b8%81%e0%b8%b1%e0%b8%9a%e0%b8%aa%e0%b8%b4%e0%b8%99/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>เพิ่มรูปภาพสินค้าใน virtuemart</title><link>http://killthewhat.com/joomla-tutorial/%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%aa%e0%b8%b4%e0%b8%99%e0%b8%84%e0%b9%89%e0%b8%b2%e0%b9%83%e0%b8%99-virtuemart/</link> <comments>http://killthewhat.com/joomla-tutorial/%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%aa%e0%b8%b4%e0%b8%99%e0%b8%84%e0%b9%89%e0%b8%b2%e0%b9%83%e0%b8%99-virtuemart/#comments</comments> <pubDate>Thu, 01 Oct 2009 18:43:00 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[image]]></category> <category><![CDATA[virtuemart]]></category> <category><![CDATA[รูปภาพ]]></category> <category><![CDATA[สินค้า]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=4686</guid> <description><![CDATA[โดยปกติแล้วรูปภาพสินค้าใน virtuemart นั้นตอนเราทำการสร้างสินค้าเริ่มแรกจะให้มีการใส่รูปภาพสินค้าได้แค่รูปเดียว ถ้าเราอยากให้มีรูปภาพหลายๆ ภาพ ในหน้ารายละเอียดของสินค้่่านั้นๆ (เช่นสินค้าเดียวกัน แต่อยากมีรูปหลายๆ มุม หรือ มีหลายสีให้ดู) เราก็สามารถเพิ่มลงไปได้ครับ แต่อาจต้องสังเกตุกันสักเล็กน้อย เพราะไอคอนที่ให้กดมันจะเล็กๆครับทำให้บางคนไม่ทันสังเกตุ หลังจากทำการเพิ่มสินค้าแล้วนะครับให้กลับมายังหน้า รายการสินค้า จะเห็น colum ชื่อว่า Media ตรงนี้ละครับที่จะทำการเพิ่มไฟล์หรือรูปภาพให้สินค้าตัวนี้ได้ หลังจากคลิกเข้ามาแล้วก็จะเจอกับหน้าของ การจัดการไฟล์ โดยจะมีรูปเดิมอยู่ด้วยให้เราคลิกที่ สร้างใหม่ เพื่อทำการเพิ่มรูปภาพเข้าไปครับ ทำการ browse ไปรูปภาพของเรา และปรับแต่งค่าต่างๆตามต้องการจากนั้นกดบันทึก จะทำการเพิ่มกี่รูปก็ตามสะดวกครับแล้วจากนั้นเราก็จะได้ดังรูปล่าง]]></description> <content:encoded><![CDATA[<p>โดยปกติแล้วรูปภาพสินค้าใน virtuemart นั้นตอนเราทำการสร้างสินค้าเริ่มแรกจะให้มีการใส่รูปภาพสินค้าได้แค่รูปเดียว ถ้าเราอยากให้มีรูปภาพหลายๆ ภาพ ในหน้ารายละเอียดของสินค้่่านั้นๆ (เช่นสินค้าเดียวกัน แต่อยากมีรูปหลายๆ มุม หรือ มีหลายสีให้ดู)<span
id="more-4686"></span> เราก็สามารถเพิ่มลงไปได้ครับ แต่อาจต้องสังเกตุกันสักเล็กน้อย เพราะไอคอนที่ให้กดมันจะเล็กๆครับทำให้บางคนไม่ทันสังเกตุ</p><p>หลังจากทำการเพิ่มสินค้าแล้วนะครับให้กลับมายังหน้า <strong>รายการสินค้า</strong> จะเห็น colum ชื่อว่า Media ตรงนี้ละครับที่จะทำการเพิ่มไฟล์หรือรูปภาพให้สินค้าตัวนี้ได้<br
/> <a
href="http://killthewhat.com/wp-content/uploads/2009/10/virtualmart.png" rel="lightbox[4686]"><img
src="http://killthewhat.com/wp-content/uploads/2009/10/virtualmart.png" alt="virtuemart" title="virtuemart" width="630" height="228" class="aligncenter size-full wp-image-4687" /></a></p><p>หลังจากคลิกเข้ามาแล้วก็จะเจอกับหน้าของ การจัดการไฟล์ โดยจะมีรูปเดิมอยู่ด้วยให้เราคลิกที่ สร้างใหม่ เพื่อทำการเพิ่มรูปภาพเข้าไปครับ<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/virtualmart1.png" alt="virtuemart" title="virtuemart" width="630" height="236" class="aligncenter size-full wp-image-4688" /></p><p>ทำการ browse ไปรูปภาพของเรา และปรับแต่งค่าต่างๆตามต้องการจากนั้นกดบันทึก<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/virtualmart2.png" alt="virtuemart" title="virtuemart" width="630" height="416" class="aligncenter size-full wp-image-4689" /></p><p>จะทำการเพิ่มกี่รูปก็ตามสะดวกครับแล้วจากนั้นเราก็จะได้ดังรูปล่าง<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/virtualmart3.png" alt="virtuemart" title="virtuemart" width="630" height="280" class="aligncenter size-full wp-image-4690" /></p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/joomla-tutorial/%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%aa%e0%b8%b4%e0%b8%99%e0%b8%84%e0%b9%89%e0%b8%b2%e0%b9%83%e0%b8%99-virtuemart/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Image mapping เพิ่มลูกเล่นภาพให้กับ category ใน prestashop</title><link>http://killthewhat.com/prestashop-tutorials/image-mapping-%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%a5%e0%b8%b9%e0%b8%81%e0%b9%80%e0%b8%a5%e0%b9%88%e0%b8%99%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%81%e0%b8%b1/</link> <comments>http://killthewhat.com/prestashop-tutorials/image-mapping-%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%a5%e0%b8%b9%e0%b8%81%e0%b9%80%e0%b8%a5%e0%b9%88%e0%b8%99%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%81%e0%b8%b1/#comments</comments> <pubDate>Thu, 01 Oct 2009 16:19:51 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[PrestaShop]]></category> <category><![CDATA[image]]></category> <category><![CDATA[image mapping]]></category> <category><![CDATA[รูปภาพ]]></category> <category><![CDATA[สไลด์]]></category> <category><![CDATA[หมวดหมู่]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=4676</guid> <description><![CDATA[Image mapping เป็นเมนูที่ให้เราสามารถใส่ภาพประกอบใน category ได้ดังรูปบน โดยถ้าเรากำหนดหลายๆรูปลงไป รูปแบบจะออกมาเป็นแบบสไลด์ ประโยชน์ก็คือเพิ่มคำอธิบายที่เป็นรูปภาพเข้าไปด้วยเพื่อให้ลูกค้าเราเข้าใจมากว่าขึ้นว่าหมวดหมู่นี้คืออะไร ให้เราไปที่หน้า admin ของ prestashop จากนั้นไปที่เมนู Catalog >> Image mapping แล้วกด เพิ่มใหม่ กำหนดชื่อจากนั้นทำการอัพโหลดรูปที่ต้องการลงไป จากนั้นมันจะกลับมาหน้าเดิมให้เราคลิกเข้าไปที่เราสร้างไว้เพื่อทำการแก้ไข เราจะเห็นรูปที่เราอัพโหลดขึ้นมา จากนั้นทำการติ้กช่องหมวดหมู่ที่เราต้องการให้แสดงออกมา แล้วทำการบันทึกซะ แล้วลองกลับไปดูที่หน้าแรกคลิกที่หมวดหมู่ของเราก็จะเห็นรูปที่เราทำการอัพขึ้นไป หากต้องการแบบดังรูปบนสุดให้เพิ่มรูปที่สองขึ้นไปแล้วกำหนดช่องหมวดหมู่เป็นอันเดียวกับรูปแรก เช่นของผมจะกำหนดรูปแรกอยู่ในหมวดหมู่ CPU รูปสองก็กำหนดให้อยู่ในหมวดหมู่ CPU ด้วยเช่นกัน การทำแบบนี้จะทำให้รูปที่แสดงออกมาเป็นแบบสไลด์ มี thumbnail แล้วกดเพื่อดูรูปใหญ่ได้ แนะนำผมว่าถ้าใส่เป็นรูปตัวสินค้าเลยก็จะดีมากทำให้ลูกค้าที่กดเข้ามารู้ได้ทันทีว่าเข้ามาดูถูกหมวดแล้วนะ จะได้ไม่ต้องหนีไปไหนอีก ^ ^]]></description> <content:encoded><![CDATA[<p><a
href="http://killthewhat.com/wp-content/uploads/2009/10/prestashop.png" rel="lightbox[4676]"><img
src="http://killthewhat.com/wp-content/uploads/2009/10/prestashop.png" alt="prestashop" title="prestashop" width="630" height="282" class="aligncenter size-full wp-image-4677" /></a><br
/> Image mapping เป็นเมนูที่ให้เราสามารถใส่ภาพประกอบใน category ได้ดังรูปบน โดยถ้าเรากำหนดหลายๆรูปลงไป รูปแบบจะออกมาเป็นแบบสไลด์ ประโยชน์ก็คือเพิ่มคำอธิบายที่เป็นรูปภาพเข้าไปด้วยเพื่อให้ลูกค้าเราเข้าใจมากว่าขึ้นว่าหมวดหมู่นี้คืออะไร<span
id="more-4676"></span> ให้เราไปที่หน้า admin ของ prestashop จากนั้นไปที่เมนู Catalog >> Image mapping แล้วกด เพิ่มใหม่<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/prestashop1.png" alt="prestashop" title="prestashop" width="630" height="285" class="aligncenter size-full wp-image-4678" /></p><p>กำหนดชื่อจากนั้นทำการอัพโหลดรูปที่ต้องการลงไป<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/prestashop2.png" alt="prestashop" title="prestashop" width="630" height="380" class="aligncenter size-full wp-image-4681" /></p><p>จากนั้นมันจะกลับมาหน้าเดิมให้เราคลิกเข้าไปที่เราสร้างไว้เพื่อทำการแก้ไข<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/screenshot_001.png" alt="prestashop" title="prestashop" width="444" height="346" class="aligncenter size-full wp-image-4682" /></p><p>เราจะเห็นรูปที่เราอัพโหลดขึ้นมา จากนั้นทำการติ้กช่องหมวดหมู่ที่เราต้องการให้แสดงออกมา แล้วทำการบันทึกซะ<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/10/prestashop3.png" alt="prestashop" title="prestashop" width="630" height="419" class="aligncenter size-full wp-image-4683" /></p><p>แล้วลองกลับไปดูที่หน้าแรกคลิกที่หมวดหมู่ของเราก็จะเห็นรูปที่เราทำการอัพขึ้นไป หากต้องการแบบดังรูปบนสุดให้เพิ่มรูปที่สองขึ้นไปแล้วกำหนดช่องหมวดหมู่เป็นอันเดียวกับรูปแรก เช่นของผมจะกำหนดรูปแรกอยู่ในหมวดหมู่ CPU รูปสองก็กำหนดให้อยู่ในหมวดหมู่ CPU ด้วยเช่นกัน การทำแบบนี้จะทำให้รูปที่แสดงออกมาเป็นแบบสไลด์ มี thumbnail แล้วกดเพื่อดูรูปใหญ่ได้</p><p>แนะนำผมว่าถ้าใส่เป็นรูปตัวสินค้าเลยก็จะดีมากทำให้ลูกค้าที่กดเข้ามารู้ได้ทันทีว่าเข้ามาดูถูกหมวดแล้วนะ จะได้ไม่ต้องหนีไปไหนอีก ^ ^</p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/prestashop-tutorials/image-mapping-%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%a5%e0%b8%b9%e0%b8%81%e0%b9%80%e0%b8%a5%e0%b9%88%e0%b8%99%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%81%e0%b8%b1/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Module : Random Image สุ่มรูปภาพบน joomla</title><link>http://killthewhat.com/joomla-tutorial/module-random-image-%e0%b8%aa%e0%b8%b8%e0%b9%88%e0%b8%a1%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%9a%e0%b8%99-joomla/</link> <comments>http://killthewhat.com/joomla-tutorial/module-random-image-%e0%b8%aa%e0%b8%b8%e0%b9%88%e0%b8%a1%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%9a%e0%b8%99-joomla/#comments</comments> <pubDate>Thu, 06 Aug 2009 17:09:34 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[gif]]></category> <category><![CDATA[image]]></category> <category><![CDATA[jpg]]></category> <category><![CDATA[module]]></category> <category><![CDATA[png]]></category> <category><![CDATA[random]]></category> <category><![CDATA[รูปภาพ]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=4185</guid> <description><![CDATA[Ramdom Image เป็น module ที่จะแสดงผลรูปภาพจากโฟลเดอร์ที่กำหนดขึ้นมาบนเว็บไซต์ ถ้ามีรูปภาพในโฟลเดอร์นั้นมากกว่า 1 รูปก็จะสุ่มเลือกรูปภาพขึ้นมาแสดงไปเรื่อยๆ พร้อมทั้งยังสามารถกำหนดลิงค์สำหรับคลิกไปยังเป้าหมายได้อีกด้วย โดยให้เราทำการเข้าไปที่ admin ของเว็บไซต์เราจากนั้นไปที่ Media Manager จะพบกับระบบจัดการไฟล์ของ joomla ให้คลิกที่โฟลเดอร์ stories ให้ทำการสร้างโฟลเดอร์ชื่อว่า slide ในโฟลเดอร์ images/stories ทำการ browse ไฟล์รูปเพื่อทำการอัพโหลดขึ้นไป จากนั้นให้เราไปที่เมนู Extensions >> Module Manager แล้วค้นหา Random Image จากนั้นคลิกเข้าไปเพื่อทำการตั้งค่า ตั้งค่าต่างๆแล้วกด Save กำหนดหัวข้อของ module ปรับให้โชว์หัวข้อหรือไม่ เลือก yes เพื่อเปิดการใช้งาน เลือกตำแหน่งการจัดวางในหน้าเว็บไซต์ กำหนดชนิดของรูปภาพ เช่น jpg , png , gif กำหนดโฟลเดอร์เก็บรูปภาพที่ต้องการนำแสดง กำหนดลิงค์เมื่อผู้ชมเว็บไซต์คลิกบนรูป กำหนดขนาดความกว้าง หน่วยเป็นพิกเซล กำหนดขนาดความสูง [...]]]></description> <content:encoded><![CDATA[<p>Ramdom Image เป็น module ที่จะแสดงผลรูปภาพจากโฟลเดอร์ที่กำหนดขึ้นมาบนเว็บไซต์ ถ้ามีรูปภาพในโฟลเดอร์นั้นมากกว่า 1 รูปก็จะสุ่มเลือกรูปภาพขึ้นมาแสดงไปเรื่อยๆ พร้อมทั้งยังสามารถกำหนดลิงค์สำหรับคลิกไปยังเป้าหมายได้อีกด้วย<span
id="more-4185"></span> โดยให้เราทำการเข้าไปที่ admin ของเว็บไซต์เราจากนั้นไปที่ Media Manager<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/08/joomla11.png" alt="joomla" title="joomla" width="630" height="296" class="aligncenter size-full wp-image-4186" /></p><p>จะพบกับระบบจัดการไฟล์ของ joomla ให้คลิกที่โฟลเดอร์ stories<br
/> <a
href="http://killthewhat.com/wp-content/uploads/2009/08/joomla12.png" rel="lightbox[4185]"><img
src="http://killthewhat.com/wp-content/uploads/2009/08/joomla12.png" alt="joomla" title="joomla" width="630" height="250" class="aligncenter size-full wp-image-4187" /></a></p><p>ให้ทำการสร้างโฟลเดอร์ชื่อว่า slide ในโฟลเดอร์ images/stories<br
/> <a
href="http://killthewhat.com/wp-content/uploads/2009/08/joomla13.png" rel="lightbox[4185]"><img
src="http://killthewhat.com/wp-content/uploads/2009/08/joomla13.png" alt="joomla" title="joomla" width="630" height="222" class="aligncenter size-full wp-image-4188" /></a></p><p>ทำการ browse ไฟล์รูปเพื่อทำการอัพโหลดขึ้นไป<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/08/joomla14.png" alt="joomla" title="joomla" width="630" height="446" class="aligncenter size-full wp-image-4189" /></p><p>จากนั้นให้เราไปที่เมนู Extensions >> Module Manager แล้วค้นหา Random Image จากนั้นคลิกเข้าไปเพื่อทำการตั้งค่า<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/08/joomla151.png" alt="joomla15" title="joomla15" width="630" height="338" class="aligncenter size-full wp-image-4214" /></p><p>ตั้งค่าต่างๆแล้วกด Save<br
/> <a
href="http://killthewhat.com/wp-content/uploads/2009/08/joomla16.png" rel="lightbox[4185]"><img
src="http://killthewhat.com/wp-content/uploads/2009/08/joomla16.png" alt="joomla" title="joomla" width="630" height="193" class="aligncenter size-full wp-image-4191" /></a></p><ol><li>กำหนดหัวข้อของ module</li><li>ปรับให้โชว์หัวข้อหรือไม่</li><li>เลือก yes เพื่อเปิดการใช้งาน</li><li>เลือกตำแหน่งการจัดวางในหน้าเว็บไซต์</li><li>กำหนดชนิดของรูปภาพ เช่น jpg , png , gif</li><li>กำหนดโฟลเดอร์เก็บรูปภาพที่ต้องการนำแสดง</li><li>กำหนดลิงค์เมื่อผู้ชมเว็บไซต์คลิกบนรูป</li><li>กำหนดขนาดความกว้าง หน่วยเป็นพิกเซล</li><li>กำหนดขนาดความสูง หน่วยเป็นพิกเซล</li></ol><p>จากนั้นเราก็จะได้รูปภาพมาแสดงบนเว็บไซต์เราแล้วครับ<br
/> <a
href="http://killthewhat.com/wp-content/uploads/2009/08/screenshot_0011.png" rel="lightbox[4185]"><img
src="http://killthewhat.com/wp-content/uploads/2009/08/screenshot_0011.png" alt="screenshot_001" title="screenshot_001" width="630" height="283" class="aligncenter size-full wp-image-4194" /></a><br
/> <a
href="http://killthewhat.com/wp-content/uploads/2009/08/screenshot_0022.png" rel="lightbox[4185]"><img
src="http://killthewhat.com/wp-content/uploads/2009/08/screenshot_0022.png" alt="screenshot_002" title="screenshot_002" width="630" height="277" class="aligncenter size-full wp-image-4195" /></a></p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/joomla-tutorial/module-random-image-%e0%b8%aa%e0%b8%b8%e0%b9%88%e0%b8%a1%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%9a%e0%b8%99-joomla/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Plugin : mavik Thumbnails ขยายรูปแบบ lightbox ใน joomla</title><link>http://killthewhat.com/joomla-tutorial/plugin-mavik-thumbnails-%e0%b8%82%e0%b8%a2%e0%b8%b2%e0%b8%a2%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%81%e0%b8%9a%e0%b8%9a-lightbox-%e0%b9%83%e0%b8%99-joomla/</link> <comments>http://killthewhat.com/joomla-tutorial/plugin-mavik-thumbnails-%e0%b8%82%e0%b8%a2%e0%b8%b2%e0%b8%a2%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%81%e0%b8%9a%e0%b8%9a-lightbox-%e0%b9%83%e0%b8%99-joomla/#comments</comments> <pubDate>Fri, 05 Jun 2009 18:43:10 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[image]]></category> <category><![CDATA[java]]></category> <category><![CDATA[lightbox]]></category> <category><![CDATA[mavik]]></category> <category><![CDATA[picture]]></category> <category><![CDATA[thumbnail]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=2155</guid> <description><![CDATA[plugin mavik thumbnails เป็น plugin รูปแบบเดียวกับ lightbox2 ของทาง wordpress ครับ สามารถขยายรูปภาพได้เลยโดยไม่ต้องเปลี่ยนหน้า โดยใช้ java ในการแสดงผล ตัวอย่างก็แบบเว็บนี้ละครับ killthewhat ลองกดที่รูปแล้วจะรู้เอง ให้ทำการดาวโหลดและติดตั้งเข้าไปที่ joomla ของเราจากนั้นไปที่ extensions >> plugin manager จากนั้นหา plugin mavik Thumbnails แล้วคลิกเข้าไป เลือก enable เพื่อเปิดการใช้งาน จากนั้นปรับแต่งตามภาพแล้วกด Save เรามาดูวิธีใช้งานกันครับ ให้ทำการใส่รูปลงในบทความเอาใหญ่ๆหน่อย จากนั้นย่อให้เล็กลงมา แล้วทำการ save Link : http://extensions.joomla.org/extensions/6263/details]]></description> <content:encoded><![CDATA[<p><a
href="http://extensions.joomla.org/extensions/6263/details">plugin mavik thumbnails</a> เป็น plugin รูปแบบเดียวกับ <a
href="http://killthewhat.com/wordpress/plugin-lightbox-2/">lightbox2</a> ของทาง wordpress ครับ สามารถขยายรูปภาพได้เลยโดยไม่ต้องเปลี่ยนหน้า โดยใช้ java ในการแสดงผล ตัวอย่างก็แบบเว็บนี้ละครับ killthewhat ลองกดที่รูปแล้วจะรู้เอง<br
/> <span
id="more-2155"></span><br
/> ให้ทำการดาวโหลดและติดตั้งเข้าไปที่ joomla ของเราจากนั้นไปที่ extensions >> plugin manager จากนั้นหา plugin mavik Thumbnails แล้วคลิกเข้าไป<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/06/mavik.png" alt="mavik" title="mavik" width="605" height="227" class="aligncenter size-full wp-image-2157" /></p><p>เลือก enable เพื่อเปิดการใช้งาน จากนั้นปรับแต่งตามภาพแล้วกด Save<br
/> <a
href="http://killthewhat.com/wp-content/uploads/2009/06/mavik1.png" rel="lightbox[2155]"><img
src="http://killthewhat.com/wp-content/uploads/2009/06/mavik1.png" alt="mavik1" title="mavik1" width="630" height="224" class="aligncenter size-full wp-image-2158" /></a></p><p>เรามาดูวิธีใช้งานกันครับ ให้ทำการใส่รูปลงในบทความเอาใหญ่ๆหน่อย จากนั้นย่อให้เล็กลงมา แล้วทำการ save<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/06/howhost_002.png" alt="howhost_002" title="howhost_002" width="630" height="348" class="aligncenter size-full wp-image-2164" /><br
/> <a
href="http://killthewhat.com/wp-content/uploads/2009/06/mavik3.png" rel="lightbox[2155]"><img
src="http://killthewhat.com/wp-content/uploads/2009/06/mavik3.png" alt="mavik3" title="mavik3" width="630" height="348" class="aligncenter size-full wp-image-2161" /></a></p><p>Link : http://extensions.joomla.org/extensions/6263/details</p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/joomla-tutorial/plugin-mavik-thumbnails-%e0%b8%82%e0%b8%a2%e0%b8%b2%e0%b8%a2%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%81%e0%b8%9a%e0%b8%9a-lightbox-%e0%b9%83%e0%b8%99-joomla/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>วิธีปิด Thumbnails รูปภาพของ wordpress เพื่อประหยัดเนื้อที่บน host เรา</title><link>http://killthewhat.com/wordpress-tutorials/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%9b%e0%b8%b4%e0%b8%94-thumbnails-%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%82%e0%b8%ad%e0%b8%87-wordpress-%e0%b9%80%e0%b8%9e%e0%b8%b7/</link> <comments>http://killthewhat.com/wordpress-tutorials/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%9b%e0%b8%b4%e0%b8%94-thumbnails-%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%82%e0%b8%ad%e0%b8%87-wordpress-%e0%b9%80%e0%b8%9e%e0%b8%b7/#comments</comments> <pubDate>Fri, 05 Jun 2009 07:12:13 +0000</pubDate> <dc:creator>snappy</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[image]]></category> <category><![CDATA[picture]]></category> <category><![CDATA[resize]]></category> <category><![CDATA[size]]></category> <category><![CDATA[thumbnail]]></category> <category><![CDATA[tips]]></category><guid
isPermaLink="false">http://killthewhat.com/?p=2147</guid> <description><![CDATA[เมื่อมีการ upload ภาพขึ้น wordpress นั้นโดยปกติแล้ว wordpress จะทำการจัดการสร้างไฟล์รูปภาพใหม่ขึ้นมาเพิ่มอีก 2 รูปจากรูปเดิมที่เราอัฟขึ้นไปเพื่อทำเป็น thumbnails ฉะนั้นเวลาเราอัฟรูปขึ้นไป 1 รูปก็เท่ากับว่าเราจะได้รูปภาพมา 3 รูป และเราก็คงใช้รูปเดียวใส่ลงในบทความเรา แล้วถ้าเราอัฟรูปขึ้นไปสัก 100 รูป ก็เท่ากับเราจะได้ไฟล์ภาพ 300 รูป และจะได้รูปที่ไม่ได้ใช้งานถูกวางทิ้งไว้เฉยๆ 200 รูป สมมติไฟล์รูปภาพขนาด 10kb ทั้งหมด 300 รูป ขนาดทั้งหมดที่กินเนื้อที่เราไปก็ 3000 kb ประมาณ 3mb คิดดูน่ะครับ 3mb และจะได้ไฟล์รูปภาพขยะที่เราไม่ได้เรียกใช้งาน 2mb อาจจะเล็กน้อย แต่ถ้านานๆไปมันไม่น้อยน่ะครับ ฉะนั้นผมเลยคิดว่าให้ทำการปิด thumbnails ก็ดีครับสำหรับเว็บ wordpress ที่มีเนื้อหาเป็นรูปภาพซะส่วนใหญ่แบบ killthewhat ของเรา โดยให้เราไปตั้งค่าที่ Settings > Media ทำการลบออกให้หมดครับ จากนั้นกด save [...]]]></description> <content:encoded><![CDATA[<p>เมื่อมีการ upload ภาพขึ้น wordpress นั้นโดยปกติแล้ว wordpress จะทำการจัดการสร้างไฟล์รูปภาพใหม่ขึ้นมาเพิ่มอีก 2 รูปจากรูปเดิมที่เราอัฟขึ้นไปเพื่อทำเป็น thumbnails ฉะนั้นเวลาเราอัฟรูปขึ้นไป 1 รูปก็เท่ากับว่าเราจะได้รูปภาพมา 3 รูป และเราก็คงใช้รูปเดียวใส่ลงในบทความเรา <span
id="more-2147"></span>แล้วถ้าเราอัฟรูปขึ้นไปสัก 100 รูป ก็เท่ากับเราจะได้ไฟล์ภาพ 300 รูป และจะได้รูปที่ไม่ได้ใช้งานถูกวางทิ้งไว้เฉยๆ 200 รูป สมมติไฟล์รูปภาพขนาด 10kb ทั้งหมด 300 รูป ขนาดทั้งหมดที่กินเนื้อที่เราไปก็ 3000 kb ประมาณ 3mb คิดดูน่ะครับ 3mb และจะได้ไฟล์รูปภาพขยะที่เราไม่ได้เรียกใช้งาน 2mb อาจจะเล็กน้อย แต่ถ้านานๆไปมันไม่น้อยน่ะครับ ฉะนั้นผมเลยคิดว่าให้ทำการปิด thumbnails ก็ดีครับสำหรับเว็บ wordpress ที่มีเนื้อหาเป็นรูปภาพซะส่วนใหญ่แบบ killthewhat ของเรา</p><p>โดยให้เราไปตั้งค่าที่ Settings > Media<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/06/thumbnail.png" alt="thumbnail" title="thumbnail" width="158" height="260" class="aligncenter size-full wp-image-2148" /><br
/> ทำการลบออกให้หมดครับ จากนั้นกด save changes เป็นอันเสร็จ&#8230;<br
/> <img
src="http://killthewhat.com/wp-content/uploads/2009/06/howhost_0015.png" alt="howhost_0015" title="howhost_0015" width="630" height="297" class="aligncenter size-full wp-image-2149" /></p><p>ปล.แนะนำถ้าเว็บใครมีต้องใช้รูปภาพเยอะๆในการนำเสนอบทความให้ใช้ <a
href="http://killthewhat.com/wordpress/plugin-imax-width/">plugin iMax Width</a> ช่วยครับ</p> ]]></content:encoded> <wfw:commentRss>http://killthewhat.com/wordpress-tutorials/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%9b%e0%b8%b4%e0%b8%94-thumbnails-%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%82%e0%b8%ad%e0%b8%87-wordpress-%e0%b9%80%e0%b8%9e%e0%b8%b7/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 56/99 queries in 0.042 seconds using disk

Served from: killthewhat.com @ 2012-02-08 18:23:27 -->
