Drupal 6?

dpfiffe - March 31, 2008 - 22:22
Project:User Picture Resizer
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Any chance of porting this to drupal 6 ? Seems like a really cool module.

#1

yngens - April 11, 2008 - 10:50

subscribe

#2

mariusooms - July 16, 2008 - 08:35

I guess looking at the inactivity this is not going to happen? There are no real good alternatives for those who wish to have consistent cropped and sized user pictures for drupal 6. So...I do hope this will be a reality...

Regards,

Marius

#3

amandawolfe - July 30, 2008 - 21:39

+1 for a drupal 6 port. I'm desperate for this module--I have several things going on in my theme that require user images to be exactly square. This is exactly what I need! Not well-versed enough in php to port it myself, but I thought I'd throw it out there in case anyone is listening. :)

#4

mariusooms - July 30, 2008 - 22:36

amandawolfe...check out this thread. I use that module for square sized user profiles as well. Works very well with imagecache on which it depends.

http://drupal.org/node/225816#comment-927081

Regards,

Marius

#5

amandawolfe - July 31, 2008 - 14:38

Marius Thank You! You just saved me a huge amount of trouble. I was finally able to get my lovely cropped user images. Phew. :) Now I'm going to bother you with a quick question. I have a custom block snippet that's pulling in the images of the newest 10 users. I realized this custom block is using the original user picture (not cropped or scaled) which is a problem because for the block to look half-decent, the images need to be square. I've tried all morning to figure out how to use the new imagecache pictures, but to no avail. (I even tried digging around in the module to see how imagecache handles calling the images but apparently I don't know enough about php to figure it out!) If you have a sec to look, do you know how I might make this work? here's the original snippet.

<div class="blockpic-wrapper"><?php
$result
= db_query_range('SELECT uid, picture FROM {users} WHERE status != 0 AND picture != "" ORDER BY uid DESC', 0, 10);
  while (
$user_info = db_fetch_object($result)) {
  if(
$user_info->uid){
      echo
'<div id="blockpic"><a href="/user/'.$user_info->uid.'">';
      echo
'<img id="new-people" src="/'.$user_info->picture.'"><br /></a></div>';
    }
  }
?>
</div>
<div class="see-all-users"><a href="http://localhost/profile">see all users</a></div>

#6

mariusooms - July 31, 2008 - 20:15

I'm pretty sure it is because of your query. You see, in the database the user picture is unaffected. It is afterward that imagecache manipulates the original picture. I wouldn't know how to adjust your block snippet, I'm sorry. For this functionality I'd check out Views module. With Views you should be able to create a block of the latest users. Then you can even use ajax paging and you'll have many other options at your disposal as well. Definitly better than a snippet :)

Regards,

Marius

#7

amandawolfe - July 31, 2008 - 20:40

Thanks Marius--good point! I think I found the snippet before I had installed Views, so I never bothered to change it. Off to make a new block... :)

 
 

Drupal is a registered trademark of Dries Buytaert.