1
dargosch
WF-Section.. How do I remove the Popular/Rated/archives entry in menu?
  • 2005/8/3 13:59

  • dargosch

  • Friend of XOOPS

  • Posts: 118

  • Since: 2004/12/21


Hi,

I am planning to use the WF-Section module for some static contets that will be imported from HTML files. However, I do not want the Popular/Rated/archives entries to appear in the menu? Can I remove them?

/Fredrik
My Gentoo + PVR-350 + IVTV + MythTV blog is on
http://gentoomythtv.blogspot.com/

2
mboyden
Re: WF-Section.. How do I remove the Popular/Rated/archives entry in menu?
  • 2005/8/3 14:54

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


I use wfsections. This question was asked on the WF-Sections site in their old forums (their site has been redesigned and now you have to search their old forums and their new forums for answers because they didn't migrate all the data).

Their answer, however, removed all of the submenu items. You only want to remove the non-submission ones.

Try this: in the xoops_version.php file (line 55 in 2.0.1):

/* 
$modversion['sub'][$i + 2]['name'] = _MI_WFS_POPULAR;
$modversion['sub'][$i + 2]['url'] = "topten.php?counter=1";
$modversion['sub'][$i + 3]['name'] = _MI_WFS_RATEFILE;
$modversion['sub'][$i + 3]['url'] = "topten.php?rate=1";
$modversion['sub'][$i + 4]['name'] = _MI_WFS_ARCHIVE;
$modversion['sub'][$i + 4]['url'] = "archive.php";
*/

Some menu items are dynamically pulled from the database, so you have to either modify the code or remove the data from the database. However, the ones that you specify are not pulled from the database.

Hope that helps.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

3
dargosch
Re: WF-Section.. How do I remove the Popular/Rated/archives entry in menu?
  • 2005/8/4 9:03

  • dargosch

  • Friend of XOOPS

  • Posts: 118

  • Since: 2004/12/21


Thanks, that did the trick.

/Fredrik
My Gentoo + PVR-350 + IVTV + MythTV blog is on
http://gentoomythtv.blogspot.com/

Login

Who's Online

402 user(s) are online (360 user(s) are browsing Support Forums)


Members: 0


Guests: 402


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