<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Change user profile address - General Discussions				            </title>
            <link>https://wpdiscuz.com/community/general-forum/change-user-profile-address/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 13 Sep 2026 02:49:42 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Change user profile address</title>
                        <link>https://wpdiscuz.com/community/general-forum/change-user-profile-address/#post-20863</link>
                        <pubDate>Sat, 27 May 2023 21:46:17 +0000</pubDate>
                        <description><![CDATA[Thanks...it finally workedApparently, the cache was causing the functions to not workThank you dear and honorable AstiBe successful and happy]]></description>
                        <content:encoded><![CDATA[<p>Thanks...it finally worked<br />Apparently, the cache was causing the functions to not work<br />Thank you dear and honorable Asti<br />Be successful and happy</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/general-forum/">General Discussions</category>                        <dc:creator>leo</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/general-forum/change-user-profile-address/#post-20863</guid>
                    </item>
				                    <item>
                        <title>RE: Change user profile address</title>
                        <link>https://wpdiscuz.com/community/general-forum/change-user-profile-address/#post-20854</link>
                        <pubDate>Fri, 26 May 2023 10:46:15 +0000</pubDate>
                        <description><![CDATA[Thank youI tested the same function as this, but it doesn&#039;t workDo I have to make a special and additional setting in Discuz so that this function works properly?I used the Jet Engine plugin...]]></description>
                        <content:encoded><![CDATA[<p>Thank you<br />I tested the same function as this, but it doesn't work<br />Do I have to make a special and additional setting in Discuz so that this function works properly?<br />I used the Jet Engine plugin profiler and by default only the user can click on his avatar and username to open his user page with the default mysite template.<br />com/author/username, while I need all users to be able to enter the public user profile page with the template mysite.com/users/user by clicking on the avatar and username of each desired user in the comments section of Discuz. be id/divar</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/general-forum/">General Discussions</category>                        <dc:creator>leo</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/general-forum/change-user-profile-address/#post-20854</guid>
                    </item>
				                    <item>
                        <title>RE: Change user profile address</title>
                        <link>https://wpdiscuz.com/community/general-forum/change-user-profile-address/#post-20842</link>
                        <pubDate>Fri, 26 May 2023 07:53:01 +0000</pubDate>
                        <description><![CDATA[The function below should work fine: 
function change_wpdiscuz_profile_url( $url, $user ) {
	if ( ! empty( $user-&gt;ID ) ) {
		$url = home_url( &#039;/users/&#039; . $user-&gt;ID . &#039;/divar/&#039; );
	...]]></description>
                        <content:encoded><![CDATA[<p>The function below should work fine: </p>
<pre class="c-mrkdwn__pre" contenteditable="false" data-stringify-type="pre">function change_wpdiscuz_profile_url( $url, $user ) {
	if ( ! empty( $user-&gt;ID ) ) {
		$url = home_url( '/users/' . $user-&gt;ID . '/divar/' );
	}
	return $url;
}

add_filter( 'wpdiscuz_profile_url', 'change_wpdiscuz_profile_url', 10, 2 );</pre>
<p><span style="font-size: 8pt"><strong><em><span style="color: #993300">Note: the "Enable Profiles URL" option should be enabled. More info here: https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/user-authorization-and-profile-data/#enable-profiles-url</span></em></strong></span></p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/general-forum/">General Discussions</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/general-forum/change-user-profile-address/#post-20842</guid>
                    </item>
				                    <item>
                        <title>Change user profile address</title>
                        <link>https://wpdiscuz.com/community/general-forum/change-user-profile-address/#post-20828</link>
                        <pubDate>Wed, 24 May 2023 11:44:04 +0000</pubDate>
                        <description><![CDATA[Hello and don&#039;t be tired to all friendsI need to change the default Discase profile link to the template I want, but my code gets an errorI want the following template to be placed for user ...]]></description>
                        <content:encoded><![CDATA[<p>Hello and don't be tired to all friends<br />I need to change the default Discase profile link to the template I want, but my code gets an error<br />I want the following template to be placed for user profiles instead of the default template of Diskaz, so that when a user clicks on the avatar and name of other users in the comments section, the link and address of the user's page will open with the following template:<br />mysite.<br />com/users/10/divar where 10 is the user id</p>
<p>Thank you for your help in writing this code</p>
<p>Some of my code that doesn't work:</p>
<pre contenteditable="false">function change_wpdiscuz_profile_url( $profile_url, $user_id, $url_type ) {
    if ( $url_type === 'author' ) {
        $new_url = home_url( '/users/' . $user_id . '/divar/' );
        return $new_url;
    }
    return $profile_url;
}
add_filter( 'wpdiscuz_profile_url', 'change_wpdiscuz_profile_url', 10, 3 );

function change_wpdiscuz_author_link( $author_link, $comment ) {
    $user_id = $comment-&gt;user_id;
    $new_url = home_url( '/users/' . $user_id . '/divar/' );
    $author_link = preg_replace( '/href="(+)"/', 'href="' . $new_url . '"', $author_link );
    return $author_link;
}
add_filter( 'wpdiscuz_author_link', 'change_wpdiscuz_author_link', 10, 2 );
</pre>
<p> </p>
<pre contenteditable="false">function change_wpdiscuz_profile_url( $url, $user_id ) {
    $new_url = home_url( '/users/' . $user_id . '/divar/' );
    return $new_url;
}
add_filter( 'wpdiscuz_profile_url', 'change_wpdiscuz_profile_url', 10, 2 );

function change_wpdiscuz_avatar_link_attributes( $attributes, $comment ) {
    $user_id = $comment-&gt;user_id;
    $new_url = home_url( '/users/' . $user_id . '/divar/' );
    $attributes = $new_url;
    return $attributes;
}
add_filter( 'wpdiscuz_avatar_link_attributes', 'change_wpdiscuz_avatar_link_attributes', 10, 2 );
</pre>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/general-forum/">General Discussions</category>                        <dc:creator>leo</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/general-forum/change-user-profile-address/#post-20828</guid>
                    </item>
							        </channel>
        </rss>
		