1
LindaAtl
How do you remove 'submit news' from News mod main menu?
  • 2006/7/23 13:22

  • LindaAtl

  • Just popping in

  • Posts: 17

  • Since: 2006/4/23


I'm using the News mod for articles in a magazine. Users should not be able to submit news but I can't locate where to remove this option from the main menu.

The two options currently listed in the main menu are archives (which is great) and then submit article (which needs to be removed). Under preferences it is marked to not allow anonomys users to submit an article, but it's still listed and when clicked says they don't have permission for that action.

Help is greatly appreciated!

Thanks,
Linda
http://www.townloafer.com

2
red_Slider
Re: How do you remove 'submit news' from News mod main menu?

U must edit xoops_version.php file and find and edit lines:
Quote:
// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][1]['name'] = _MI_NEWS_SMNAME1;
$modversion['sub'][1]['url'] = "submit.php";
$modversion['sub'][2]['name'] = _MI_NEWS_SMNAME2;
$modversion['sub'][2]['url'] = "archive.php";


(there are lines 91 and nexts)

Ok. As U can see there's a menu's structure (tree) for news module.
line 91 decripts those code
line 92 turns on module in the menu (module's index page) as a mainMenu link
lines 93-96 turns on these categories - "submit" and "archive" as a submenus.
If U want to delete or deactivate submenu in that way just change that code into:

Quote:

// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][1]['name'] = _MI_NEWS_SMNAME2;
$modversion['sub'][1]['url'] ="archive.php";



PS after that refresh your news module.

PS PS try using a multiMenu or another link menager for your xoops! it works perfectly


with greatings from Poland

3
LindaAtl
Re: How do you remove 'submit news' from News mod main menu?
  • 2006/7/23 13:54

  • LindaAtl

  • Just popping in

  • Posts: 17

  • Since: 2006/4/23


Perfecto! Thanks a million!

Login

Who's Online

334 user(s) are online (255 user(s) are browsing Support Forums)


Members: 0


Guests: 334


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits