MyBB Community Forums

Full Version: Add item to usercp menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm not really up on all of the aspects of mybb. Is there a way to add a new navigation section to the menu of usercp, with sections of your choice from within a module/plugin?
You would have to modify the usercpnav templates.
If I go about this, do you think the new release of MyBB will totally flip things up-side-down and make me start all over?
I don't think the next release would affect your templates much, but further than that I can't really say at this point since it's a long way off.
When I try to edit things in "User Control Panel Templates" it doesn't let me. Says forbidden Sad
It's probably a problem with mod_security being installed on your server. You can search these forums for mod_security for other threads relating to this problem.

This problem should be fixed in the next major version.
Huh. I didn't even think about that. You are correct Smile
Canadian Wrote:When I try to edit things in "User Control Panel Templates" it doesn't let me. Says forbidden Sad

I've also problems to expand the User Control Panel Templates
It says: You don't have permission to access /admin/templates.php on this server.

I was looking for the template to delete the avatar url in the userCP
http://community.mybboard.net/showthread...059&page=3

this solved the Forbidden problem for me
Another solution is to insert your link into the language file. Open the file usercpnav.lang.php and search for
$l['ucp_nav_edit_profile'] = "Edit Profile";
Replace the line with:
$l['ucp_nav_edit_profile'] = "Edit Profile</li><li><a href=\"http://www.link.com\">Your Link</a>";
Of course you can change the position of your link by changing another line. Wink