Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2011
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.37 KB | None | 0 0
  1.     $cnt = 1;
  2.     while($cnt != 0){
  3.    
  4.         $text = preg_replace('#\[quote=(.*?)\;(.*?(?:\[quote.+?\[/quote\])*.*?)\](.*?)\[\/quote\]#ms', '<blockquote class="postcontent"><div class="quote"><div class="quote_container"><div class="quote_qcontainer"><div class="quote_arrow"></div><div class="quote_author"><img src="forum/images/misc/quote.png" alt="Quote" /> Originally Posted by <strong>\1</strong> <a href="index.php?subtopic=show_thread&id=\2/#post\2" rel="nofollow"><img class="inlineimg" src="forum/images/misc/viewpost-arr.png" alt="View Post" /></a></div><div class="quote_message">\3</div></div></div></div></blockquote>', $text, -1, $cnt);
  5.         $text = preg_replace('#\[quote=(.*?)\](.*?(?:\[quote.+?\[/quote\])*.*?))\[\/quote\]#ms', '<blockquote class="postcontent"><div class="quote"><div class="quote_container"><div class="quote_qcontainer"><div class="quote_arrow"></div><div class="quote_author"><img src="forum/images/misc/quote.png" alt="Quote" /> Originally Posted by <strong>\1</strong></div><div class="quote_message">\2</div></div></div></div></blockquote>', $text, -1, $cnt);
  6.         $text = preg_replace('#\[quote\](.*?(?:\[quote.+?\[/quote\])*.*?)\[\/quote\]#ms', '<blockquote class="postcontent"><div class="quote"><div class="quote_container"><div class="quote_qcontainer"><div class="quote_arrow"></div><div class="quote_message">\1</div></div></div></blockquote>', $text, -1, $cnt);
  7.     }
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement