這是在「夢行者的夢想天空」的「WordPress中加入Facebook、Plurk、Twitter、FunP快速推文按鈕」文章學到的,也就是在文章中加入Facebook、Plurk、Twitter及FunP快速推文的按鈕,其實有外掛可以直接使用,但外掛裝多了總是會拖累Wordpress的速度,所以本文是教你如何修改 single.php 達到快速推文目的。
找到使用佈景主題的 single.php,在 <?php the_category(‘, ‘) ?> 之後加入以下的代碼:
<h2 align="right"> <iframe src="http://funp.com/tools/buttoniframe.php?s=21" height="16" width="66" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe> <a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http://你網誌的網址/?p=<?php the_ID(); ?>"><img title="分享到臉書!" src="http://arisa520.myweb.hinet.net/facebook.png" /></a> <a rel="nofollow" target="_blank" href="http://plurk.com/?qualifier=shares&status=[分享] http:%2F%2F你網誌的網址/?p=<?php the_ID(); ?> (<?php the_title(); ?>)"><img title="分享到噗浪!" src="http://arisa520.myweb.hinet.net/plurk.png" /></a> <a rel="nofollow" target="_blank" href="http://twitter.com/home?status=[推薦] <?php the_title(); ?> http://你網誌的網址/?p=<?php the_ID(); ?>"<img title="分享到推特!" src="http://arisa520.myweb.hinet.net/twitter.png" /></a> </h2>
記得要將上面「你網誌的網址」改成自己的網址,這樣就可以嚕,至於推文按鈕可以到 http://sofree.tw/thread-3842-1-1.html 及 http://sofree.tw/thread-4206-1-1.html 下載,而推文按鈕的擺放位置,原木是放在文章的右上角,這可依你使用的佈景主題而自行調整版面。
~ That’s all ~
















您好:想請問一下,我可以跟您索取F2cont的 高亮代碼插件 Syntax Highlighter Plugin 可以嗎??
因為到您的舊BLOG,要登入才可以下載,可是我並沒有會員資格XDD
如有打擾,在此跟您所聲抱歉…
晚上好,請到這邊下載
http://beau.tw/dphighlighter.7z
早上好,應該下載回去了吧,今晚我會將檔案刪除了喔。
可以刪除了…..非常感謝您^^