Resized profile images on user view form
RonStar - March 29, 2009 - 19:48
| Project: | |
| Version: | 6.x-2.6 |
| Component: | Code |
| Category: | feature request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
In my implementation, I have multiple twitter accounts per user, and sometimes the profile image retrieved from the XML is something really large, which screws up the table.
I added the width attribute to the form element in twitter.pages.inc (line 99)
$form['image'] = array(
'#type' => 'markup',
'#value' => theme('image', $account['profile_image_url'], '', '', array('width' => '48px'), FALSE),
);For the same reason, I've stopped using the profile_image_url in the views module, opting to manually query the twitter_account table to get the URL and resize the image. It would be nice if the URL could be tokenized so that it can be resized within views.

#1
subscribing
#2
I made the codechange (it's row 137 now), but it doesn't work as expected. Before the modification the twitter-images pointed to http://a1.twimg.com/profile_images/$i/$j_bigger.jpg, after the modification to http://a1.twimg.com/profile_images/$i/$j_normal.jpg. The _bigger-file exists, the _normal-file doesn't. Any idea how to fix that?