Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cnt = 1;
- while($cnt != 0){
- $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);
- $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);
- $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);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement