1
vinit
How to hide submenu?
  • 2004/12/28 12:10

  • vinit

  • Just can't stay away

  • Posts: 530

  • Since: 2004/1/10


Hi,

Is there someway i can hide the "Popular" "Top Rates" submenus from "WF Section" "WF Downloads"

And can "Submit news" under News can be hidden for annonymous user.

2
wammes
Re: How to hide submenu?
  • 2004/12/28 12:18

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


comment out the $modversion['sub'] lines in xoops_version.php of the module.
putting // before the line is commenting the line out.


BTW: USE the search function it has been asked before!


Good luck.

3
vinit
Re: How to hide submenu?
  • 2004/12/28 13:23

  • vinit

  • Just can't stay away

  • Posts: 530

  • Since: 2004/1/10


thx,

Could not find how to hide the submit option in news for anonymous user.

4
Mithrandir
Re: How to hide submenu?

if ($GLOBALS['xoopsUser']) {
    
$modversion['sub'][xx]['name'] = [...];
    
$modversion['sub'][xx]['url'] = [...];
}

5
jmass
Re: How to hide submenu?
  • 2004/12/28 13:43

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


Sorry for my ignorance Mith, But would that work with register_globals off? Or am I way off base here?

6
chapi
Re: How to hide submenu?
  • 2004/12/28 13:58

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


Maybe this one is better ..

if ( is_object($xoopsUser) ) {
    
$modversion['sub'][xx]['name'] = [...];
    
$modversion['sub'][xx]['url'] = [...];
}

Login

Who's Online

363 user(s) are online (328 user(s) are browsing Support Forums)


Members: 0


Guests: 363


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