Share mod quăng gạch like giống bua.vn

  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
Chắc đây là điều mấy bác muôn phải không :))
Thôi lỡ rồi share luôn, tuy mod hơi nhàm nhưng nó có cái hay riêng của nó, ai thích thì dung, không thích thì lượn nhé :)Demo online: đây (Host hết bw rồi nên tạm thời không vào được)
Demo video: http://www.youtube.com/watch?v=w5_eOTIAfVw

Rồi, bắt đầu thôi :-B

Download file phía dưới, upload imagesdatgach.php ngang hàng với admincp
Pass giải nén: bua.vn

Đầu tiên là edit cái Like trước, nếu ai đã cài mod Post thank your hack rồi thì thôi, nếu chưa thì tải về mod Post thank your hack 7.83 tại đây
1. Sau khi đã cài mod thanks, các bạn tìm đến template headinclude
Chèn vào dưới cùng:
Code:
<script type="text/javascript" src="clientscript/htmltooltip.js"></script>
2. Tiếp tục tìm đến template additional.css
Chèn vào dưới cùng:
Code:
div.htmltooltip{
position: absolute; /*leave this and next 3 values alone*/
z-index: 1000;
right: 250px;
top: -1000px;
background: #272727;
border: 1px solid black;
color: white;
padding: 3px;
width: auto; /*width of tooltip*/
min-width: 110px;
}
.like_h{
width:auto;
height:20px;
float:right;
}
.l_btn_h{
margin-top: -9px;
width:53px;
float:left;
}
.l_h{
margin-top: -7px;
background:url(images/like/l_h.png);
width:11px;
height:20px;
float:left;
}
.c_h{
margin-top: -7px;
background:url(images/like/c_h.png) repeat-x;
width:auto;
height:20px;
float:left;font-family: arial,sans-serif;
font-size: 11px;
padding-top: 3px;
}
.r_h{
margin-top: -7px;
background:url(images/like/r_h.png);
width:11px;
height:20px;
float:left;
}
3. Edit template Postbit_legacy tìm:
Code:
{vb:raw post.title}
Chèn vào sau nó:
Code:
<vb:if condition="($post['postid'] == $thread['firstpostid'])">
<vb:if condition="$post['show_thanks_remove_option']==0">
<div class="like_h">
<div class="l_btn_h"><a href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&amp;p={vb:ra w post.postid}&amp;securitytoken={vb:raw bbuserinfo.securitytoken}"><img src="images/like/like.png"></a></div>
<div class="l_h"></div>
<div class="c_h"><a rel="htmltooltip">{vb:raw post.post_thanks_amount}</a></div>
<div class="r_h"></div>
</div>
<div class="htmltooltip">{vb:raw post.post_thanks_bit}</div>
</vb:if>
<vb:if condition="$post['show_thanks_remove_option']">
<div class="like_h">
<div class="l_btn_h"><a href="post_thanks.php?do=post_thanks_remove_user&a mp;p={vb:raw post.postid}"><img src="images/like/unlike.png"></a></div>
<div class="l_h"></div>
<div class="c_h"><a rel="htmltooltip">{vb:raw post.post_thanks_amount}</a></div>
<div class="r_h"></div>
</div>
<div class="htmltooltip">{vb:raw post.post_thanks_bit}</div>
</vb:if>
</vb:if>

4. Vào template post_thanks_button
Thêm <!--- ở đầu đoạn code và ---> ở cuối
Làm tương tự với template
post_thanks_postbit

Tiếp đến là nút Quăng Gạch


1. Import product-nmh_datgach trong file đính kèm

2. Vào template postbit_legacy tìm:
Code:
<vb:if condition="$show['postedited'] || $post['signature']">
Lưu ý: đoạn code trên có 2 dòng giống nhau nhé, ở đây các bạn tìm đến dòng thứ 2 (ở dưới), không hiểu thì click nút Find 2 lần.
Chèn vào phía trên nó:
Code:
{vb:raw post.show_gach}

3. Vào template threadbit tìm

Code:
{vb:raw thread.threadtitle}
Và chèn vào sau nó:
Code:
{vb:raw thread.thank_gach}
Xong rồi, thanks cái nào \m/[/QUOTE]
Download: [Bua.vn] Gach - Like.rar
 

Facebook Comments

Back
Top