• Resolved derekwcodes

    (@envyskins)


    I was wondering has anyone for this BuddyPress integration to stay on the same page when you click a wpdiscuz profile URL.

    // 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;
    }

    This code opens a new tab or window when I click on a commenter’s name to go to their profile. I need it to stay on the same page when opening their profile.

    Any help will be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support gVectors Support

    (@gvectorssupport)

    Hi @envyskins,

    Please put the following CSS codes in the active theme’s functions.php file:

    add_filter('wpdiscuz_avatar_link_attributes', function ($atts) {
    	$atts['target'] = '';
    	return $atts;
    });
    add_filter('wpdiscuz_author_link_attributes', function ($atts) {
    	$atts['target'] = '';
    	return $atts;
    });

    The codes should solve the issue.

    Plugin Support gVectors Support

    (@gvectorssupport)

    Please put the following CSS codes in the active theme’s functions.php file:

    Sorry, I meant PHP code, not CSS.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Profile URL?’ is closed to new replies.