Skip to:
Content
Pages
Categories
Search
Top
Bottom

logged in as without form_login?

  • Ok, the form_login function calls for a login form when the user is not logged in and a View Your Profile link when the user is logged in. Now I want to remove the login form because there is already another page to log in (at some stage both are displayed on a single page which looks ridiculous). But I want to keep the View Your Profile etc. info.

    This is the problem. Any way to solve it is welcome bu I’m thinking that I would need some kind of “if logged in then do this else do that” kind of addition. So how can we know if a user is logged in and use that info to build a if () structure?

Viewing 1 replies (of 1 total)
  • I think it is as simple as editing a couple files:

    /path-to-bbpress/bb-templates/login.php

    /path-to-bbpress/bb-templates/login-form.php

    Just change them to what information you want to display and upload them to:

    /path-to-bbpress/my-templates/login.php

    /path-to-bbpress/my-templates/login-form.php

    Uploading to my-templates is the key because it doesn’t change the original login form pages. If you make a mistake, you just delete the one in that folder and bbPress will use the originals in bb-templates.

    Trent

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.