每篇文章嵌入FB讚好功能
發表於 : 2011-12-18 , 16:16
若要將論壇每篇文章嵌入FB讚好功能,則可參考此篇文章修改。
http://www.phpbb.com/community/viewtopi ... #p12794515
http://phpbb-tw.net/phpbb/viewtopic.php ... ok#p275802
http://www.phpbb.com/community/viewtopi ... #p12794515
http://phpbb-tw.net/phpbb/viewtopic.php ... ok#p275802
wang5555 寫:
--OPEN--
styles/prosilver/template/viewtopic_body.html
--FIND----AFTER ADD--代碼: 選擇全部
<h3 <!-- IF postrow.S_FIRST_ROW -->class="first"<!-- ENDIF -->><!-- IF postrow.POST_ICON_IMG --><img src="{T_ICONS_PATH}{postrow.POST_ICON_IMG}" width="{postrow.POST_ICON_IMG_WIDTH}" height="{postrow.POST_ICON_IMG_HEIGHT}" alt="" /> <!-- ENDIF --><a href="#p{postrow.POST_ID}">{postrow.POST_SUBJECT}</a></h3>
--SAVE & CLOSE--代碼: 選擇全部
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2FYOUR_WEBSITE/PHPBB_ROOT/viewtopic.php%3Fp%3D{postrow.POST_ID}%23p{postrow.POST_ID}&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:30px"></iframe>
P.S.
1. The "YOUR_WEBSITE/PHPBB_ROOT" must replace with yuors.
2. Purge the cache.