Advertisement
Guest User

XenForo Parser Mod

a guest
Mar 26th, 2013
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1.         //$tagContentEndPosition = strpos($this->_text, ']', $tagStartPosition);
  2.         //Modification starts: to revert back the code, uncomment the above line and delete this modification
  3.         $bbCodesOptionsPattern = '#\[(?:/)?[\w\d]+?(?:=(\[([\w\d]+?)(?:=.+?)?\].+?\[/\2\]|[^\[\]])+?)?(?P<closingBracket>\])#iu';
  4.         if(preg_match($bbCodesOptionsPattern, $this->_text, $matches, PREG_OFFSET_CAPTURE, $tagStartPosition) && isset($matches['closingBracket'][1]))
  5.         {
  6.             $tagContentEndPosition = $matches['closingBracket'][1];
  7.         }
  8.         else
  9.         {
  10.             $tagContentEndPosition = false;
  11.         }
  12.         //Modification ends
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement