Forums

[Plugin: User Photo] Can we make this work, PLEASE!!!! (12 posts)

  1. TeamThunder
    Member
    Posted 3 years ago #

    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.

    http://wordpress.org/extend/plugins/user-photo/

  2. vampirefish
    Member
    Posted 3 years ago #

    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()?>

  3. redy4lv
    Member
    Posted 3 years ago #

    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???

  4. grouchio
    Member
    Posted 3 years ago #

    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

  5. QBoulevard
    Member
    Posted 3 years ago #

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

    Q

  6. webmatter
    Member
    Posted 3 years ago #

    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?

  7. QBoulevard
    Member
    Posted 3 years ago #

    I don't see it anywhere.

  8. QBoulevard
    Member
    Posted 3 years ago #

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

  9. webmatter
    Member
    Posted 3 years ago #

    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.

  10. QBoulevard
    Member
    Posted 3 years ago #

    I don't know what a loop is.

  11. QBoulevard
    Member
    Posted 3 years ago #

    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. :-)

  12. DevlshOne
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags