The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Link from username ...
 
Share:
Notifications
Clear all

[Solved] Link from username to commentsection in profile

3 Posts
2 Users
0 Reactions
1,387 Views
Posts: 107
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
(@orakel)
Estimable Member
Joined: 5 years ago
[#3701]

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);

2 Replies
Posts: 107
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
(@orakel)
Estimable Member
Joined: 5 years ago

can anyone correct my code please?


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

Illustrious Member
Posts: 8208
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

@orakel,

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. 


Share: