Welcome to Geeklog, Anonymous Friday, April 19 2024 @ 03:14 am EDT

Geeklog Forums

Menu 1.6.1 and "Comment Preferences"


Status: offline

soydog

Forum User
Chatty
Registered: 08/18/03
Posts: 49
I have the Menu plugin 1.6.1 installed and working fine. I have added the User and Admin blocks to be included in one menu using this plugin and disabling the default separate blocks that come by default.

I just realized though when I do this, under the User menu, there is now an additional "Comment Preferences" that shows up, but clicking it reveals that this is identical to the "Preferences" that is already there.

The link for "Preferences" looks like this:
/usersettings.php?mode=preferences

and the link for "Comment Preferences" looks like this:
/usersettings.php?mode=comments

This is obvioulsy redundant and confusing.

How would I hide this "Comment Preferences"?
Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
 Quote

Status: offline

soydog

Forum User
Chatty
Registered: 08/18/03
Posts: 49
I figured it out myself! Big Grin

Go to geeklog dir > plugins > menu > functions.inc


In functions.inc, under function MNU_userMenu():

just delete:

$T->set_var( 'option_url', $_CONF['site_url'] . '/usersettings.php?mode=comments' );
$T->set_var( 'option_label', $LANG01[63] );
$T->set_var( 'option_count', '' );
$retval .= $T->parse( 'item', 'option' );


Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
 Quote

All times are EDT. The time is now 03:14 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content