• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Hướng dẫn fix lỗi /includes/vfchh/php/vfc_hide_core.php on line 163 mod vFCoders - Hide Hack v4

Admin

Well-Known Member
Staff member
Administrator
Hôm nay mình xin hướng dẫn các bạn cách fix lỗi
PHP:
PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /path/includes/vfchh/php/vfc_hide_core.php on line 163
Để làm được bạn vui lòng làm theo hướng dẫn
Mở tập tin /includes/vfchh/php/vfc_hide_core.php
Tìm
PHP:
$message = preg_replace("/\[" . $tag . "=("|\"|'|)([0-9,\s]+)\\1\](.*)\[\/" . $tag . "\]/esiU", "\$this->tagparser->\$parser('\\3', '\\2')", $message);
Thay bằng
PHP:
$tagparser = $this->tagparser;      $message = preg_replace_callback(          "/\[" . $tag . "=("|\"|'|)([0-9,\s]+)\\1\](.*)\[\/" . $tag . "\]/siU",          function($m) use ($parser, $tagparser) { return $tagparser->$parser($m[3], $m[2]); },          $message      );
Để xóa bản quyền mod này thì bạn thay tất cả thành
Code:
<?php/*======================================================================*\
|| #################################################################### ||
|| #                 vFcoders - Hide Hack v4                            ||
|| #         Copyright ©2012 vFcoders.com. All Rights Reserved.         ||
|| #################################################################### ||
\*======================================================================*/


class VFC_HIDE {


    /**
	* The vBulletin registry object
	*
	* @var	vB_Registry
	*/
	
	public $registry = null;
	
	/**
	* Whether html is allowed or not
	*
	* @var	boolean
	*/
	
	public $dohtml = false;
	
	/**
	* Hide Taglist (without option)
	*
	* @var	array
	*/
	
	private $taglist = array(
		'HIDE-REPLY' => 'p_bb_code_hr',
		'HIDE-THANKS' => 'p_bb_code_ht',
		'HIDE-REPLY-THANKS' => 'p_bb_code_hrt'
		);
		
	/**
	* Hide Taglist (with option)
	*
	* @var	array
	*/
	
	private $taglistwo = array(
		'HIDE-POSTS'   => 'p_bb_code_hp',
		'SHOWTOGROUPS' => 'p_bb_code_stg',
		'STU'          => 'p_bb_code_stu'
		);
		
	private $twodefault = array();
		
	/**
	* Post's Details for parsing Hide Tags
	*
	* @var	string
	*/
	
	public $forumid = null;
	public $postid = null;
	public $threadid = null;
	public $userid = null;
	
	/**
	* @var	boolean
	*/
	
	public $owner = false;
	public $hreply = false;
	public $hthanks = false;
	
    private $tagparser;


	
	/**
	* Constructor - checks that the registry object has been passed correctly.
	*
	* @param	vB_Registry	Instance of the vBulletin data registry object - expected to have the database object as one of its $this->db member.
	*/
	
	public function __construct(&$registry) 
	{
	
		global $vbphrase, $vbulletin;


		if (is_object($registry))
		{
			$this->registry = $registry;
		}
		else
		{
			trigger_error("vB_Database::Registry object is not an object", E_USER_ERROR);
		}
		
		if (in_array(THIS_SCRIPT, array('ajax', 'editpost', 'misc', 'newthread', 'newreply', 'printthread', 'showpost', 'showthread')))
		{
			$this->dohtml = true;
		}
		else
		{
			$this->dohtml = false;
		}
		
	
		$this->twodefault = array('HIDE-POSTS' => $this->registry->options['vfc_hide_hack_hr_posts'], 
		                          'SHOWTOGROUPS' => $this->registry->options['hide_hack_sett_grp'],
								  'STU'        => 0
								  );
								  
		$hidetag = $this->registry->options['vfc_hide_hack_hide'];
		if ($this->taglist[$hidetag])
		{
		   $this->taglist['HIDE'] = $this->taglist[$hidetag];
		}
		else
		{
		   $this->taglistwo['HIDE'] = $this->taglistwo[$hidetag];
		   $this->twodefault['HIDE'] = $this->twodefault[$hidetag];
		}
		
		/// Calling Parser
		
		require_once( DIR."/includes/vfchh/php/vfc_hide_parser.php" );
        $this->tagparser = new VFC_PARSER($this);		
		
	}
	
	
	/**
	* Main Function which will be used to Parse the tags
	*
	* @param	Message, Forumid, Threadid, Postid, Userid (of creator)
	*
	* @return	Message (Parsed)
	*/


