Fix regex when quoting a reply containing a quote. Change wpdb calls to bbp functions. Add auto scroll after inserting the quote text.