Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter redge

    (@redge)

    Damn, all i get it error….

    I’m using the MinimaPlus theme by Theron Parlin
    You can found the theme here : https://www.thoughtmechanics.com/templatefiles/v2.2/download.php?get=MinimaPlus.zip

    I had a lot trouble getting it to work because of my limited knowledge of PHP etc

    I don’t use your theme but in the end I got it to work in my comments.php like this:

    <?php foreach ($comments as $comment) : ?>
    <li class=”<?=$oddcomment;?>”>
    a name=”comment-<?php comment_ID() ?>”> <img src=”<?php gravatar(r,60); ?>” align=”right”/> <?php comment_favicon(); ?> <?php comment_author_link() ?> Commented
    a href=”#comment-<?php comment_ID() ?>” title=””><?php comment_date(‘F jS, Y’) ?> at <?php comment_time() ?> <?php edit_comment_link(‘e’,”,”); ?>

    Hope that’s of some help.

    Find this in comments.php:
    <p class="post-footer" style="margin-bottom: 0px; padding-bottom: 0px;">By <?php comment_author_link() ?> on <?php comment_date('m.d.y') ?> <?php comment_time() ?> <?php edit_comment_link(__("e"), ''); ?>
    </div>

    Change it to:
    <p class="post-footer" style="margin-bottom: 0px; padding-bottom: 0px;">By <img src="<?php gravatar() ?>" alt="" /></img><?php comment_author_link() ?> on <?php comment_date('m.d.y') ?> <?php comment_time() ?> <?php edit_comment_link(__("e"), ''); ?>
    </div>

    See if that works.

    Thread Starter redge

    (@redge)

    Oh yeah! It worked when I put <img src=”<?php gravatar(r,60); ?>” align=”right”/> after <?php comment_author_link() ?>

    But now the problem is how the gravatar is displayed. Look at my web site et https://www.pfinal.com and you’ll see what i’m talking about

    Got it displaying it least. CSS is not my forte though so I can’t be of much help there I’m afraid. You probably need something like .post-footer img {clear:both} or something. I really don’t know though. Good luck! ??

    very interesting thread – it seems more useful than the actual gravatar instructions. Will give this a go myself ??

    Thread Starter redge

    (@redge)

    Thanks a lot IanD you’ve been very helpfull not only for me but for everyone out there whos trying to figure out how to do it!

    Thanks again!!

    well installed it first time, got it working first time. Redge, I added a div before and after the gravatar code and then edited the css within the style sheet for class. That should help with your alignment

    EDIT: looks like you got it working anyway ??

    Thread Starter redge

    (@redge)

    Yep ! I’ve changed the image from 60 to 40!

    well if you still want it at 60 add the div and you can play with the styling – though reducing the size is probably for the best ??

    Thread Starter redge

    (@redge)

    I will add the div!

    For averyone who wonder how add gravatar in the MinimaPlus Theme look for this part in the comments.php :

    <div class=”commentBox” style=”<?php echo $swap; ?>”>

    <?php comment_text() ?>

    <p class=”post-footer” style=”margin-bottom: 0px; padding-bottom: 0px;”>By <?php comment_author_link() ?> on <?php comment_date(‘m.d.y’) ?> <?php comment_time() ?> <?php edit_comment_link(__(“e”), ”); ?>
    </div>

    Before <?php comment_text() ?> simply add this code : <img src=”<?php gravatar(r,60); ?>” align=”right”/>

    And your done!

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘How to use Gravatar?!’ is closed to new replies.