Zambfd
Customer
Hi,
Location
File: /dbtech/thanks/includes/class_profileblock.php
Line: 305
Problem
If a liked post consists of hundreds of nested bbcodes profiles run into a timeout - especially if the post is liked multiple times.
It happens because of the use of strip_bbcodes on the mentioned line.
So i added a method called strip_bbcode to vB_ProfileBlock_APTL_Thanks in class_profileblock.php.
The new call on line 305 is now:
It is way faster than using the original strip_bbcode() function of vbulletin in this section.
Regards
Location
File: /dbtech/thanks/includes/class_profileblock.php
Line: 305
Code:
strip_bbcode(strip_tags($results_r['pagetext']))
Problem
If a liked post consists of hundreds of nested bbcodes profiles run into a timeout - especially if the post is liked multiple times.
It happens because of the use of strip_bbcodes on the mentioned line.
So i added a method called strip_bbcode to vB_ProfileBlock_APTL_Thanks in class_profileblock.php.
Code:
function strip_bbcode( $sText = '') {
return preg_replace('|[[\/\!]*?[^\[\]]*?]|si', '', $sText);
}
The new call on line 305 is now:
Code:
strip_bbcode($this->strip_tags($results_r['pagetext']))
It is way faster than using the original strip_bbcode() function of vbulletin in this section.
Regards