Download & Extend

Resized profile images on user view form

Project:Twitter
Version:7.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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.

Comments

#1

subscribing

#2

Version:6.x-2.0» 6.x-2.6

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?

#3

subscribing

#4

Version:6.x-2.6» 7.x-3.x-dev
Priority:minor» normal

Suggest using the D7 core image module preset.

nobody click here