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 2 trên 2
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,292,839
    Next Level: 35,467,816
    Cảm ơn 53
    Cảm ơn 2,450 lần / 1,409 Bài viết

    Default Hidden Signatures - Hide Sigs based on Post Count (anti-spam) or Usergroup  

    This mod allows you to hide a user's signature by default. There will be a "Show Signature" button displayed instead of a sig... if you click on the button the real signature will show- you can then click the button again if you want to re-hide the signature.

    This has been tested on VB 4.0.6 in IE / Firefox / Chrome / Safari and Opera.

    You can hide everyone's signature if you want but more then likely you'd want to hide signatures based on a user's post count- this could help foil would be signature-spammers by not showing their content or hiding sigs of new users you just don't trust yet. Alternatively you can hide signatures by usergroup, such as for registered users but allow sigs to show for VIP members only. Of course you can also use a combination of the above to- hide sigs for all users with less than 30 posts unless they are VIP members...

    This is a Template Edit.

    Edit your postbit or postbit_legacy template, whichever you use.

    Find the following code:
    Code: 
    {vb:raw post.signature}
    Note this is in the middle of a line, you may want to edit the line so that it's on its own line- extra lines don't matter in templates.

    Replace the code with:
    Code: 
    <!-- Begin Hidden sig -->
    <vb:if condition="$post[posts] < 10">
                               <div style="margin-top:5px"> 
                               <div class="smallfont" style="margin-bottom:2px"> 
                               <input type="button" value="Show Signature" 
                               style="font-size:10px;margin:0px;padding:0px;" 
                               onClick="if (this.parentNode.parentNode.getElementsByTagName
                               ('div')[1].getElementsByTagName('div')[0].style.display != '') 
                               { this.parentNode.parentNode.getElementsByTagName(
                               'div')[1].getElementsByTagName('div')[0].style.display = ''; 
                               this.innerText = ''; this.value = 'Hide Signature'; } else 
                               { this.parentNode.parentNode.getElementsByTagName('div')
                               [1].getElementsByTagName('div')[0].style.display = 'none'; 
                               this.innerText = ''; this.value = 'Show Signature'; }"> 
                               </div> <div style="margin: 0px; padding: 6px;">
                               <div style="display: none;">
                                {vb:raw post.signature}
                                </div></div></div>
    <vb:else />
      {vb:raw post.signature}
    </vb:if>
    <!-- End Hidden sig -->
    That exact code will auto hide signatures of anyone with less then 10 posts.

    To change this behavior edit the "if" statement at the top of the code:
    <vb:if condition="$post[posts] < 10">

    Change the number 10 to whatever minimum post count you want.

    If you want to hide sigs per usergroup change the line to:
    <vb:if condition="is_member_of($post, 2, 5, 7 )">

    That code will hide sigs of registered users, mods, and super-mods... maybe not what you want to do but a good way to show you how to use it. If you only want one usergroup removes the commas, such as:
    <vb:if condition="is_member_of($post, 2)">

    This will block it for only registered users.

    You can combine both with an "AND" or "OR" statement:
    <vb:if condition="is_member_of($post, 2) OR $post[posts] < 10">

    This will hide sigs for all registered users or anyone with a post count less than 10 no matter what usergroup they are in.

    Screenshots:
    File Kèm Theo File 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

  2. #2
    hoangduykt7990's Avatar

    Trạng thái
    Offline
    Tham gia ngày
    Mar 2010
    Thành viên thứ
    13907
    Tuổi
    35
    Giới tính
    Bài gởi
    683
    Level: 43 [?]
    Experience: 3,531,130
    Next Level: 3,609,430
    Cảm ơn 246
    Cảm ơn 155 lần / 125 Bài viết

    Default

    hic , tốt nhất là các mem không nên cho dùng sign = ảnh tự up, dễ dinh virrus lạoi bloodhood hay có trong ảnh dạng GIF lắm!


 

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Minimum Post Count To Post Blogs
    By admin in forum v4.x Modifications
    Trả lời: 0
    Bài mới gởi: 06-10-2013, 06:16 PM
  2. VSa - Advanced Permissions Based on Post Count
    By admin in forum v4.x Modifications
    Trả lời: 1
    Bài mới gởi: 26-08-2012, 06:25 PM
  3. Hide Member Count From Guests
    By s0ct0j0c in forum Add-ons and Modifications
    Trả lời: 0
    Bài mới gởi: 21-04-2011, 08:30 AM
  4. Trả lời: 0
    Bài mới gởi: 03-01-2011, 07:39 PM
  5. View Site/Forum Leaders Based On Usergroup Permissions
    By thanhdia in forum v4.0.x Modifications
    Trả lời: 0
    Bài mới gởi: 24-11-2009, 02:53 PM

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
  •