2
I dont know how you have set up the script, so can't assist there.
Another way to go is this:
Edit: second thoughts, this might not be useful as you disable "Allow anonymous users to post news articles", anyway, but this would at least hide the "submit-news" sub-menu from anon users.
In News "Preferences" you can of course activate "Auto approve news stories without admin intervention" But the "submit news" sub-menu appears to anon users. This can be taken out.
To do this go to "xoops_version.php" in the root of the News module folder and disable the submenu called "submit news" from the view of anon users like this:
Look for the "Menu" section and change it to this:
// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][2]['name'] = _MI_NEWS_SMNAME2;
$modversion['sub'][2]['url'] = "archive.php";
global $xoopsUser;
if(!empty($xoopsUser)) {
$group = $xoopsUser->getGroups();
if (in_array(2, $group)) {//and other group ids
$modversion['sub'][1]['name'] = _MI_NEWS_SMNAME1;
$modversion['sub'][1]['url'] = "submit.php";
}
}
the line: "if (in_array(2, $group)) {
..refers to group "2", (registered users) which means the sub-menu will not be visible to the anon users--you can change the code around a bit if you wish "archive" hidden as well
(I found similar code for this in another post, just changed it a little bit to show "archive")
regards