Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.2k views
in Q2A Core by
edited by

Today I installed Simple Ads Manager Plugin and Custom 404 Page Plugin. After those installations I lost voting buttons and other information of my all questions. I have no idea this happened because of these plugins. Please help me to reshow voting buttons and other question info.

http://www.wikifirst.net/3165/what-is-certified-organic

I checked display settings. Correctly marked.

Q2A version: 1.6.3

1 Answer

+1 vote
by
selected by
 
Best answer

I think there is bug in the plugin. Should be easily fixed. I'm just blindly modifying the code I'm reading from Github so test it and report back.

1. Go to the plugin folder and open file qa-admanager-layer.php

2. Change this code:

function q_view() {
    qa_html_theme_base::q_view();
    if (qa_opt('pt_enable_html_ad_code') && qa_opt('pt_q2a_ad_after_question')) {
        $this->output(qa_opt('pt_q2a_html_ad_codebox'));
    }                     
}
 
With this code:
 
function q_view($q_view) {
    qa_html_theme_base::q_view($q_view);
    if (qa_opt('pt_enable_html_ad_code') && qa_opt('pt_q2a_ad_after_question')) {
        $this->output(qa_opt('pt_q2a_html_ad_codebox'));
    }                     
}
 
It is just changing q_view() with q_view($q_view) twice. Let me know if this fixes it.

 

by
Thank you very much pupi1985. I could fix my the error with changing the code. I thought I never change this again. Thank you very much again for your quick help. However still I have not activated simple ad manager plugin again.
by
Good to know it helped!
by
@pupi1985 thanks for providing quick solution to rgd.

@rgd, I will fix this issue in next version.
by
@ ProThoughts, Thank You. I am waiting for your new version.
...