View Full Version : GIúp giùm em với mấy pr0 VBB
kiddj
01-08-2010, 10:35 PM
Nhìn hình (vấn đề ở đây ) : F5 nếu k0 thấy hình
http://cA5.upanh.com/10.951.15090107.KUX0/untitled.bmp
Không có chức năng banned ở đây :baffle::baffle::baffle::baffle::baffle:
hanhkhat
01-08-2010, 10:52 PM
cách này là dùng cho vbb 3.7 và 3.8. mình không dùng vbb 4.0 nên không biết có được không. Bạn làm thử nhé:MatCuoi:
Vào postbit hoặc postbit_legacy tìm :
<if condition="$show['pmlink']"> <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr> </if>
Thêm vào sau :
<!-- banEditUser --> <if condition="$bbuserinfo[usergroupid] == 6"> <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=375,scrollbars=yes')"><b>Ban User: $post[username]</b></span></td></tr><tr><td class="vbmenu_option"><a href="moderator.php?do=useroptions&u=$post[userid]">Edit User: $post[username]</a></td></if> <!-- / banEditUser end -->
Muốn thêm nhóm có thể thấy menu này làm như sau
<if condition="$bbuserinfo[usergroupid] == 6">
thành
<if condition="($bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7 || $bbuserinfo[usergroupid]==5)">
Với 5,7 là ID các nhóm muốn thêm vào !
kiddj
01-08-2010, 11:01 PM
Khôg biết đc hay không nhưng vẫn cảm ơn :MatCuoi:
kiddj
02-08-2010, 09:27 AM
Không được đâu ah ơi cái này dành cho vbb 3.x thôi mòa em đang xài vbb 4.0.5 :cry::cry::cry::cry::cry::cry: thử vào hư acp lun óa
Vũ
HTT.itvn
02-08-2010, 09:10 PM
Lấy code của vbb 3.x chèn vào vbb 4.x có khi hỏng luôn cả template đấy . Để chèn ban user như diễn đàn này thì làm như sau :
Vào AdminCP >> Styles & Templates >> Style Manager >> Chọn skin cần chỉnh , Edit Templates >> memberaction_dropdown , tìm code sau :
<vb:if condition="$show['viewarticles']">
<li class="right">
<img src="{vb:stylevar imgdir_siteicons}/article.png" alt="" />
<a href="list.php/author/{vb:raw memberinfo.userid}-{vb:raw memberinfo.username}" rel='nofollow'>
{vb:rawphrase view_articles}
</a>
</li>
</vb:if>
Chèn code sau lên trên :
<vb:if condition="is_member_of($bbuserinfo, 7, 6, 5)">
<li class="left">
<a href="modcp/banning.php?do=banuser&userid={vb:raw memberinfo.userid}">
<img src="{vb:stylevar imgdir_statusicon}/wol_error.gif" alt="" />
Ban User
</a>
</li>
</vb:if>
Còn bạn muốn nó hiển thị ra ngoài thì chèn code sau vào postbit_legacy , chèn xuống dưới đoạn đóng khung avatar:
<vb:if condition="is_member_of($bbuserinfo, 7, 6, 5)">
<li class="center">
<a href="modcp/banning.php?do=banuser&u={vb:raw userinfo.userid}" class="textcontrol imagecontrol">
<img src="{vb:stylevar imgdir_misc}/cross.png" alt=" Ban User " />
</a>
</li>
</vb:if>
Bạn có thể thay hình ảnh cross.png thành hình ảnh tùy ý , ảnh này phải nằm trên thư mục /images/misc/
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.