• All right, I would really like to make this work for my site. However I don’t quite understand what files I need to edit. From the looks of it I need to make 3 edits. So that should be no more than 3 files.
    I’m in need of knowning which 3 files. If these are wordpress files then they should be the same regardless of theme. If these are theme based files throw me a bone to which files I should be looking for to edit. Then if you could throw some good syntax together for me I know I can do the rest.
    I’m not a total novice when it comes to php but not quite up to speed on what I”m looking for. And Weston if you help me out then I will surely donate to your cause and you will have helped a fellow Portlander out.

    https://www.ads-software.com/extend/plugins/user-photo/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi… it took me a little while to figure this out .. so here’s what I did – hopefully it helps you:

    For comments:
    1. Go to Admin/Design/Theme Editor
    2. Select ‘Comments (comments.php)’
    3. Look for <?php echo get_avatar( $comment, 32 ); ?>
    4. Place the following after the above:
    <?userphoto_comment_author_thumbnail()?>

    For posts (author):
    1. Go to Admin/Design/Theme Editor
    2. Select ‘Single Post (single.php)’
    3. Look for the <div class=”post” .. and then the <h2> title under that. After this, place the following:
    <?userphoto_the_author_thumbnail()?>

    Hello… new to this!
    Reading some of the post, it’s quite confusing.
    Just did what you’d instructed vampirefish, but still
    I can’t get it work.
    I’m the admin and I’m the only user registered so far
    with photo uploaded. My posts still won’t show my photo.

    Need help please!!!!! Someone???

    OH man This is it

    thank you vampirefish!

    i was using <?userphoto_comment_author_thumbnail();?>

    and it didn’t show anything a entire morning going nutz

    I tried what VampireFish suggested, but unfortunately it didn’t work. Maybe I did it wrong? Further suggestions?

    Q

    Do you have the query

    <?php
    if(get_query_var('author_name')) :
    $curauth = get_userdatabylogin(get_query_var('author_name'));
    else :
    $curauth = get_userdata(get_query_var('author'));
    endif;
    ?>

    in your template?

    I don’t see it anywhere.

    Keep in mind I know nothing about code. Absolutely nothing.

    Try if it works if you put this peace of code before the loop. This is to collect the author data of the current author.

    I don’t know what a loop is.

    Never mind, it turns out the little piece of script recommended earlier worked and all the gals are posting with photos. It just wasn’t working with my own photo. I had to delete my own photo and add it again. Incidentally, I replaced the photo of myself with one of my dog, for good luck. ??

    I’m using the i-Blog theme and don’t see any of the code snippets in my templates. I would very much to like to use this plugin on individual posts, main page posts and comments but none seem to be working.

    Here is my index.php template file:

    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post">
    				<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    				<div class="entry">
    					<?php the_content('Read more...'); ?>
                                            <div class="spacer"></div>
    <small ><?php the_time('F jS, Y') ?> by <?php userphoto_the_author_thumbnail(); the_author() ?> | <?php edit_post_link('Edit','','<strong> | </strong>'); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></small>
    
    				</div>
    <br class="kosong"/>
    
    				<!--
    				<?php trackback_rdf(); ?>
    				-->
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
    			<div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Also, the author_comment_link() function isn’t working in comments.php. Have I come across a buggy theme?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: User Photo] Can we make this work, PLEASE!!!!’ is closed to new replies.