返回列表 回覆 發文

[插件] facebook與plurk的推文

插件名稱增加facebook與plurk的推文按鈕到文章裡面
適用版本Discuz!7.2
語言編碼UTF8 BIG5 GBK
插件作者www.scout-bbs.idv.tw
版權所屬www.scout-bbs.idv.tw
支援網站www.scout-bbs.idv.tw
插件演示http://www.scout-bbs.idv.tw/bbs/thread-14347-1-1.html
插件簡介http://www.scout-bbs.idv.tw/bbs/thread-14347-1-1.html

把附件放到 bbs\images\default 下

接著進入 bbs\templates\default
開啟 viewthread_node.htm引用:
<a href="javascript:;" id="share">{lang thread_share}</a>

下面加上引用:
<a href="http://www.facebook.com/share.php?u={$boardurl}thread-$tid-1-1.html" id="facebook" target="_blank"><image src="{IMGDIR}/ajaxaction_facebook.png" title="分享到臉書"  width="50" height="55"></a>
<a href="javascript: void(window.open('http://www.plurk.com/?qualifier=shares&status='.concat(encodeURIComponent(location.href)).concat(' ').concat('(').concat(encodeURIComponent(document.title)).concat(')')));" id="plurk"><image src="{IMGDIR}/ajaxaction_plurk.png" width="50" height="55" title="推到Plurk"></a>

接著開啟 css_script.css
找到引用:
.useraction { height: 50px; width: 110px; clear: both; display: block; margin: 20px auto; }   .nrate { width: 220px; }   .useraction a { float: left; margin-right: 10px; padding: 30px 0 0; width: 45px; height: 20px; text-align: center; background: url({IMGDIR}/ajaxaction.gif) no-repeat 0 0; }   .useraction #share { d-position: 0 -50px; }

取代成引用:
.useraction { height: 50px; width: 400px; clear: both; display: block; margin: 20px auto; }
.nrate { width: 350px; }
.useraction a { float: left; margin-right: 10px; padding: 30px 0 0; width: 45px; height: 20px; text-align: center; background: url({IMGDIR}/ajaxaction.gif) no-repeat 0 0; }
.useraction #share { background-position: 0 -50px; }
.useraction #facebook { padding: 0px 0 0; background-position: 0 -100px; }
.useraction #plurk { padding: 0px 0 0; background-position: 0 -150px; }

完成

ajaxaction_button.zip

1

評分次數

  • chien

感謝大大的熱情分享阿~~yayaya'
謝謝大大分享
回復 1# pandaray123 我也來試看看
bbs\templates\default\viewthread_node.htm
.....
找不到viewthread_node.htm
回復 5# erik7456

您的是7.2版嗎?
X1.5的...不知道能不能裝??
大家好我是新手
感謝大大的分享
版大您好
聽說另有增加facebookplurk的推文按鈕到文章裡面更快的方法
就是利用AD廣告的方式
將原始碼加入後台廣告增加並可設定放置的位置
請問大大們,誰知道或有適合於7.2版本的原始碼?謝謝
回復 9# bigcow

或許這篇是你需要的http://qoofa.com/thread-2029-1-1.html
好特別喔
感覺好像還不錯

幫你推一個^^
我用7.2
在viewthread_node.htm沒找到<a href="javascript:;" id="share">{lang thread_share}</a>...
返回列表