Search
Close
AI Search
Classic Search
Notifications
Clear all
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Hello friends
I played around with the redirection to the profile if you click on a username.
The link to the user commentsecction is:
https://www.blueaustria.at/members/blueaustria/comments/
where "blueaustria" is the loginname.
I tried the following code, but it doesnt work for me, i hope you can help me =)
//WP Discusz Profile Redirection
add_filter("wpdiscuz_profile_url", function ($profile_url, $user) {
if ($user->display_name) {
$profile_url = site_url() . "/members/" . $user->display_name . "/comments/";
}
return $profile_url;
}, 10, 2);
Posted : 13/02/2022 9:52 pm
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
can anyone correct my code please?
Posted : 17/02/2022 2:40 am
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Please navigate to Dashboard > wpDiscuz > Settings > General Settings tab press the "Purge Comment and User Caches" button and check again. If you have some other cache plugins delete those caches and check again.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
Posted : 17/02/2022 3:18 pm