 function fetch_msg_to_hide ($params = array()) 
 {
 
   @extract($params);
   global $vbphrase;


   $this->forumid = $forumid;
   $this->threadid = $threadid;
   $this->postid = $postid;
   $this->userid = $userid;
   $this->hthanks = false;
  
   // Check if this user can bypass hide tags or not
   $this->owner = $this->canbypass();


   // Hide Tags without option
   foreach ($this->taglist as $tag => $parser) 
   {
      $message = preg_replace('/\\[' . $tag . '\\](.*)\\[\/' . $tag . '\\]/siU', $this->tagparser->$parser('\\1'), $message);
   }
											  
   // Hide Tags with option
   
   foreach ($this->taglistwo as $tag => $parser) 
   {
      $message = preg_replace("/\[" . $tag . "\]/siU", "[".$tag."=".$this->twodefault[$tag]."]", $message);
      $tagparser = $this->tagparser;
      $message = preg_replace_callback(
          "/\[" . $tag . "=(&quot;|\"|'|)([0-9,\s]+)\\1\](.*)\[\/" . $tag . "\]/siU",
          function($m) use ($parser, $tagparser) { return $tagparser->$parser($m[3], $m[2]); },
          $message
      );
      $message = preg_replace("/\[" . $tag . "=" . $this->twodefault[$tag] . "\]/siU", '[' . $tag . ']', $message);
   }
   
   return $message;


 }
 
   /**
	* Function for removing hide tags
	*
	* @param	Message
	*
	* @return	Message (Stripped)
	*/
 
  function strip_hide_bbcodes($message, $for = '') 
  {
     global $vbphrase;
  
     $replace = '';
     $replace2 = '';
  
     switch ($for)
     {
        case 'preview':
             $replace = '\\1';
             $replace2 = '\\3';
	         break;
	    case 'quote':
	         $replace2 = $replace = $vbphrase['vfc_hide_hack_noquote'];
	         break;
	    case 'email':
             $replace2 = $replace = $vbphrase['vfc_hide_hack_email'];
	         break;
	    default:
	         $replace2 = $replace = '';
	         break;
     }	  
	


     foreach ($this->taglist as $tag => $parser) 
     {
        $message = preg_replace('/\\[' . $tag . '\\](.*)\\[\/' . $tag . '\\]/siU', $replace, $message);
     }
											 
     foreach ($this->taglistwo as $tag => $parser) 
	 {
        $message = preg_replace('/\\[' . $tag . '\\](.*)\\[\/' . $tag . '\\]/siU', $replace, $message);
        $message = preg_replace("/\[" . $tag . "=(&quot;|\"|'|)([0-9,\s]+)\\1\](.*)\[\/" . $tag . "\]/siU", $replace2, $message);
	 }											 
 
     return $message;
 
  }
   
    /**
	* Permission for tags
	*
	* @param	Foruminfo
	*
	* @return	Permission
	*/
	
