BP My Home
[resolved] My profile as My Home by default (4 posts)

  1. investacube
    Posted 2 years ago #

    Hi, yet another question I'm afraid. Is it possible to set members profile page as their landing page by default but allow them to deactivate on the front end? I haven't explained that very well but if possible I want it to work almost in reverse of the current settings


  2. imath
    Plugin Author

    Posted 2 years ago #


    I suggest you to set the usermeta on first member login using this code in the functions.php of your active theme :

    function investacube_set_myhome_page_at_first_login( $user_id ) {
    	bp_update_user_meta( $user_id, 'bpmh_user_home_page', 1 );
    add_action( 'bp_first_activity_for_member', 'investacube_set_myhome_page_at_first_login', 10, 1 );

    Old members won't be affected, but new one will.

  3. investacube
    Posted 2 years ago #

    Sorry to sound so stupid but what line do I put it on - at present the functions.php of my theme file (Infinity) has code on lines 1-23 of 24. Am I in the right place and do I put your code at the end?

  4. imath
    Plugin Author

    Posted 2 years ago #

    Just before the ?> closing tag if any but yes at the end.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BP My Home
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.