I’ve just hacked together some code to create a dynamic login box in the menu on WP.
When the user is logged out, it displays the login form complete with “register” and “lost password” links.
Once the user is logged in, it displays “Welcome, (their name)!” and a menu.
The menu can contain generic items such as links to profiles/etc, but then the code can be modified to display additional links depending on what access level the user has.
Some knowledge of PHP is required.
You can see it working on my blog at http://www.wellardsworld.com/
The code is at http://www.wellardsworld.com/code/wp-user.phps
Suggestions, comments and improvements all welcomed!
- You must be logged in to reply to this topic.