Bạn ghé thăm diễn đàn lần đầu? hãy đăng ký ngay bây giờ để tham gia.
  • Đăng nhập:

Chào mừng bạn đến với ITVNN FORUM - Diễn đàn công nghệ thông tin.

Nếu đây là lần đầu tiên bạn tham gia diễn đàn, xin mời bạn xem phần Hỏi/Ðáp để biết cách dùng diễn đàn. Để có thể tham gia thảo luận bạn phải đăng ký làm thành viên, click vào đây để đăng ký.


  • Partner Area
    • ITVNN HOSTING - Thiết kế website, Cung cấp Domain, Hosting, VPS Việt Nam Anh Hùng - Thông tin truyền thông
kết quả từ 1 tới 1 trên 1
Tăng kích thước phông chữ Giảm kích thước phông chữ
  1. #1
    admin's Avatar

    Trạng thái
    Offline
    Họ tên
    Mai Thanh Trung
    Tham gia ngày
    Aug 2006
    Thành viên thứ
    1
    Đến từ
    Pleiku, Gia Lai
    Tuổi
    39
    Giới tính
    Bài gởi
    4,984
    Level: 57 [?]
    Experience: 32,245,551
    Next Level: 35,467,816
    Cảm ơn 53
    Cảm ơn 2,450 lần / 1,409 Bài viết

    Default Edit User link in postbit UserName popup menu  

    This is a simple template modification that a couple of members over on vB.com and Lynne helped me sort out. Just thought I'd post it here to give back to the community a little.

    This will add an icon and link in the popup menu in postbit when you click on the User's name. The link is only accessible by the user groups you choose and opens the Admin User Manager page for that user.

    To install:

    ACP> Styles & Templates> Search in Templates for "memberaction_dropdown"

    In that template find:
    Code: 
    <vb:if condition="$show['emaillink']">
            <li class="right">
                <img src="{vb:stylevar imgdir_siteicons}/email.png" alt="" />
                <a href="sendmessage.php?{vb:raw session.sessionurl}do=mailmember&amp;u={vb:raw memberinfo.userid}" rel='nofollow'>
                    {vb:rawphrase send_email}
                </a>
            </li>
            </vb:if>
    Add below that:
    Code: 
    <vb:if condition="is_member_of($bbuserinfo, X, Y)">
            <li class="left">    
                <img src="{vb:stylevar imgdir_siteicons}/edit.png" alt="" />
                <a href="admincp/user.php?do=edit&u={vb:raw memberinfo.userid}" TARGET="_blank">Edit User
                </a>
            </li>
            </vb:if>
    Change the X and Y in the above code to the Usergroup IDs that you want to allow access (those groups will have to have admin rights to edit users as well).

    You will also need to upload the image I've attached to your images/site_icon directory.

    Screenshots:
    Hình Kèm Theo Hình Kèm Theo
    .♥.Thà không yêu cho cuộc đời trong trắng.♥.
    .♥.Lỡ yêu rồi phải cố gắng thành công.♥.


    Thiết kế website, Cung cấp Domain, Hosting, VPS


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Rank under username on postbit/postbit_legacy [ENG-ITA]
    By Dunglx in forum v4.x Modifications
    Trả lời: 2
    Bài mới gởi: 21-10-2011, 09:12 PM
  2. [ban+edit] user link on topic
    By s0ct0j0c in forum Add-ons and Modifications
    Trả lời: 0
    Bài mới gởi: 21-04-2011, 08:26 AM
  3. Postbit/Postbit Legacy: User Current Activity And Time
    By admin in forum v4.0.x Modifications
    Trả lời: 0
    Bài mới gởi: 24-03-2010, 05:01 PM
  4. Show Profile Fields In Postbit - Zero Query & Template Edit!
    By ..::Songuku95::.. in forum v3.8.x Modifications
    Trả lời: 0
    Bài mới gởi: 03-03-2010, 01:45 PM
  5. Trả lời: 0
    Bài mới gởi: 09-09-2009, 08:20 AM

Tags for this Thread

Bookmarks

Quuyền Hạn Của Bạn

  • Bạn không thể tạo chủ đề mới
  • Bạn không thể trả lời bài viết
  • Bạn không thể gửi file đính kèm
  • Bạn không thể chỉnh sửa bài viết
  •