1
milita
Delete menusub of news
  • 2006/4/30 11:07

  • milita

  • Just popping in

  • Posts: 10

  • Since: 2005/12/27


How i delete the menusub: submit and archive of my menumain?

Thanks

2
rabideau
Re: Delete menusub of news
  • 2006/4/30 12:37

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


Re-write your theme to stop the display of the undesired fields.

Be aware that every Menu entry will behave in accordance with your theme. SO if there's only one item for which you don't weant submenus, your code will need to be explicit.
Pax vobiscum,
...mark

may the road rise to meet your feet!

http://treemagic.org

3
web-M
Re: Delete menusub of news
  • 2006/4/30 13:22

  • web-M

  • Just popping in

  • Posts: 100

  • Since: 2006/1/2 2


- go in the root to the map modules/news.
- download xoops_version.php.
- open this file with an editor.
- search for:
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";


- changes this into:
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";


- save the changes in the orginal file (xoops_version.php)
- upload this new file back into the place you had downloaded it from (modules/news)
- go to the adminsite and update you news module. You do that bij chosing 'system admin' then go to 'modules', there you search for the installed news module and select in the most right colom 'update' (this is the square box next to the green circle).
When you now go to you homepage you'll see that the items are dissapeared.

Good luck

Login

Who's Online

275 user(s) are online (238 user(s) are browsing Support Forums)


Members: 0


Guests: 275


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