   function check_permission ($foruminfo) 
   {
      $output = array();


      $output['stg'] = ($this->registry->options['vfc_hide_hack_stg'] && ($this->registry->userinfo['permissions']['vfc_hide_hack_perm'] & $this->registry->bf_ugp['vfc_hide_hack_perm']['vfc_can_hide_stg'])
	  && $foruminfo['vfchh_stg']);
	  
	  $output['stu'] = ($this->registry->options['vfc_hide_hack_stu'] && ($this->registry->userinfo['permissions']['vfc_hide_hack_perm'] & $this->registry->bf_ugp['vfc_hide_hack_perm']['vfc_can_hide_stu'])
	  && $foruminfo['vfchh_stu']);
	
      $output['hide'] = ($this->registry->options['vfc_hide_hack_hide'] && ($this->registry->userinfo['permissions']['vfc_hide_hack_perm'] & $this->registry->bf_ugp['vfc_hide_hack_perm']['vfc_can_hide'])
	  && $foruminfo['vfchh_hide']);	
	  
	  $output['hreply'] = ($this->registry->options['vfc_hide_hack_hr'] && ($this->registry->userinfo['permissions']['vfc_hide_hack_perm'] & $this->registry->bf_ugp['vfc_hide_hack_perm']['vfc_can_hide_reply'])
	  && $foruminfo['vfchh_hreply']);


	  $output['hthanks'] = ($this->registry->options['vfc_hide_hack_ht'] && ($this->registry->userinfo['permissions']['vfc_hide_hack_perm'] & $this->registry->bf_ugp['vfc_hide_hack_perm']['vfc_can_hide_thanks'])
	  && $foruminfo['vfchh_hthanks'] && ($this->registry->products['post_thanks'] || $this->registry->products['crawlability_vbseo']));


	  $output['hrt'] = ($this->registry->options['vfc_hide_hack_hrt'] && ($this->registry->userinfo['permissions']['vfc_hide_hack_perm'] & $this->registry->bf_ugp['vfc_hide_hack_perm']['vfc_can_hide_rt'])
	  && $foruminfo['vfchh_hrt'] && ($this->registry->products['post_thanks'] || $this->registry->products['crawlability_vbseo']));


	  $output['hposts'] = ($this->registry->options['vfc_hide_hack_hp'] && ($this->registry->userinfo['permissions']['vfc_hide_hack_perm'] & $this->registry->bf_ugp['vfc_hide_hack_perm']['vfc_can_hide_posts'])
	  && $foruminfo['vfchh_hposts']);
	  
      return $output;


   }
   
    /**
	* Tags which user can use
	*
	* @param	Foruminfo
	*
	* @return	Permission
	*/
   
   function fetch_tags ($foruminfo) 
   {
   
       $permission = $this->check_permission($foruminfo);
       $tags = array();
   
       if ($permission['hide']) 
       {
          $tags[] = 'Hide';
       }
	   
	   if ($permission['hide'] AND $permission['hreply']) 
       {
	      $tags[] = '-';
	   }
	   
       if ($permission['hreply']) 
       {
          $tags[] = 'HReply';
       }
	   
       if ($permission['hthanks']) 
       {
          $tags[] = 'Hthanks';
       }
	   
       if ($permission['hrt']) 
       {
          $tags[] = 'HReplyThanks';
          $tags[] = '-'; 
       }
	   
       if ($permission['hposts']) 
          $tags[] = 'HPosts';
	   
       if ($permission['stg']) 
          $tags[] = 'Showtogroups';
		  
       if ($permission['stu']) 
          $tags[] = 'STU';	   	  
   
       return $tags;
   
   
   }
   
   /**
	* Function for checking if user can bypass HIDE Tags
	*
	* @param	Foruminfo
	*
	* @return	Permission
	*/
	
	function canbypass () 
	{
	
	   if (($this->registry->userinfo['permissions']['vfc_hide_hack_perm'] & $this->registry->bf_ugp['vfc_hide_hack_perm']['vfc_can_hide_allow']))
       {	   
	        return true;
       }	
	
       if ($this->registry->userinfo['userid'] == $this->userid) 
	   {
            return true;
       }
	  
	   if (can_moderate($this->forumid, 'caneditposts'))
	   {
	       return true;
	   }
	  
	       return false;


	}
	
