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
}