I see that when users have points a "My Points" menu item shows up as a child item of "My account".

Can this menu item be moved somewhere else? If so, how?

I would either want to set it so it is not a child of "My Account" or move it to another menu.

If it can't be moved, can it be removed?

Comments

kbahey’s picture

Try changing userpoints.module for this item from MENU_NORMAL_ITEM to MENU_SUGGESTED_ITEM, then clear all caches (admin/settings/performance) and see if you can now move it elsewhere.

If that does what you want, please report back so I fix it for everyone.

OneTwoTait’s picture

I don't think it worked..

There isn't even a visible menu item for "My points" on admin/build/menu-customize/navigation anyways so I don't know how I would move it. The menu item just automatically appears for users with points

After I made the change you mentioned the "Points settings" menu item was disabled, then I re-eneabled it.

kbahey’s picture

Are you sure you changed the correct menu item?

Make sure that you changed the correct item, then clear all caches, then go to admin/build/menu and enable the suggested item.

OneTwoTait’s picture

I see now that for the "My Points" item to show up in admin/build/menu-customize/navigation for user #1, user #1 has to have points.

So, it would be nice if the menu item always showed up for user #1 or, better yet, just always showed up on admin/build/menu-customize/navigation .

kenorb’s picture

I have the same problem.
My Points doesn't show up in Navigation menu from the admin.
Maybe because I've excluded admin role from getting points.
But anyway it should show up in Navigation menu list for all users which have menu administrator permission.

atelier’s picture

I also bumped into this problem. I wanted to move the "My Points" menu item from the Navigation menu to another one I use for members. But, I wasn't able to see the item until I granted at least one point to the admin account.

From a usability standpoint, I'd suggest changing the visibility criterion of this menu item for at least the superadmin account.

berdir’s picture

Status: Active » Closed (duplicate)

I've just commited a patch to show that menu item when the user doesn't have any points yet.

superfedya’s picture

Component: Code: userpoints API » Code: userpoints

How I can remove/disable My Points from Menu?
I changed (for $items['myuserpoints']) MENU_NORMAL_ITEM to MENU_SUGGESTED_ITEM and disable it in the admin/build/menu-customize/navigation. But it's always appeared in the menu :(

Thanks

erik seifert’s picture

Create a module

my_module.module


function my_module_menu_alter(&$items) {
   unset($items['path/you/do/not/want']);
}

Flush Menu Cache