Hướng Dẫn Xoá Hết Chữ Ký Thành Viên Xenforo

Thảo luận trong 'Website' bắt đầu bởi Admin, 6 Tháng năm 2016.

  1. Admin Nothing to lose.. your love to win..

    Bài viết:
    4,095
    Để xóa hết chữ ký các thành viên trong Xenforo các bạn vào PhpAdmin chạy câu lệnh sau:

    PHP:
    UPDATE xf_user_profile set `signature` = ''
    Để thay đổi chữ ký của tất cả các thành viên thành mặc định thì các bạn thêm nội dung vào:

    PHP:
    UPDATE xf_user_profile set `signature` = 'Chào mừng tới http://dembuon.vn'
    Để xóa hết homepage thành viên đã cài - chống Spam:

    PHP:
    UPDATE xf_user_profile set `homepage` = ''
    Để xóa hết phần about - chống Spam:

    PHP:
    UPDATE xf_user_profile set `about` = ''
    Chỉ xóa chữ ký của thành viên không login sau bao nhiêu ngày: 6 tháng, 1 năm..

    PHP:
    UPDATE `xf_user_profileSET `signature`='',`homepage`='',`location`='',`occupation`='' where `user_idin (select `user_idfrom `xf_ipgroup by `user_idhaving max(`log_date`) < 1512101315)
    Với: 1512101315 là ngày tháng.

    Để đổi ngày tháng là số dạng như trên bạn vào web sau đổi: http://timestamp.online

    Hoặc xóa chữ ký của thành viên không login từ khi đăng ký:

    PHP:
    UPDATE `xf_user_profileSET `signature`='',`homepage`='',`location`='',`occupation`='' where `user_idnot in (select `user_idfrom `xf_ipgroup by `user_id` )
    Nếu bạn chỉ muốn tạm thời ẩn chữ ký, chưa muốn xoá đi thì vào template Extra.css thêm vào:

    HTML:
    .signature {display:none !important}
    Hoặc nếu bạn muốn ẩn chữ ký, click vào mới xem được thì vào template message tìm:

    PHP:
    <xen:if is="{$visitor.content_show_signature} && {$message.signature}"> <div class="baseHtml signature ugc{xen:if $message.isIgnored, ' ignored'}"> <aside>{xen:raw $message.signatureHtml} </aside> </div> </xen:if>
    Thay thế bằng:

    PHP:
    <xen:if is="{$visitor.content_show_signature} && {$message.signature}"> <div class="showSignature" onclick="if(this.nextSibling.nextSibling.style.display!=''){this.nextSibling.nextSibling.style.display='';this.innerText = '';}else{this.nextSibling.nextSibling.style.display='none';this.innerText = '';}">Xem chữ kí</div> <div class="baseHtml signature ugc{xen:if $message.isIgnored, ' ignored'}"> <aside>{xen:raw $message.signatureHtml} </aside> </div>
     
    Akane thích bài này.
    Chỉnh sửa cuối: 13 Tháng mười 2023
Từ Khóa:
Trả lời qua Facebook
Đang tải...