The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Problem with links ...
 
Share:
Notifications
Clear all

Problem with links to user's profile

4 Posts
2 Users
0 Reactions
1,052 Views
Posts: 49
Topic starter
(@hannes)
Trusted Member
Joined: 5 years ago

Hey guys,

I noticed a very weird behaviour with the links to the user's profile, more specifically the URL to my user profile in the comment section. 

Compare the links in those two posts:

Screenshots:

In the first post, the link to my profile, when clicking on my username, looks like this: https://www.meeplemansion.de/profil/hannes/

In the second post, it looks like this: https://www.meeplemansion.de/profil/johannes/

My nicename is indeed "johannes", but it seems that in the first post, wpdiscuz uses my display name/nickname for the URL for some reason. 

I have no clue why this is happening. As the display name is not unique, I don't think it should be like this. 

Regards

Johannes

3 Replies
Asti
Posts: 7661
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi Johannes,

Please follow the steps below:

1. Open the wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php file

2. Find the following lines (806-807):

um_fetch_user($user["u_id"]);
$user_link = um_user_profile_url();

3 Replace the code in the lines  with this one:

$user_link = um_user_profile_url($user["u_id"]);

4. Delete all kind of caches and check again. 

Reply
Posts: 49
Topic starter
(@hannes)
Trusted Member
Joined: 5 years ago

Hi Asti,

I did that and cleared all caches, but the URL is still not correct.

Regards

Johannes

Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

Are you sure those are the same users? Please check the user IDs to make sure. If those are the same, you'll need to contact the UM plugin support with this issue. wpDiscuz just uses the UM plugin functions in this case.

Reply
Share: