Tuesday 12 April 2011

Add facebook like in posts.


Example

First step :
Design -> Edit HTML-> in the Expand Widget Template box, tick the small tick box , then use Ctrl + F to find the following code
设计->修改 HTML-> 在扩展窗口小部件模板的小格子打勾, 然后用Ctrl+F寻找以下的code

<div class='post-header-line-1'/> 

If you can not find <div class='post-header-line-1'/>, then find this following code
如果找不到<div class='post-header-line-1'/>,就找以下这一行

<data:post.body/>

Step Two:
Copy the code below then paste it after the first code.
把以下的code放在步骤一的语法之后。

<iframe allowTransparency='true' expr:src='&quot;http://www.facebook.com/plugins/like.php?href=&quot; + data:post.url + &quot;&amp;layout=standard&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=arial&amp;colorscheme=light&quot;' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:450px; height:40px;'/>

Red part changes the wording to be displayed. 
红色部分为可更改所要显示的字眼。
Green part change of the font style.
青色部分为可更改的字体。
Blue part controls your button color theme, and you have three options, light, evil, or dark.
蓝色部分控制您的按钮的颜色主题,你有三个选择,light,evil,dark。

Click 【Preview】 to see the effect.
按【预览】查看效果。


Don't forget to save.
不要忘了保存模板。


from : Celestine

No comments: