Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Activity to Profile Page — is this okay to do?

  • @jjnw

    Participant

    I wanted to show Recent User Activity on bottom of profile page, so visitors didn’t have to Click on the Activity link in the menu to see the users most Recent Activity Posts.

    Basically, I took the code from:

    buddypress/bp-templates/bp-legacy/buddypresss/members/single/activity.php

    And placed it under here on line 56:

    buddypress/bp-templates/bp-legacy/buddypresss/members/single/profile.php

    I haven’t seen any errors. But is this safe to do.

    I tested and tested, and couldn’t find any errors on screen or in logs.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @henrywright

    Moderator

    Hi @jjnw

    I haven’t tested your solution but wanted to point out any modifications you make to core files such as buddypress/bp-templates/bp-legacy/buddypresss/members/single/profile.php will be lost on upgrade of the plugin.

    There is a way around this! Take a look at the Template Hierarchy article. There isn’t much to it actually. All you need to do is create a folder inside your theme called /buddypress/. All BuddyPress templates you create go inside here.

    So for example: Create /wp-content/themes/your-theme/buddypress/members/single/profile.php

    Then simply add your code changes to profile.php

    @jjnw

    Participant

    Ah, great points. Thanks for that information!

    J

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Activity to Profile Page — is this okay to do?’ is closed to new replies.
Skip to toolbar