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
    hau_ooo's Avatar

    Trạng thái
    Offline
    Họ tên
    Đoàn Hậu
    Tham gia ngày
    Sep 2009
    Thành viên thứ
    198
    Đến từ
    Hải Phòng
    Giới tính
    Bài gởi
    858
    Level: 45 [?]
    Experience: 4,559,621
    Next Level: 5,107,448
    Cảm ơn 84
    Cảm ơn 237 lần / 166 Bài viết

    Default Single Signature Per Page  

    This hack limits each poster to one signature per page. This reduces the number of outbound links per page and helps reduce the mass posting by spammers simply trying to get a large number of links in a popular thread.

    Code: 
    ##############################################################
    ## MOD Title: Signature displayed once per page
    ## MOD Author: William Cross < [email protected] >
    ## MOD Description: To reduce outbound links on threads, this MOD will display a poster's signature only once per topic.
    ## MOD Version: 1.0
    ##
    ## Installation Level: Easy
    ## Installation Time: ~ 1 minute
    ## Files To Edit:
    ##             viewtopic.php
    ##
    ## Included Files: N/A
    ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
    ##############################################################
    ## For security purposes, please check: http://www.phpbb.com/mods/
    ## for the latest version of this MOD. Although MODs are checked
    ## before being allowed in the MODs Database there is no guarantee
    ## that there are no security problems within the MOD. No support
    ## will be given for MODs not found within the MODs Database which
    ## can be found at http://www.phpbb.com/mods/
    ##############################################################
    ## MOD History:
    ##
    ##   2010-1-28 - Version 1.0
    ##      - Successfully tested with phpBB 3.0.6
    ##
    ##############################################################
    ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
    ##############################################################
    
    #
    #-----[ OPEN ]------------------------------------------
    #
    
    viewtopic.php
    
    #
    #-----[ FIND ]------------------------------------------
    #
    // Output the posts
    
    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    $signat[$poster_id] = 0;
    
    
    #
    #-----[ FIND ]------------------------------------------
    #
    
            $user_cache[$poster_id]['sig'] = bbcode_nl2br($user_cache[$poster_id]['sig']);
            $user_cache[$poster_id]['sig'] = smiley_text($user_cache[$poster_id]['sig']);
            $user_cache[$poster_id]['sig_parsed'] = true;
        }
    
    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    
      $signat[$poster_id]++;
      if($signat[$poster_id] >= 2){
        $user_cache[$poster_id]['sig'] = '';
      }
    
    #
    #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
    #
    # EoM


 

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Trả lời: 0
    Bài mới gởi: 13-05-2019, 04:09 PM
  2. Single File PHP Gallery 4.0.0
    By hackerkinhcan_lha in forum PHP Scripts
    Trả lời: 0
    Bài mới gởi: 08-07-2010, 06:45 AM
  3. Signature only on first post VB4.0x
    By admin in forum v4.0.x Modifications
    Trả lời: 0
    Bài mới gởi: 14-04-2010, 04:36 PM
  4. Signature Backgrounds
    By admin in forum v3.8.x Modifications
    Trả lời: 0
    Bài mới gởi: 01-11-2009, 08:52 PM
  5. MediaWiki/vBulletin Single Sign-On
    By thanhdia in forum v3.8.x Modifications
    Trả lời: 0
    Bài mới gởi: 06-10-2009, 05:21 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
  •