Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
762 views
in Q2A Core by
There are complete instructions on below page for inserting ad code
http://www.question2answer.org/qa/228/is-there-a-simple-way-to-add-advertisement-space

But would like to know which functions are required to modify for below ad spots.

1. ad after question, just before answers
2. ad after all answers, just before related questions.
3. ad after related questions.

Thanks!

1 Answer

+1 vote
by
In general, the function names that you want to modify match the CLASS of the <DIV> that you want to modify (or write content after), with underscores instead of hyphens. So to answer your question:

1. function q_view()
2. function a_list()
3. function question_main()

In each case, your replacement function should first call the standard one, then afterwards output the HTML that you want. For example:

function q_view()
{
    qa_html_theme_base:: q_view();
    
    ?>
YOUR HTML HERE...
    <?
}

All of these should be inside the usual structure in qa-theme.php:

class qa_html_theme extends qa_html_theme_base
{

}
by
Thanks! its working.
by
how to make these ads get working with 1.3-b2 version
by
It's exactly the same in the latest version.
...