bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

logged in as without form_login?

(2 posts)
  • Started 1 year ago by papercuts3
  • Latest reply from Trent
  • This topic is not a support question
  1. papercuts3
    Member

    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?

    Posted 1 year ago #
  2. 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

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.