I have added some ads at file qa-theme-base.php, using this:
***************
function main()
{
$content=$this->content;
$this->output('<DIV CLASS="qa-main'.(@$this->content['hidden'] ? ' qa-main-hidden' : '').'">');
switch ($this->template) {
case 'question':
include('ads_single.php');
break;
}
***************
ads_single.php is just a text file with my ads script.
As you can see I want to show ads before the title, but only on questions pages.
This works fine, but I want to show ads only for non-logged users. How can I verify this?