Log in

View Full Version : Customize Links in Usercp Nav Menu


BigTrucK72
11-18-2005, 04:29 PM
Trying to add / remove certain links from the UserCP nav menu.

After adding a link I noticed it wasn't being highlighted ala class='alt1' so I went into the backend a bit and edited the functions_user.php file to add the $navclass title to the $cell array, but it still doesn't work.

Any suggestions?

p.s. Axed this over on .com but they sent me over here. :ermm:

Adrian Schneider
11-22-2005, 01:35 AM
It's best to modify $cells via plugin (hook: usercp_nav_start).

Assuming your adding links to it, you need a few things in your file:

require_once(DIR . '/includes/functions_user.php');this allows you to use the function which highlights your new links.

construct_usercp_nav('Name_Of_Cell');
of course replacing Name_of_Cell with your modified/added cells in the $cells array.

BigTrucK72
11-22-2005, 03:50 AM
Cool... i'll check it out... thx.