wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

Profile URL not working for all users?  


DevGreg
Posts: 4
Topic starter
(@devgreg)
New Member
Joined: 2 months ago

Hi all,

I've enabled the "Enable Profiles URL" to allow users to view profiles. However, this only seems to be working for certain users even though ALL users do have a URL. Seems to only work for users who have made a post previously, see screenshot below:

Anyone know why this is happening?

Thanks, Greg.

8 Replies
Asti
Posts: 1940
 Asti
Support
(@asti)
Support member
Joined: 3 years ago

@devgreg,

The screenshot is missing. Please add it to allow us to check the issue. 

Also please leave some example URL as well. 

Reply
DevGreg
Posts: 4
Topic starter
(@devgreg)
New Member
Joined: 2 months ago
image

Hey Asti, here is the screenshot. The URL is private, as it is a membership website. Is there anyway I can send over some login credentials privately?

Reply
6 Replies
Asti
 Asti
Support
(@asti)
Joined: 3 years ago

Support member
Posts: 1940

@devgreg,

Sure, please send it to info[at]gvectors.com email address. 

Reply
DevGreg
(@devgreg)
Joined: 2 months ago

New Member
Posts: 4

@asti I have sent the credentials. Thanks!

Reply
Asti
 Asti
Support
(@asti)
Joined: 3 years ago

Support member
Posts: 1940

@devgreg,

We're going to check the issue. Please wait a bit. I'll update the topic asap. 

Reply
Asti
 Asti
Support
(@asti)
Joined: 3 years ago

Support member
Posts: 1940

@devgreg,

wpDiscuz has integration only with the BuddyPress, wpForo and Ultimate Member plugins. If those plugins are not installed, The URLs redirect only admins, authors and editors to their author pages (if they have any posts). 

However, developers added the custom code in your active theme functions.php file. Now it works fine in your case as well. 

Reply
DevGreg
(@devgreg)
Joined: 2 months ago

New Member
Posts: 4

@asti Hey Asti, great! That seems to be working fine. Could you please highlight the custom code you have added within functions.php? Sorry, but I'm not fluent in the language and would like to move it into my Snippets plugin.

Thanks again, Greg.

Reply
Asti
 Asti
Support
(@asti)
Joined: 3 years ago

Support member
Posts: 1940

@devgreg,

The following code was added in your active theme functions.php file: 

add_filter("wpdiscuz_profile_url", function ($profile_url, $user) {
    if (!empty($user->ID)) {
        $profile_url = get_author_posts_url($user->ID);
    }
    return $profile_url;
}, 999, 2);
Reply
Share: