Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • i am adding the page by going to the pages section in the dashboard and simply adding a new page. In the html for that page i embed a php file. That makes the php page independent of buddypress.

    I guess a better way of looking at it would be, if i accessed an independant php page, how could i make it return the user id of buddypress.

    i created a buddypress page and that page embeds a php file to display, for testing purposes i just want that to display the users id. the file is called myphp.php and i have it in the buddypress directory.

    im new to php so i’m not sure how to do this. i feel like im supposed to include one of buddypress’s php files in order to call the function.

    so to answer your question, i guess neither?

    can someone help me out?

    i’m not sure what to do, do i need to include a php file? do i need to put my php file in a specific directory?

    that was my typo in the post, i did have $bp in my code.

    i just tried bp_loggedin_user_id()

    and i got this.

    Fatal error: Call to undefined function bp_loggedin_user_id()

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar