• in the installation the author lists where to put the php functions to display the image,

    New template tags introduced are:
    
        * userphoto_the_author_photo()
        * userphoto_the_author_thumbnail()
        * userphoto_comment_author_photo()
        * userphoto_comment_author_thumbnail()
    
    The first two should be placed in the posts loop
    near the_author(), and the second two in the comments
    loop near comment_author() (or their respective equivalents).
    Furthermore, userphoto_the_author_photo() and userphoto_the_author_thumbnail() may be called anywhere
    (i.e. sidebar) if $authordata is set.

    What files are the “posts loop” and the “comments loop” in? I have looked in a number of my theme files, as well as the include files and could not find a function with the names as listed above. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter drewshen

    (@drewshen)

    thanks! I found the loop in both index.php, and comments.php. However, I pasted the functions listed above, and the pictures do not display on my blog.

    here is the start of my post loop:

    <?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <?php userphoto_the_author_photo() ?> <?php userphoto_the_author_thumbnail() ?> by <?php the_author() ?> </small>

    and here is my comments loop

    <ol class="commentlist">
    
    	<?php foreach ($comments as $comment) : ?>
    
    		<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
    			<cite><?php userphoto_comment_author_photo() ?><?php userphoto_comment_author_thumbnail() ?><?php comment_author_link() ?></cite> Says:
    Thread Starter drewshen

    (@drewshen)

    i still havent got this one, any help would be greatly appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘where to add the php functions’ is closed to new replies.