   /**
	* Don't Edit This Function else this MOD will stop working
	*/
	
	function copyright ($output)
	{
	
       $output = preg_replace('#All rights reserved.#i', 'All rights reserved.<div style="text-align: center">Hide Hack By 
	   <a href="http://vfcoders.com" target="_blank" rel="nofollow">vFCoders</a>.</div>', $output, 1, $match);
	   
	   if (empty($match)) 
	   {
	   
	   $output = preg_replace('#<div id="footer_copyright"#i', '<div style="text-align: center" class="shade footer_copyright">Hide Hack By 
	   <a href="http://vfcoders.com" target="_blank" rel="nofollow">vFCoders</a></div><div id="footer_copyright"', $output, 1, $match);
	   
	   }
	   
	   if (empty($match))
	   {
	   
	   $output = preg_replace('#</body>#i', '<div style="text-align: center" class="shade footer_copyright">Hide Hack By 
	   <a href="http://vfcoders.com" target="_blank" rel="nofollow">vFCoders</a>.</div></body>', $output);
	   
	   }
	   
	   return $output;
                	
	}
	 
}


?>
Lưu lại là xong
Mọi thắc mắc vui lòng phản hồi bên dưới
Chúc các ban thành công!
Nguồn: tuoitreit.vn
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
Admin Hướng dẫn fix lỗi không vào được mạng laptop Masstel E140 Sử dụng, chia sẻ, hỏi đáp 0
Admin Hướng dẫn fix lỗi Communication Error cho máy in Canon LBP 2900, Canon LBP 3300 Windows 11 mới nhất - Fix Communication Error Canon 2900, Canon 3300 Windows 11 Sử dụng, chia sẻ, hỏi đáp 0
Admin Hướng dẫn fix lỗi GET GENUINE OFFICE Your license isn't genuine cho office thành công 100% Sử dụng, chia sẻ, hỏi đáp 0
Admin Hướng dẫn gõ tiếng việt có dấu trên vba - Fix lỗi font tiếng việt excel vba Sử dụng, chia sẻ, hỏi đáp 0
Admin Hướng dẫn fix lỗi không xóa được bôi đen trong Word bằng phím Backspace - Backspace doesn't delete highlighted text word Sử dụng, chia sẻ, hỏi đáp 4
Admin Hướng dẫn fix lỗi No Internet trên Windows 10 20H2 Sử dụng, chia sẻ, hỏi đáp 0
Admin Hướng dẫn fix lỗi tắt kiếm tiền (TKT) lỗi quốc gia Ad Breaks Tut, tool, mmo 0
Admin Hướng dẫn fix lỗi đăng nhập từ iPhone đã ghép nối trên Watch OS 6.2.6 Điện thoại di động 0
Admin Hướng dẫn fix lỗi ABI mismatch xamarin forms Android, iOS 0
Admin Hướng dẫn fix lỗi The selected build configuration is using the shared Mono runtime for faster deployment Xamarin Forms Android, iOS 0
Admin Hướng dẫn fix lỗi WHPX is not configured khi dùng Visual Studio 2019 Android, ios, java, windows phone 0
Admin Hướng dẫn fix lỗi We couldn’t complete the updates, Undoing changes không vào được windows Hệ điều hành 0
Admin Hướng dẫn fix lỗi không hiện IP online xenforo - Fix don't display IP members online xenforo Xenforo 0
Admin Hướng dẫn fix lỗi xinput1_3.dll or d3dx9_43.dll is missing khi chơi PES 2017 - How to fix xinput1_3.dll or d3dx9_43.dll is missing simple Thủ thuật máy tính 0
Admin Hướng dẫn fix lỗi XSS trên Xenforo 2.0.9 - XenForo 2.0.9 Released (Security Fix) Xenforo 0
Admin Hướng dẫn fix lỗi Not enough memory RAM - An integer between 96 and 8 is required Thiết kế đồ họa 0
Hong98 Hướng dẫn Cách fix lỗi thời gian chạy sai dạng Timeago All Shared Scripts 1
Admin Hướng dẫn fix lỗi android rung liên tục không ngừng ngày 31.12.2016 Android, iOS 0
N Có ai biết fix lỗi invalid request trong vuivc.xyz không hỏi cái Trò chuyện linh tinh 0
K Share AvatarQ 250 v8 Hỗ Trợ Event Fix Lỗi Crack, hack, mod, ghép game, ứng dụng 0
Admin Hướng dẫn fix lỗi nginx tải về tập tin php trên Ubuntu 14.04 VPS & Dedicated Server 0
yoona Help Cần hướng dẫn fix lỗi rule .htaccess Chuyên đề htaccess 5
Admin Hướng dẫn fix lỗi thư mục Libraries tự bật khi khởi động máy tính Sử dụng, chia sẻ, hỏi đáp 0
Admin Hướng dẫn fix lỗi font ỡ, õ, ữ cho android 4.0.4 trở lên đơn giản và chi tiết Android, iOS 0
Admin Hướng dẫn fix lỗi trắng trang admincp xenforo Xenforo 0
T Share mod bình luận bằng facebook cho johncms (fix lỗi trùng trang) Johncms 0
Admin Hướng dẫn fix lỗi table passwordhistory doesn't exist cho vbulletin Vbb tutorial 0
K Share Code grab wap xalo fix lỗi All Shared Scripts 0
C Help Mọi người vào fix lỗi mod like/dislike john cms giúp mình Johncms 2
C Hỏi Ai biết fix lỗi bug topic bang hội thì vào giúp mình. Johncms 0
H Hương dẫn em fix lỗi upload Johncms 14
D Hỏi Cần cao thủ vbb fix giúp lỗi forum 4.2 Vbulletin 5
H Help fix lỗi nghiêm trọng không biết lý do Wordpress 2
Lee_Jin Help Mong mọi người vào giúp fix lỗi này All Shared Scripts 6
G Share [AVATAR ONLINE]Mã Auto Kim Cương Xanh Tối Ưu, Fix Lỗi Trong Avatar Trò chơi 0
Admin Share code phim phimsd.com fix lỗi Mã nguồn web 0
Admin Hướng dẫn fix lỗi Deprecated: Function ereg() is deprecated PHP 0
Admin Hướng dẫn fix lỗi vfcoders hide hack trên vbb 4.2.2 Vbb tutorial 0
Admin Hướng dẫn fix toàn bộ lỗi vbb 4.2.2 Vbb tutorial 5
Admin Hướng dẫn fix lỗi lặp lại bài viết cho vbb 4.2.2 Vbb tutorial 1
Admin Hướng dẫn fix lỗi timezone khi cài đặt vbb 4.2.2 Vbb tutorial 1
Admin Hướng dẫn fix lỗi thay font sập nguồn điện thoại bằng video Sử dụng, chia sẻ, hỏi đáp 0
T Help [XenForo] Ai giúp với. Lỗi nặng rồi. Không tài nào fix đc....... Xenforo 8
Admin Hướng dẫn fix lỗi Thread Prefix Listing 1.2.0 Xenforo 0
Admin Share mod quản lý menu johncms fix lỗi Johncms 0
Admin Hướng dẫn fix lỗi smile johncms 5.2.0 Johncms 0
Admin Share template blogger cuoicangay.com bản chuẩn fix lỗi Blogger 1
Admin Lỗi SQLI nghiêm trọng của WHMCS 5.2.7 (cách bug và cách fix) Khác 0
Admin Share code blog xtgem mod bản mới fix lỗi phân trang Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
Admin Make gif v1.1 việt hoá - Tạo ảnh động trên điện thoại fix lỗi ứng dụng sai Crack, hack, mod, ghép game, ứng dụng 0

Similar threads

New posts New threads New resources

Back
Top