Skip to:
Content
Pages
Categories
Search
Top
Bottom

How display login form on website

Viewing 12 replies - 1 through 12 (of 12 total)
  • @imjscn

    Participant

    The login form is in this file:
    bp-themesbp-defaultsidebar.php
    start from ‘bp_before_sidebar_me’ , end at “bp_after_sidebar_login_form”

    @ultimateuser

    Participant

    @imjscn

    Thanks for your reply.

    If I copy/paste the code on my page I get the following error:

    Parse error: syntax error, unexpected T_ELSE in /home/domain.nl/public_html/page.php on line 204

    Just to be clear I dont want the login form on a wordpress/bp page but on my own site.

    Hope you can help

    @imjscn

    Participant

    Looks like you pasted the “if” , not close it yet, Try add this at the end of your form:

    @ultimateuser

    Participant

    @imjscn

    Still get the error. this is de code I am using now: http://pastebin.com/Yv1kTt8e

    @imjscn

    Participant

    Try to delete yours totally, and paste this one: http://pastebin.com/YgpfXkrG

    @ultimateuser

    Participant

    @imjscn

    When pasting it on a test.php page I get this error again:

    Fatal error: Call to undefined function is_user_logged_in() in /home/domain/public_html/test.php on line 26

    On a test.html I get some kind of login form like this: http://uploadpic.org/v.php?img=ePvXqheqAQ

    @imjscn

    Participant

    That code I pasted works on my site. Not sure what’s the cache on your site.
    When you said “I dont want the login form on a wordpress/bp page but on my own site”, do you have WP multisite installed and BP activated? If not, that might be a problem.

    @ultimateuser

    Participant

    @imjscn

    I have WP installed – but not multisite. I also have BP activated.

    WP is installed on http://www.domain.com/wordpress/

    The page I want to have the form on is http://www.domain.com/test.html or test.php

    What do you mean with “Not sure what’s the cache on your site”?

    @imjscn

    Participant

    I see. Probably BP functions not working well when WP is not multi. Need opinions from experienced BP users.

    @ultimateuser

    Participant

    Can anyone else help?

    @r-a-y

    Keymaster

    test.php is not a WordPress page, therefore you need to call WordPress in your custom script before you can use WordPress / BuddyPress functions.

    Read this:
    http://wpengineer.com/1038/embed-wordpress-functions-outside-wordpress/

    There’s a bunch more articles like this on the web. Do a search on Google to find out more.

    @ultimateuser

    Participant

    @r-a-y

    thank you for sending through the article. guess im too much of a beginner to find out how to achieve this…

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How display login form on website’ is closed to new replies.
Skip to toolbar