Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.1k views
in Plugins by
I try use plugin "Simple Advert" for insert advertisment after question on full page , but i can not place code as in this screenshot http://clip2net.com/s/6Gvk76 anybody can help me?

2 Answers

+2 votes
by
edited by

You may try by overriding a_list() method into your theme file. Just make sure yoru theme not already have this method else you will get an error

Add below code into your theme file.

function a_list($a_list)
{
    //put your code here
    //if you are inserting html than use output()
    $this->output('your-html-code-here');
    
    qa_html_theme_base::a_list($a_list);
}

Edit: Added code and output image

Q2A Market Advert

 

Code:

function a_list($a_list) {
  $this->output('<img src="http://www.q2amarket.com/cdn/adverts/q2am-featured-questions-leaderboard.jpg" style="margin:20px 0; max-width:100%"  />');
  parent::a_list($a_list);
}
by
No. In my Q2A 1.6.2 this second code does not work. :-(
You paste this second code in /Snow/ qa-theme.php in end of file?
by
Make sure you are adding within the class. Outside of class will be ignored. Also check if any plugin overriding the same method.
by
Yes, the problem was placing behind class!
Terima Kasih Jatin Soni :-) !
by
Jatin, please help again.
Please tell me which function use for insert advertisement before form for add answer http://clip2net.com/s/6K2bds
Because function a_list($a_list) prints advertisement under form for add answer.

Thank you.
0 votes
by

Jatin, please help again.
Please tell me which function use for insert advertisement before form for add answer http://clip2net.com/s/6K2bds
Because function a_list($a_list) prints advertisement under form for add answer.

Thank you.

by
I am not on the dev environment now but you may add below question content by using q_view method.
...