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

Is there any way I can show the user a popup message when a question is posted and viewed for the first time?

I got a code to override the body.

<?php

class qa_html_theme_layer extends qa_html_theme_base {

function body_script(){

qa_html_theme_base::body_script();

// only load if enabled

if(qa_opt('ss_enabled')) {

$this->output('some code goes here ');

if() { // here I want to check that new question is posted event triggered. how do verify it here?

//var_dump($this -> content);

$this->output('<script type="text/javascript">alert("New question is posted!");

</script>');

}

} // end enabled

} // end head_script

}

1 Answer

+1 vote
by
selected by
 
Best answer
I got the workaround for this. You can analyze below plugin

https://q2a.io/product/addthis-social-sharing/
...