The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Profiles in wpDiscu...
 
Share:
Notifications
Clear all

Issue [Solved] Profiles in wpDiscuz are not compatible with the FluentCommunity plugin.

13 Posts
3 Users
2 Reactions
216 Views
Posts: 1
Topic starter
(@hamzaataouat)
New Member
Joined: 1 month ago

The profile files in wpDiscuz are not compatible with the FluentCommunity plugin. How can I make the personal accounts in the comments compatible with FluentCommunity and redirect me to the profile in FluentCommunity?Change from: example.net/author/xxx to: example.net/portal/u/xxx

12 Replies
Posts: 34
(@assafmanor)
Trusted Member
Joined: 3 years ago

+1 for that!

Asti
Posts: 8015
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

Hi,

You can use the wpdiscuz_profile_url hook:  https://wpdiscuz.com/docs/codex/filters/wpdiscuz_profile_url/

10 Replies
(@assafmanor)
Joined: 3 years ago

Trusted Member
Posts: 34

@asti 

Thanks!

I tried using it, but it didn't work. Even just with a dummy link like:

add_filter('wpdiscuz_profile_url', function ($profile_url, $user) {
return home_url();
}, 10, 2);

 

On clicking on a user comments profile picture/name it redirected me to:

https://www.domain-name.com/author/user-name/

(@assafmanor)
Joined: 3 years ago

Trusted Member
Posts: 34

@asti I'm still waiting for your reply.

Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8015

@assafmanor 

Could you please confirm whether the WordPress URLs are being redirected to the correct page as intended?

(@assafmanor)
Joined: 3 years ago

Trusted Member
Posts: 34

@asti 

I'm not sure what's unclear in what I wrote that stirred this question. I wrote clearly:

"On clicking on a user comments profile picture/name it redirected me to:

https://www.domain-name.com/author/user-name /"

Meaning, it redirects to the default author page and not the homepage as it should have ("return home_url();").

Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8015

@assafmanor 

We've tested the hook code multiple times, and it works as expected. Please try deactivating the profile plugin you're using and check whether the redirection functions correctly.

Also, make sure to clear all caches before testing.

(@assafmanor)
Joined: 3 years ago

Trusted Member
Posts: 34

@asti 

I deactivated the plugin and nothing changed. Also cleared all the cache and still it redirected to the author page and not the custom page set with the filter.

Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8015

@assafmanor 

This kind of issue is usually caused by a conflict with other plugins or the active theme.

We recommend deactivating all plugins and switching to a default WordPress theme. Then check how the filter works. After that, activate your plugins and theme one by one, checking after each activation to find the problem maker. 

(@assafmanor)
Joined: 3 years ago

Trusted Member
Posts: 34

@asti I deactivated all the plugins and changed to the theme Twenty Twenty-Four. And still - it doesn't work.

(@assafmanor)
Joined: 3 years ago

Trusted Member
Posts: 34

@asti Ok, it works. There was no issue or conflict with any plugin/theme. What solved the problem was going to the settings ->User Authorization and Profile Data and just click save.

For anyone in the future that faces this problem.

Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8015

@assafmanor,

Thank you for letting us know. Glad to hear that the issue is solved.

We're going to mark this thread as resolved. Feel free to open a new topic if you have further questions.

Share: