<?php xml version="1.0" encoding="UTF-8"?> 
<rss version="2.0">
<channel>
<title><![CDATA[烏日小孩]]></title>
<link>http://nnickk.com/blog/</link>
<description><![CDATA[nnickk-blog]]></description>
<language>utf-8</language>
<copyright><![CDATA[CopyRight 2008 F2Blog.com|F2Cont.com All Rights Reserved.]]></copyright>
<webMaster><![CDATA[nnickk@gmail.com]]></webMaster>
<generator>F2blog .cont 1.0 build 11.30</generator> 
<image>
	<title>烏日小孩</title> 
	<url>http://nnickk.com/blog/attachments/</url> 
	<link>http://nnickk.com/blog/</link> 
	<description>烏日小孩</description> 
</image>
<item>
	<link>http://nnickk.com/blog/rewrite.php/read-849.html</link>
	<title><![CDATA[在F2blog增加『Facebook的讚』]]></title>
	<author>nnickk</author>
	<category><![CDATA[F2Blog]]></category>
	<pubDate>2010-05-10 23:44</pubDate>
	<guid>http://nnickk.com/blog/rewrite.php/read-849.html</guid>	
	<description><![CDATA[<div>好久沒有在我的blog做程式上的異動了，</div><div>最近Facebook剛公布一些新的應用方式，</div><div>未來可能會用在客戶的網站上，</div><div>所以就先拿我的blog來測試了。</div><div><!--more--><br /><br />&nbsp;</div><div>這次主要就是增加『<span style="color: rgb(255, 102, 0); ">Facebook的讚</span>』按鈕，</div><div>如果你的blog是使用F2blog，</div><div>你可以尋找這兩個檔案</div><div>首頁</div><div>/include/content.inc.php</div><div>文章頁</div><div>/include/read.inc.php</div><div>請先將檔案備份一份，以防萬一。</div><div>&nbsp;</div><div>首先開啟『<span style="color: rgb(255, 0, 0); ">content.inc.php</span>』進行編輯</div><div>尋找</div><div>『<span style="color: rgb(51, 102, 255); ">&lt;div class=&quot;Content-body&quot; id=&quot;logcontent_&lt;?php echo $fa[&#39;id&#39;]?&gt;&quot; style=&quot;table-layout: fixed;&quot;&gt;</span>』</div><div>在這一行下面插入這一段語法</div><div><span style="color: rgb(51, 102, 255); ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--Facebook--&gt;</span></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: rgb(51, 102, 255); ">&lt;a name=&quot;fb_share&quot; type=&quot;box_count&quot; share_url=&quot;&lt;?php echo $settingInfo[&#39;blogUrl&#39;].$readlogs_url.$fa[&#39;id&#39;].$settingInfo[&#39;stype&#39;]?&gt;&quot;&gt; 分享到塗鴉牆 &lt;/a&gt;</span>　</div><div><span style="color: rgb(51, 102, 255); "><span class="Apple-tab-span" style="white-space: pre; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=&lt;?php echo $settingInfo[&#39;blogUrl&#39;].$readlogs_url.$fa[&#39;id&#39;].$settingInfo[&#39;stype&#39;]?&gt;&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=450&amp;amp;action=like&amp;amp;font=verdana&amp;amp;colorscheme=light&amp;amp;height=80&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:450px; height:80px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt; &nbsp; &nbsp; &nbsp; &nbsp;</span></div><div><span style="color: rgb(51, 102, 255); ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--/Facebook--&gt;</span></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: rgb(51, 102, 255); ">&lt;br /&gt;<br /></span>並於頁面最後貼上這一串語法<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: rgb(51, 102, 255); ">&lt;script src=&quot;http://static.ak.fbcdn.net/connect.php/js/FB.Share&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</span></div><div>儲存後關閉</div><div>&nbsp;</div><div>接著開啟『<span style="color: rgb(255, 0, 0); ">read.inc.php</span>』進行編輯</div><div>尋找</div><div>『<span style="color: rgb(51, 102, 255); ">&lt;div class=&quot;Content-body&quot; id=&quot;logcontent_&lt;?php echo $fa[&#39;id&#39;]?&gt;&quot; style=&quot;table-layout: fixed;&quot;&gt;</span>』</div><div>在這一行下面插入這一段語法</div><div><span style="color: rgb(51, 102, 255); ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--Facebook--&gt;</span></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: rgb(51, 102, 255); ">&lt;a name=&quot;fb_share&quot; type=&quot;box_count&quot; href=&quot;http://www.facebook.com/sharer.php&quot;&gt; 分享到塗鴉牆 &lt;/a&gt;　</span></div><div><span style="color: rgb(51, 102, 255); "><span class="Apple-tab-span" style="white-space: pre; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&lt;script src=&quot;http://static.ak.fbcdn.net/connect.php/js/FB.Share&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</span></div><div><span style="color: rgb(51, 102, 255); "><span class="Apple-tab-span" style="white-space: pre; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=&lt;?php echo $settingInfo[&#39;blogUrl&#39;].$gourl.$settingInfo[&#39;stype&#39;]?&gt;&amp;amp;layout=standard&amp;amp;show_faces=true&amp;amp;width=450&amp;amp;action=like&amp;amp;font=verdana&amp;amp;colorscheme=light&amp;amp;height=80&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:450px; height:80px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt; &nbsp; &nbsp; &nbsp; &nbsp;</span></div><div><span style="color: rgb(51, 102, 255); ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--/Facebook--&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;br&gt;</span></div><div>儲存後關閉</div><div>&nbsp;</div><div>OK</div><div>到此，最複雜的步驟已經結束了，</div><div>最後，</div><div>你只需把那兩個檔案上傳主機覆蓋，</div><div>趕快到你的blog看看『<span style="color: rgb(255, 102, 0); ">Facebook的讚</span>』，</div><div>應該已經等著你按了。<br />&nbsp;</div>]]></description>
</item>
<item>
	<link>http://nnickk.com/blog/rewrite.php/read-637.html</link>
	<title><![CDATA[F2Blog V1.2--部落格上的這一天、歷史上的這一天、歷史上的今天]]></title>
	<author>nnickk</author>
	<category><![CDATA[F2Blog]]></category>
	<pubDate>2007-10-16 00:54</pubDate>
	<guid>http://nnickk.com/blog/rewrite.php/read-637.html</guid>	
	<description><![CDATA[<p><img alt="" src="http://blog.nnickk.com/http://nnickk.com/blog/attachments/200710/8238310174.jpg" /></p> <p><font size="\&quot;\\&quot;\\\\&quot;2\\\\&quot;\\&quot;\&quot;">修改</font><span style="color: rgb(255, 0, 0); "><font size="\&quot;\\&quot;\\\\&quot;2\\\\&quot;\\&quot;\&quot;">include/read.inc.php</font></span></p> <p><font size="\&quot;\\&quot;\\\\&quot;2\\\\&quot;\\&quot;\&quot;">如果你之前沒有修改過read.inc.php<br /> 直接在第263行的位置插入以下程式碼。</font></p> <p><!--more--></p> <p><br /> <font color="\&quot;\\&quot;\\\\&quot;#339966\\\\&quot;\\&quot;\&quot;">&nbsp;&nbsp;</font><span style="color: rgb(0, 128, 128); ">&lt;?php<br /> &nbsp;&nbsp;//部落格上的這一天 by nnickk<br /> &nbsp;&nbsp;&nbsp;$nk_HistoryDay_sql=&quot;select * from &quot;.$DBPrefix.&quot;logs where month(FROM_UNIXTIME(postTime))=\&#39;&quot;.format_time(\&#39;m\&#39;,$fa[\&#39;postTime\&#39;]).&quot;\&#39; and DAYOFMONTH(FROM_UNIXTIME(postTime))=\&#39;&quot;.format_time(\&#39;d\&#39;,$fa[\&#39;postTime\&#39;]).&quot;\&#39; and saveType=\&#39;1\&#39; and id!=\&#39;$id\&#39; order by postTime desc&quot;;<br /> &nbsp;&nbsp;&nbsp;$nk_HistoryDay_result=$DMC-&gt;query($nk_HistoryDay_sql);<br /> &nbsp;&nbsp;&nbsp;$nk_HistoryDay_nums=$DMC-&gt;numRows($nk_HistoryDay_result);<br /> &nbsp;&nbsp;&nbsp;if ($nk_HistoryDay_nums&gt;0) {<br /> &nbsp;&nbsp;?&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;div class=&quot;comment&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&lt;div class=&quot;commenttop&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&lt;img src=&quot;images/tag.gif&quot; alt=&quot;&quot; style=&quot;margin:0px 4px -3px 0px&quot;/&gt;&lt;strong&gt;部落格上的這一天&lt;/strong&gt;<br /> &nbsp;&nbsp;&nbsp;&lt;/div&gt;<br /> &nbsp;&nbsp;&nbsp;&lt;div class=&quot;commentcontent&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&lt;?php&nbsp; while($nk_HistoryDayfa = $DMC-&gt;fetchArray($nk_HistoryDay_result)){ ?&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;&lt;?php echo $relurl.$nk_HistoryDayfa[\&#39;id\&#39;].$settingInfo[\&#39;stype\&#39;]?&gt;&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&lt;?php echo $nk_HistoryDayfa[\&#39;logTitle\&#39;]?&gt; (&lt;?php echo format_time($settingInfo[\&#39;currFormatDate\&#39;],$nk_HistoryDayfa[\&#39;postTime\&#39;])?&gt;)&lt;/a&gt;&nbsp; &lt;br /&gt;<br /> &nbsp;&nbsp;&nbsp;&lt;?php&nbsp; } ?&gt;<br /> &nbsp;&nbsp;&nbsp;&lt;/div&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br /> &nbsp;&nbsp;&lt;?php<br /> &nbsp;&nbsp;}<br /> &nbsp;&nbsp;//部落格上的這一天 by nnickk<br /> &nbsp;&nbsp;?&gt;</span></p> <p><br /> <font size="\&quot;\\&quot;\\\\&quot;2\\\\&quot;\\&quot;\&quot;">若你之前修改過read.inc.php檔，<br /> 則找檔案倒數四行，是否為</font></p> <p><br /> <span style="color: rgb(0, 128, 128); ">&nbsp;&lt;/div&gt;<br /> &nbsp;&lt;a name=&quot;comm_top&quot; href=&quot;comm_top&quot; accesskey=&quot;C&quot;&gt;&lt;/a&gt;<br /> &nbsp;&lt;?php include(&quot;replylogs.inc.php&quot;)?&gt;<br /> &lt;?php&nbsp; } ?&gt;</span><br /> &nbsp;</p> <p><br /> <font size="\&quot;\\&quot;\\\\&quot;2\\\\&quot;\\&quot;\&quot;">如果是，則在這四行之前插入程式碼。</font></p> <p><font size="\&quot;\\&quot;\\\\&quot;2\\\\&quot;\\&quot;\&quot;">如果不是那就提出來詢問吧！</font></p> <p><font size="\&quot;\\&quot;\\\\&quot;2\\\\&quot;\\&quot;\&quot;">顯示範例請見：<br /><a target="_blank" href="http://blog.nnickk.com/rewrite.php/read-619.html">http://blog.nnickk.com/rewrite.php/read-619.html</a><br /><a target="\&quot;\\&quot;\\\\&quot;_blank\\\\&quot;\\&quot;\&quot;" href="\&quot;\\&quot;http://blog.nnickk.com/%22http://blog.nnickk.com/read-181.html/%22\\&quot;\&quot;"><a target="_blank" href="http://blog.nnickk.com/rewrite.php/read-181.html">http://blog.nnickk.com/rewrite.php/read-181.html</a></a></font></p>&nbsp;]]></description>
</item>
</channel>
</rss>