bp profile menu adding more menu items
-
@modemlooper
you did an awesome job with creating the menu option for bp-profile-menu, thank you.Just one thing i noticed, i can’t add other menu items under the profile menu. I was able to do this before you created the menu option by editing the bp-profile-menu.php and adding
- tags within the menu structure, so that these items only showed when user is logged in.
But now when I used the add menu funtion instead it allows me to add the menu link and move it under the profile menu but now it shows like any other menu that is publicly viewable when not logged in.
HOWEVER; once the user logs in then there menu items do show under the bp profile menu. So the key is to keep them hidden until user logs in.
Any suggestions how to work around this? Should I edit the bp-profile-menu.php like before?
Thank you for your feedback.
- tags within the menu structure, so that these items only showed when user is logged in.
-
What items are you adding? Only profile links are hidden when logged out. If you add a link to say a forum topic it won’t be hidden.
There is a way to hide links. The current release is experimental. In next update there will be more items to add to a menu and I’ll explain how to hide other links on log out.
Please be patient, I’m testing different things to make it the best it can be.
Awesome, thank you for the great support that you provide.
I am trying to get away from using the top admin bar and having to go to the dashboard to access the posts, comments and media. So I was able to add the link within your file so that when you logged in you would see the link.
Below is some of the code I added to your bp-profile-menu.php menu structure between line 33 and 59 sub menu items.
$items .= '<li id="menu-item" class="menu-item"><a href="http://thevillageblog.com/wp-admin/edit.php">My Articles</a></li>';
**NOTE: trying to include the code in this post but it shows as html instead of text. If you want I can email the code to you or is there another way to include code in a post and show it as text?
I tried the same concept using the menu panel instead but did not get the same effect. If you have a trick as to how to hide the links until the user has logged in then I would be very grateful. Otherwise the only thing I can think of is to edit your code again which i’d rather not do.
Thanks again for your help.
Wrap your code in back ticks to show it here.
This will hide the menu item but the url wont route to a user
EDIT: broken image link
- The topic ‘bp profile menu adding more menu items’ is closed to new replies.