Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

How will i remove the Questions/Unasnwered/Tags/Users/Ask Question Panel

0 votes
Hi,

My requirement is that i need to remove the Questions/Unasnwered/Tags/Users/Ask Question Pane from the page when user needs to type a question.

Also i need to remove the MyAcoount ,Logout links which are on the top along with the search box.

Can somebody please let me know which file i need to modify as i have no experience workign on php

Thanks
asked Jul 16, 2010 in Q2A Core by bhargavay5

1 Answer

+2 votes
You should be able to do this with an advanced theme: http://www.question2answer.org/advanced.php

In your qa-theme.php file, look for the function "nav_list". The contents currently look like this:

      $this->output('<ul class="qa-nav-'.$navtype.'-list">');
      foreach ($navigation as $key => $navlink)
        $this->nav_item($key, $navlink, $navtype);
      $this->output('</ul>');

Replace it with this:

    if ( $this->template != 'ask' )
    {
      $this->output('<ul class="qa-nav-'.$navtype.'-list">');
      foreach ($navigation as $key => $navlink)
        $this->nav_item($key, $navlink, $navtype);
      $this->output('</ul>');
    }
answered Jul 18, 2010 by DisgruntledGoat
Thank you very much!!! it worked !!!