• Resolved joorkataa

    (@joorkataa)


    Hi, I’m using the classiads theme but it works with a separate avatar system and I have a problem displaying the avatars in the vpforo plugin, I’m attaching pictures of the problem so you can get as much insight as possible.

    Is it possible to make the avatars from the classiads theme itself appear everywhere on the site?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author pepe

    (@pputzer)

    Is that a theme hosted on WP.org?

    Thread Starter joorkataa

    (@joorkataa)

    It’s about this one theme

    Plugin Author pepe

    (@pputzer)

    Well, then the answer is “I don’t know, but probably not”. Since this really about a commercial theme, you would have to ask their support staff? Only they know what their custom avatar system does.

    But I’ll look into integrating with wpForo for one of the next releases.

    Thread Starter joorkataa

    (@joorkataa)

    Oh sure

    Ok is there no way I can tell your plugin to use their avatar database and display them throughout the wordpress system?

    Plugin Author pepe

    (@pputzer)

    I don’t know because I don’t have access to their code ??

    Thread Starter joorkataa

    (@joorkataa)

    <?php	
    global $post, $DIRECTORYPRESS_ADIMN_SETTINGS, $wp_query;
    $author = get_user_by( 'slug', get_query_var( 'author_name' ) );
    $authorID = $author->ID;
    $avatar_id = get_user_meta( $authorID, 'avatar_id', true );
    	$author_avatar_url = wp_get_attachment_image_src( $avatar_id, 'full' ); 
    	$image_src_array = (!empty($avatar_id) && is_numeric($avatar_id))? $author_avatar_url[0]:'';PhpCode:
    
    
    	echo '<div class="author-thumbnail">';
    								if(!empty($image_src_array)) {
    									$params = array( 'width' => 270, 'height' => 270, 'crop' => true );
    										echo  '<img src="'. bfi_thumb( $image_src_array, $params ).'" alt="'.$author_name.'" />';
    									} else { 
    										$avatar_url = get_avatar_url($authorID, ['size' => '270']);
    										echo '<img src="'.$avatar_url.'" alt="author" />';
    									}
    							echo '</div>';
    ?>

    If this will be of any help

    I can pay to have it done.

    Plugin Author pepe

    (@pputzer)

    Thanks, I see how they store avatar information. However, without legal access to the whole theme, I could not write and test a proper integration for Avatar Privacy. Since wpForo (optionally) also provides its own avatar handling, integrating both at the same time will be a bit tricky.

    From a quick look, I think it is possible (with or without Avatar Privacy). Unfortunately I don’t do WP work for hire, so I cannot help you regarding this website customization (but you can direct whoever you hire here for any questions regarding integration with Avatar Privacy if you wish to pursue that route).

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Will this plugin solve my problem?’ is closed to new replies.