using gravatar code elsewhere
-
Im trying to incorporate the gravatar code in other areas of my site and seem to be havin a bit of trouble getting it to show up…. at the moment i’m trying to add it to the get-commenters code by coffee2code and after alot of attempts the closest I can come is getting no php errors but its printing out the last bits of the img src
bruce" alt="" /> (2)
when using the gravatar code as such :
foreach ($commenters as $commenter) {
echo $before;
if (!empty($commenter->comment_author_url)) echo '<a title="Visit ' . $commenter->comment_author . ''s site" href="' . $commenter->comment_author_url . '"';
if ($open_in_new_window) echo ' target="_blank"';
if (!empty($commenter->comment_author_url)) echo '>';
echo $commenter->comment_author;
if (!empty($commenter->comment_author_url)) echo '</a>';
if (!empty($commenter->comment_author_url)) echo '<img src= "<?php gravatar("G", 50, "https://mysite.com/graphics/grav.gif"); ?>" alt="" />';
if ('top' == $type) echo ' (' . $commenter->total_comments . ')';
if (!$omit_last_after) echo $after;
echo "n";
}anyone spot what Im doin wrong?
- The topic ‘using gravatar code elsewhere’ is closed to new replies.