Shop Categories

X

Buddy Press, wpDiscuz

Home Forums Agama Pro Buddy Press, wpDiscuz

Topic Resolution: Resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3692
    Marion
    Participant

    Hello Jerry,

    This is not a support but a help question: Where have I put this:

    “Please add the code below in current active theme’s functions.php file
    This code will integrate BuddyPress profile URL with wpDiscuz. BuddyPress Display Names and Avatars will be integrated automatically.

    ////////////////////////////////////////////////////////////////////////
    // BuddyPress Profile URL Integration //////////////////////////////////
    ////////////////////////////////////////////////////////////////////////
    add_filter(‘wpdiscuz_profile_url’, ‘wpdiscuz_bp_profile_url’, 10, 2);
    function wpdiscuz_bp_profile_url($profile_url, $user) {
    if ($user && class_exists(‘BuddyPress’)) {
    $profile_url = bp_core_get_user_domain($user->ID);
    }
    return $profile_url;
    }”

    Thanks in advance for help.

    Marion

    #3693
    Jerry
    Keymaster

    As you already get answer you need to put it in functions.php file which is located in:
    wp-content/themes/agama-pro/functions.php

    But since your modifications will be lost on every theme update you should switch to Agama Pro Child theme and add that code to child theme functions.php file which is located in (you need to install and activate child theme first):
    wp-content/themes/agama-pro_child/functions.php

    Best Regards

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.