Add AddThis button to "Share This Page" section - Thêm nút AddThis vào phần "Share This Page"

PVS

Super Moderator
Thành viên BQT
Tham gia
28/02/2015
Bài viết
16,735
Được Like
12,681
Add AddThis button to "Share This Page" section - Thêm nút AddThis vào phần "Share This Page"

Sử dụng TMS hoặc thêm mã vào template share_page.
Thêm vào bên dưới dòng <xen:hook name="share_page_options"> đoạn code sau:
Mã:
<div class="shareControl" style="width:107px">
<div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_counter addthis_pill_style" addthis:url="{$url}" {xen:if {$thread.title}, 'addthis:title="{xen:helper threadPrefix, $thread, escaped}{$thread.title}"'}></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=yourid"></script>
</div>

Không bắt buộc
Thay đổi chuỗi id của bạn ở trên để AddThis nhập ID của bạn nếu bạn muốn có thống kê.

addthis.png

Chúc các bạn thành công.


Nguồn: xenforo.com​
 
  • Like
Reactions: THB

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Dịch vụ XenForo của VNXF

Mr. Tuấn

Mobile/Zalo: 0988 488 096

Telegram: bluekpro

Email: [email protected]

Nhà Tài Trợ

Mút Xốp Không Gian
pallet Thịnh Phát
Top Bottom