Hi,
I know this is a stretch for some but I'm really looking for help that might reach a lot of other admins. Facebook_Status recently added poster picture support for views however my user images are rather big and need resizing. Facebook_status doesn't seem to use the conventional Drupal objects, instead it uses "author" and "poster". I'm looking to use the picture of the poster of a status by using the following in view-view-field--facebook-status-users-pics.tpl.php:
<?php
$default_picture = variable_get('user_picture_default', '');
if ($row->{$field->field_alias}) {
print theme('imagecache', 'user_thumbnail', $row->{$field->field_alias});
}
else {
print theme('imagecache', 'user_thumbnail', $default_picture);
}
?>This successfully prints http://lc3.figureandground.net/sites/default/files/imagecache/user_thumb... (or of whatever user number it's supposed to) but doesn't print/display the actual image. Now I presume this is because the Facebook_Status module doesn't implement some sort of hook or is the image not being displayed because FB_status isn't using Drupal objects like user and account? Or am I simply doing something wrong?
Thanks for any help you can provide.
Comments
Comment #1
pribeh commentedOk, so I realized the above probably won't work for what I want but alas I'm trying anything to simply see if I can get a user picture imagecache preset. Using the following in a view-view-fieldS.tpl.php (affecting a straight view of "users" with field "picture" injected).
But all I get is the following printed (again without picture display):
<img src="http://mysite/sites/default/files/imagecache/image_thumbnail/<div class="picture"> <a href="/user/25" title="View user profile."><img src="http://mysite/sites/default/files/imagecache/user_image_small_thumbnail/pictures/picture-25-e1366d288409f764e4cd55a095d6feef.jpg" alt="Sam's picture" title="Sam's picture" width="45" height="45" /></a></div> " alt="" title="" class="imagecache imagecache-image_thumbnail" />If you think I might get more help in the forums let me know.
Comment #2
Keith_penn27 commentedI would like to do this as well. Have you found any other posts with useful information on how to do this? Does anyone have any suggestions? Please help
Comment #3
pribeh commentedHere you go: http://drupal.org/node/498034
Comment #4
pribeh commented