Hi gidgreen,
Thanks for your suggestion. I made an advanced Theme and my work is done. I would like to post the code snippet here, so that anyone who wants to do the same can be benefited.
My Plugin Page had a small code to prevent the Page being viewed directly by unathorized people:
function process_request($request) {
if($level == null || $level < QA_USER_LEVEL_MODERATOR)
qa_fatal_error('Only Moderators/Admins can access this page');
....
....
}
in the advanced theme, qa-theme.php:
class qa_html_theme extends qa_html_theme_base {
function nav_item($key, $navlink, $class, $level=null) {
$user_level = qa_get_logged_in_level();
if($user_level == null || $user_level < QA_USER_LEVEL_MODERATOR) {
if(isset($navlink['url']) && $navlink['url'] == './qa-rg-reporting-page')
return;
}
qa_html_theme_base::nav_item($key, $navlink, $class, $level);
}
}
}
Here "./qa-rg-reporting-page" is the location of my page. I tried using the Key parameter, but it returns a Value like "custom-5" or something, which may not be a good idea to check, so I used the url part.