Max lentgh in the author pane is fixed on 30 no matter what I define.
How can I change this ? I want it a bit longer.
Thanks

Comments

icecreamyou’s picture

Category: bug » support
Status: Active » Fixed

*mental transition to 1.0 API* ...okay

I believe it uses the Shorten statuses in the Facebook Status Recent Updates block to this length: setting at admin/settings/facebook_status. Unfortunately there's no good way to make it longer than that value until FBSS 2.x (which is *soon*).

tsi’s picture

But the value defined there is 192 and in the author pane it shows only 30

icecreamyou’s picture

Title: Max lentgh in the author pane » Max length in the author pane

I just checked, and it's hardcoded to 32 characters. If you want, you can change lines 1162 and 1164 of facebook_status.module to whatever value you want, for example this code would allow 72 characters:

      if (drupal_strlen($status[0]['status_fb']) > 72) { //Line 1162
        $so = ' title="'. check_plain($account->name .' '. $status[0]['status_fb']) .'"';
        $status[0]['status_fb'] = drupal_substr($status[0]['status_fb'], 0, 69) .'...'; //Line 1164

Normally I wouldn't advise changing the module file if you can avoid it, but because a stable 2.x release is due soon, it's probably okay since 1.x is stable and isn't likely to need additional updates before I drop support for it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.