The login form is in this file:
bp-themesbp-defaultsidebar.php
start from ‘bp_before_sidebar_me’ , end at “bp_after_sidebar_login_form”
@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
Looks like you pasted the “if” , not close it yet, Try add this at the end of your form:
“
@imjscn
Still get the error. this is de code I am using now: http://pastebin.com/Yv1kTt8e
Try to delete yours totally, and paste this one: http://pastebin.com/YgpfXkrG
@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
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.
@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”?
I see. Probably BP functions not working well when WP is not multi. Need opinions from experienced BP users.
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.
@r-a-y
thank you for sending through the article. guess im too much of a beginner to find out how to achieve this…