Thanks Arjun, its working. But if i enable Ad before Question & Ad after Question at same time, issue is coming. Issue like Ad after Question ad is getting displayed in before and after question content. I think you are referring Ad after Question textarea value for Ad before Question value also.
-------------
if (qa_opt('pt_q2a_ad_before_question') && $user_level < qa_opt('pt_q2a_ad_before_question_level'))
{
$this->adoutput(qa_opt('pt_q2a_ad_after_question_codebox'));
}
qa_html_theme_base::q_view($q_view);
if (qa_opt('pt_q2a_ad_after_question') && $user_level < qa_opt('pt_q2a_ad_after_question_level'))
{
$this->adoutput(qa_opt('pt_q2a_ad_after_question_codebox'));
}
-------------
Thanks for your plugin :) ..