網域名稱俱樂部

網域名稱俱樂部 (https://www.domainclub.org/index.php)
-   一般軟體與網路使用討論 (https://www.domainclub.org/forumdisplay.php?f=43)
-   -   如何讓這裡的文章可以分享到facebook? (https://www.domainclub.org/showthread.php?t=34257)

哈啦 2013-02-05 10:00 PM

如何讓這裡的文章可以分享到facebook?
 
有人知道要如何才能讓這裡的文章可以分享到facebook嗎?

thanks

slob 2013-02-06 12:58 PM

http://www.vbseo.com/f34/facebook-tw...scripts-45812/
參考參考~

哈啦 2013-02-06 02:29 PM

引用:

作者: slob (文章 183250)


謝謝,找到這一段php code
PHP 代碼:

<!-- Facebook Share Button -->
<if 
condition="in_array($forum['forumid'], array(1,2))">
<else />
<
a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
</if>
<!-- / Facebook Share Button --> 


我把它加在文章塊範本中的postbit,感覺上可以用,但似乎在頁面載入方面有點遲滯,網頁在文章出現前會出現一塊白色的,雖不到一秒鐘但明顯可以感覺有爪遲滯。不知各位有無感覺到?不知如何解決?~what
或者該放到哪個模版裡比較好?

accepter 2013-02-06 04:01 PM

這個套件要花錢買嗎?

slob 2013-02-06 04:06 PM

不過...似乎JS沒有作用耶?
正常狀況下Share--會變成facebook的按妞才對?怪了...
http://1.bp.blogspot.com/-gW94ynPPWy...20/fshare1.gif

!!!原來FB不再支援這個功能了!!!

哈啦 2013-02-06 04:48 PM

引用:

作者: accepter (文章 183254)
這個套件要花錢買嗎?

不用,這只是加個碼在vbulletin模版中。現在問題是要如何加比較好?

引用:

作者: slob (文章 183255)
不過...似乎JS沒有作用耶?
正常狀況下Share--會變成facebook的按妞才對?怪了...
http://1.bp.blogspot.com/-gW94ynPPWy...20/fshare1.gif

!!!原來FB不再支援這個功能了!!!


我看有出現fb分享的按鈕啊。

slob 2013-02-06 04:49 PM

改用這個好了~

PHP 代碼:

<!-- Facebook Share Button -->
<if 
condition="in_array($forum['forumid'], array(1,2))">
<else />
<!-- 
AddThis Button BEGIN -->
<
div class="addthis_toolbox addthis_default_style ">
<
class="addthis_button_preferred_1"></a>
<
class="addthis_button_preferred_2"></a>
<
class="addthis_button_preferred_3"></a>
<
class="addthis_button_preferred_4"></a>
<
class="addthis_button_compact"></a>
<
class="addthis_counter addthis_bubble_style"></a>
</
div>
<
script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5112186f5bfafcae"></script>
<!-- AddThis Button END -->
</if>
<!-- / Facebook Share Button --> 


哈啦 2013-02-06 05:01 PM

引用:

作者: slob (文章 183257)
改用這個好了~

PHP 代碼:

<!-- Facebook Share Button -->
<if 
condition="in_array($forum['forumid'], array(1,2))">
<else />
<!-- 
AddThis Button BEGIN -->
<
div class="addthis_toolbox addthis_default_style ">
<
class="addthis_button_preferred_1"></a>
<
class="addthis_button_preferred_2"></a>
<
class="addthis_button_preferred_3"></a>
<
class="addthis_button_preferred_4"></a>
<
class="addthis_button_compact"></a>
<
class="addthis_counter addthis_bubble_style"></a>
</
div>
<
script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5112186f5bfafcae"></script>
<!-- AddThis Button END -->
</if>
<!-- / Facebook Share Button --> 


改好了,這個很棒!~youarebe::applaud
大家試看看是否有啥問題??:teeth

slob 2013-02-06 05:03 PM

引用:

作者: 哈啦 (文章 183256)
我看有出現fb分享的按鈕啊。

原來在IE 沒有作用...用chrome看是OK的...

哈啦 2013-02-06 05:18 PM

引用:

作者: slob (文章 183260)
原來在IE 沒有作用...用chrome看是OK的...

我用IE看也是ok的啊?


所有時間均為 +8。現在的時間是 02:28 PM

Powered by vBulletin® 版本 3.8.4
版權所有 ©2000 - 2024,Jelsoft Enterprises Ltd.