<?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>
									Problem with avatars (Classiads) - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 05 Sep 2026 17:22:15 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Problem with avatars (Classiads)</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99955</link>
                        <pubDate>Sat, 25 Feb 2023 10:36:46 +0000</pubDate>
                        <description><![CDATA[Well, I stopped them, but the problem remained.
For the moment I have stopped showing avatars in the forum but this is not a solution, I will try something to fix it. 
If I have a solution...]]></description>
                        <content:encoded><![CDATA[
<p>@joorkataa</p>
<p>you can also deactivate Gravatar if you do not want them to be displayed</p>
<p><a href="https://www.wpbeginner.com/beginners-guide/how-to-disable-gravatars-in-wordpress/" target="_blank" rel="noopener">How to Disable Gravatars in WordPress</a></p>
<p> </p>
<p></p>
<p> </p>
<p>Well, I stopped them, but the problem remained.</p>
<p>For the moment I have stopped showing avatars in the forum but this is not a solution, I will try something to fix it. </p>
<p>If I have a solution to the problem I will write it here because surely other people have the same problem. </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>joorkataa</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99955</guid>
                    </item>
				                    <item>
                        <title>RE: Problem with avatars (Classiads)</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99952</link>
                        <pubDate>Sat, 25 Feb 2023 10:07:55 +0000</pubDate>
                        <description><![CDATA[@joorkataa
you can also deactivate Gravatar if you do not want them to be displayed
How to Disable Gravatars in WordPress]]></description>
                        <content:encoded><![CDATA[<p>@joorkataa</p>
<p>you can also deactivate Gravatar if you do not want them to be displayed</p>
<p><a href="https://www.wpbeginner.com/beginners-guide/how-to-disable-gravatars-in-wordpress/" target="_blank" rel="noopener">How to Disable Gravatars in WordPress</a></p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99952</guid>
                    </item>
				                    <item>
                        <title>RE: Problem with avatars (Classiads)</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99947</link>
                        <pubDate>Sat, 25 Feb 2023 09:09:11 +0000</pubDate>
                        <description><![CDATA[@joorkataa,
I&#039;m sorry but I cannot help you with PHP coding, hiring a Developer can help you or Gvectors Custom Work Team.
Custom Work Team Contact Email: salesgvectors.com]]></description>
                        <content:encoded><![CDATA[<p>@joorkataa,</p>
<p>I'm sorry but I cannot help you with PHP coding, hiring a Developer can help you or Gvectors Custom Work Team.</p>
<p>Custom Work Team Contact Email: salesgvectors.com</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Chris</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99947</guid>
                    </item>
				                    <item>
                        <title>RE: Problem with avatars (Classiads)</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99925</link>
                        <pubDate>Fri, 24 Feb 2023 13:52:25 +0000</pubDate>
                        <description><![CDATA[@chris I really like your forum and want to use it
But I don&#039;t understand much about coding, I&#039;ll be glad if you tell me how and where exactly I should do it
 
 
This code i have given b...]]></description>
                        <content:encoded><![CDATA[<p>@chris I really like your forum and want to use it</p>
<p>But I don't understand much about coding, I'll be glad if you tell me how and where exactly I should do it</p>
<p> </p>
<p> </p>
<p><span>This code i have given below is to generate my avatar can it be made to generate users avatar</span></p>
<p> </p>
<p> </p>
<pre class="wp-block-code wporg-bbp-code-expander-code-wrapper" contenteditable="false"><code>&lt;?php 
				$authorID = get_the_author_meta('ID');
			//$author_name = get_the_author_meta('display_name', $authorID);
					$output = '';
					//$author_img_url = get_user_meta($authorID, "pacz_author_avatar_url", true); 
					$avatar_id = get_user_meta( $authorID, 'avatar_id', true );
					
					//$author_img_url = get_the_author_meta('pacz_author_avatar_url', $authorID, true); 
					$output .='&lt;div class="author-thumbnail"&gt;';
					if(!empty($avatar_id) &amp;&amp; is_numeric($avatar_id)) {
						$author_avatar_url = wp_get_attachment_image_src( $avatar_id, 'full' ); 
						$src = $author_avatar_url;
						$params = array( 'width' =&gt; 60, 'height' =&gt; 60, 'crop' =&gt; true );
						$output .= "&lt;img src='" . bfi_thumb( $src, $params ) . "' alt='' /&gt;";
					} else { 
						$avatar_url = get_avatar_url($authorID, );
						$output .='&lt;img src="'.$avatar_url.'" alt="author" /&gt;';
										}
					$output .='&lt;/div&gt;';
					echo $output;
			?&gt;</code></pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>joorkataa</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99925</guid>
                    </item>
				                    <item>
                        <title>RE: Problem with avatars (Classiads)</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99923</link>
                        <pubDate>Fri, 24 Feb 2023 13:10:17 +0000</pubDate>
                        <description><![CDATA[Hi @joorkataa,
The code that you have added in profile.php, does as it should, adds the changes in Profile page, and that&#039;s all.
In your case, you have to write a WordPress code that would...]]></description>
                        <content:encoded><![CDATA[<p>Hi @joorkataa,</p>
<p>The code that you have added in profile.php, does as it should, adds the changes in Profile page, and that's all.</p>
<p>In your case, you have to write a WordPress code that would connect to the needed hook, for example get_avatar function hook.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Chris</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99923</guid>
                    </item>
				                    <item>
                        <title>RE: Problem with avatars (Classiads)</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99910</link>
                        <pubDate>Fri, 24 Feb 2023 07:43:52 +0000</pubDate>
                        <description><![CDATA[This is the code from the comments that works and pulls the correct avatars
I tried to put it in wpforo/theme/2022/profile.php but it still takes out the gravatar :/
 
&lt;div class=&quot;pacz...]]></description>
                        <content:encoded><![CDATA[<p>This is the code from the comments that works and pulls the correct avatars</p>
<p>I tried to put it in wpforo/theme/2022/profile.php but it still takes out the gravatar :/</p>
<p> </p>
<pre contenteditable="false">&lt;div class="pacz-post-comment-author-img"&gt;
&lt;?php
$avatar_id = get_user_meta( $comment-&gt;user_id, 'avatar_id', true );
if(!empty($avatar_id) &amp;&amp; is_numeric($avatar_id)) {
$author_avatar_url = wp_get_attachment_image_src( $avatar_id, 'full' );
$image_src_array = $author_avatar_url;
$params = array( 'width' =&gt; 70, 'height' =&gt; 70, 'crop' =&gt; true );
echo '&lt;img src="' . bfi_thumb( $image_src_array, $params ).'" alt="'. esc_attr__('author', 'classiadspro') .'" /&gt;';
} else {
$avatar_url = get_avatar_url($comment-&gt;user_id, );
echo'&lt;img src="'.$avatar_url.'" alt="'. esc_attr__('author', 'classiadspro') .'" /&gt;';
}
?&gt;
&lt;/div&gt;</pre>
<p> </p>
<p>And this is how the avatar appears in the forum and in the blog comments</p>
<p> </p>
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1677224632-55.png" target="_blank" title="55.png"><i class="fas fa-paperclip"></i>&nbsp;55.png</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>joorkataa</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99910</guid>
                    </item>
				                    <item>
                        <title>Problem with avatars (Classiads)</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99903</link>
                        <pubDate>Thu, 23 Feb 2023 19:24:12 +0000</pubDate>
                        <description><![CDATA[Hello, I have a problem with the avatars in the forum, does anyone have an idea how I can fix it?I’m attaching a photo, I’m using the Classiads theme
The problem is also noticeable in Widge...]]></description>
                        <content:encoded><![CDATA[<p>Hello, I have a problem with the avatars in the forum, does anyone have an idea how I can fix it?<br />I’m attaching a photo, I’m using the Classiads theme</p>
<p>The problem is also noticeable in Widget - Recent Post &amp; Recent Topics and in the Blog and the Archive it is the same</p>
<p> </p>
<p>This is the theme code that I have shown in the picture.</p>
<p> </p>
<pre contenteditable="false">if($preset_header_style == 12){
if(!empty($avatar_id) &amp;&amp; is_numeric($avatar_id)) {
$image_src_array = $author_avatar_url;
$params = array( 'width' =&gt; 37, 'height' =&gt; 37, 'crop' =&gt; true );
$user_thumb = '&lt;img src="' . bfi_thumb( $image_src_array, $params ) . '" alt="'.$logedin_user_name.'" /&gt;';
} else{
$avatar_url = get_avatar_url($logedin_user, );
$user_thumb ='&lt;img src="'.$avatar_url.'" alt="'.$logedin_user_name.'" /&gt;';
}
}else{
if(!empty($avatar_id) &amp;&amp; is_numeric($avatar_id)) {
$image_src_array = $author_avatar_url;
$params = array( 'width' =&gt; 40, 'height' =&gt; 40, 'crop' =&gt; true );
$user_thumb = '&lt;img src="' . bfi_thumb( $image_src_array, $params ) . '" alt="'.$logedin_user_name.'" /&gt;';
//pacz_add_image_size( '70-70', 70, 70, true );
//$user_thumb = '&lt;img src="' . wp_get_attachment_image_url( $avatar_id, '70-70' ) . '" alt="'.$logedin_user_name.'" /&gt;';
} else{
$avatar_url = get_avatar_url($logedin_user, );
$user_thumb ='&lt;img src="'.$avatar_url.'" alt="'.$logedin_user_name.'" /&gt;';
}
}</pre>
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" title="bez.png" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1677180252-bez.png" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> bez.png</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>joorkataa</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-avatars-classiads/#post-99903</guid>
                    </item>
							        </channel>
        </rss>
		