Hướng Dẫn Thêm Likebox Facebook Dưới Chân Bài Viết Cho Xenforo

  • Thread starter Thread starter PVS
  • Ngày gửi Ngày gửi

PVS

Super Moderator
Thành viên BQT
Bài này mình sẽ hướng dẫn các bạn them likebox dưới chân mỗi bài viết xenforo. Với bài này bạn có thế tạo một cái likebox dưới chân xenforo nhằm tang tăng like cho facebook.

Demo:

Untitled.png

Cách 1: Vào Template: message xuống cuối và thêm đoạn code sau trên thẻ </li> cuối cùng:
Mã:
<xen:if is="{$post.position} == 0 AND !{$message.conversation_id}">
<div style="margin:15px 25px 0px;border: 1px solid #ccc; color:#fff">
<h4 class="threadinfohead blockhead" style="background-color: #45619D;margin:-1px;padding:10px">Like Ủng Hộ Diễn Đàn</h4>
<div class="fb-like-box" data-href="https://www.facebook.com/1524100781204115" data-width="790" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="false"></div>
</div>
</xen:if>

Cách 2: Nếu có dùng addon ChipXF more thread thì add vào template MoreThread_main cái này vào cuối
Mã:
<div style="margin:15px 25px 0px;border: 1px solid #ccc; color:#fff">
            <h4 class="threadinfohead blockhead" style="background-color: #45619D;margin:-1px;padding:10px">Like Ủng Hộ Diễn Đàn</h4>
            <div class="fb-like-box" data-href="https://www.facebook.com/vnxf.vn" data-width="790" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="false"></div>
        </div>

Chú ý : Các bạn chỉnh lại thông số và thông tin facebook của mình nhé.
Chúc các bạn thành công!


Nguồn: tailieu24h.net​
 
  • Like
Reactions: THB
Back
Top