Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
458 views
in Q2A Core by

 

In qa-theme-base.php
 
find
 
$this->main();
 
replace by
 
if(qa_get_logged_in_userid())
            {
            $this->main();
 
}
 
This will only display pages to uses that have logged in.. but the problem is that in 1.5 if you click logon or register nothing is displayed because the user has not logged in.
 
Q2A version: 1.5

1 Answer

0 votes
by
replace in qa-theme-base.php

elseif (strpos($key, 'q_list')===0)
                $this->q_list_and_form($part);

by

elseif (strpos($key, 'q_list')===0 && qa_get_logged_in_userid())
                $this->q_list_and_form($part);
...