Copyright © 2010 kenjioh.com. Silver theme by c.bavota & Juan Gordillo. Powered by WordPress.
Posts Tagged ‘wordpress’
How to set your avatar on your Wordpress blog
This entry is to note for myself. It’s a little complicated for me to set my avatar image on my wordpress blog. When I used former version of wordpress(maybe 2.3 ) there was an avatar-related option on wordpress preference page, I think. However, I couldn’t find any option regarding avatar on wordpress 2.8 preference page.
To set your avatar on your wordpress(2.8),
They link up your email addresses with your avatar image. Once you finish the process, your avatar will be displayed on not only your wordpress blog but also any pages which accept Gravatar.
Strangely, I couldn’t remember that I’ve already signed in Gravatar, completely…, but I’ve done. When did I sign in it…. :S
Continue Reading »WP to Twitterでの文字化けに対応
Wordpressの記事投稿をTwitterでつぶやく為のプラグインは沢山あります。ただ、どれを使っても日本語が文字化けしちゃってたんですよね。コードいじるのが面倒だったので、「プラグインの問題なんだ。同じ機能の別のプラグインを試してみよう」と逃げていたのですが、問題ないのが見つからなかったので直接プラグインを編集しました。
このブログったら、EUC-JPなんですよ。UTF-8にしておけばいいのに、随分昔にEUC-JPで作ったまま移行するときとかも色々面倒で結局EUC-JPのままなんです。恐らくUTF-8で運用している人にはこの文字化け問題は発生してないんじゃないかな。Wordpressのプラグインの中にはマルチバイトを想定していなかったり、UTF-8しか想定されていなかったりするものも数多くあるようで、試したTwitter用プラグインは全てアウトだった訳です。
人気度と機能でWP to Twitterを選びました。文字化けへの対応はいたって簡単。wp-to-twitter.phpのjd_doTwitterAPIPostファンクション内にある
$twit = urldecode($twit);
っていうURLデコードしてる行の下に
$twit = mb_convert_encoding($twit, “UTF-8″);
と追加しました。以上。同じく面倒くさがりな方で文字化けに悩んでいる人が、プラグインを色々試すよりも1行足した方が手っ取り早いやと気づく為の記事になればいいかなと。
Continue Reading »How to add Google Friend Connect social bar
I just added google friend connect social bar to all the pages in kenjioh.com. You can find it on the bottom of the pages. The most entries I’m blogging here are kind of personal, so there would be very few people becoming a member of this site using GFC…. but if no one become a member of this site I might feel sad :p
Maybe I should make my entries meaningful. I will try.
Well, in this entry. I’m going to explain what I did to add GFC social bar.
If you use GFC, you can add powerful social function to your site. However, as I mentioned, no one joining your site might make you feel sad… like me
please PLEEEEAAAAAAASE BECOM A MEMBER OF KENJIOH.COM. might mean nothing other than my pleasure,tho. lol
Continue Reading »



