The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Profile URL not wor...
 
Share:
Notifications
Clear all

Profile URL not working for all users?

9 Posts
2 Users
0 Likes
1,533 Views
Posts: 5
Topic starter
(@devgreg)
Active Member
Joined: 3 years 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: 7105
 Asti
Support
(@asti)
Illustrious Member
Joined: 6 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
Posts: 5
Topic starter
(@devgreg)
Active Member
Joined: 3 years 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: 6 years ago

Illustrious Member
Posts: 7105

@devgreg,

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

Reply
(@devgreg)
Joined: 3 years ago

Active Member
Posts: 5

@asti I have sent the credentials. Thanks!

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

Illustrious Member
Posts: 7105

@devgreg,

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

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

Illustrious Member
Posts: 7105

@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)
Joined: 3 years ago

Active Member
Posts: 5

@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: 6 years ago

Illustrious Member
Posts: 7105

@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: