Hello,
I am using the greenNblack theme. I would like to resize the user picture that apear next to posts. Any way to do this?

If you need to see it
www.gameovercast.com
Let me know if you need more info

Comments

vm’s picture

change the setting for user pic sizes that users can upload in administer -> user settings

gameovercast’s picture

No I need them to stay at 100 because they are synced with phpbb and cannot be changed.

Is there anyway to head into the files and code them that way?

gameovercast’s picture

Help Please

silverwing’s picture

in your theme, look in node.tpl.php or comment.tpl.php and find the class that the $picture is in. Then find that in the style.css and change the width and height to 100px

~silverwing

_____________________________________________
Land of Midnight | MisguidedThoughts | showcaseCMS

gameovercast’s picture

I tried that

it just shrunk the border on all the pictures. they were still the same size but just cut off.

Here is what my code on node looks like

  <div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
  
<?php if ($picture) {
      print $picture;
    }?>
    
    <?php if (!$page) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
    <?php if ($submitted) { ?><span class="submitted"><?php print $submitted; ?></span><?php } ?>
    <?php if ($terms) { ?><span class="taxonomy"><?php print $terms?></span><?php } ?>
    <div class="content"><?php print $content?></div>
    <?php if ($links) { ?><div class="links"><?php print $links?></div><?php } ?>
    
  </div>
vm’s picture

what css did you use ?

after changing the css did you clear your cacher in both your browser and your DB ?

uberellis-dupe’s picture

I've had the same problem. Here's how I did it (I long for imagecache for userpics too)

Instead of print $picture, use $node->picture to just get the path to the image.

<?php if ($submitted): ?>
<?php if ($node->picture != '') { ?>
<div class="picture"><img src="/<?php print $node->picture ?>" width="35px" height="35px" /></div><!-- $picture returns true -->
<?php } else { ?>
<div class="picture"><img src="/<?php print $directory ?>/images/user_default.png" alt="No picture uploaded" width="35px" height="35px" /></div>
<?php } ?>
<span class="submitted small"><?php print $submitted ?></span>
<?php endif; ?>
WorldFallz’s picture

I long for imagecache for userpics too

see http://drupal.org/project/imagecache_profiles (d6 version is in the issues queue)

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz