Info
- 2 posts
- 2 voices
- Started 2 years ago by nada122
- Latest reply from gerikg
- This topic is not resolved
Registration/Log In Link in homepage?
-
- Posted 2 years ago #
I have bbpress integrated with my wordpress... and I'm trying to have a register link and log in with username and password box at the top of my homepage like this: http://www.thefrozencake.com/wp-content/themes/urbanelements/images/Picture%201.png next to my logo above my navigation here: http://www.thefrozencake.com/wp-content/themes/urbanelements/images/Picture%202.png
I also want it to say Logged In | (view profile page) when a user is logged in. And I want the register link to take the user to a register page that I create (with more than just username/password.) I only want people to log in when they want to post to the forum, but they can leave comments on posts and read all they want.
How do I go about coding that and where? As you can tell, I'm definitely new to the php thing and learning as I go along. Any help would be great!
-
- Posted 2 years ago #
part 1. This will work in BBpress only:
<?php if ( !in_array( bb_get_location(), array( 'login-page', 'register-page' ) ) ) login_form(); ?>put that in the header.php I'm not sure how to do it in WP to make it work.
part 2. edit the logged-in.php in your bb theme -
You must log in to post.