PDA

View Full Version : $navclass use


NoPretender
09-09-2009, 01:23 PM
I'm moving two custom pages and using USERCP_SHELL to incorporate the pages into the User CP. When I view the pages $navclass is basically non-existant and the menu is black (custom style). What am I forgetting to include/missing to get $navclass to display in the menu? I'm just using alt2 for the custom links in the menu so that's fine, but how do I include the navclass variable?

Thanks for your help. I'm assuming it's easy, but can't find it.

Lynne
09-09-2009, 02:08 PM
So you are writing your own custom pages? You will need to include the code from the member.php page that defines $navclass if you want to use it on your custom page. ($navclass is defined in the function construct_usercp_nav, which is in functions_user.php)

NoPretender
09-10-2009, 12:39 PM
Got it, thanks Lynne!