Hi Pobster,

the option "Show gamertag as text only" don't work with me, i am using the lastest release of Views 3, i seen too than when i update the field that the option stay unchecked, i try this option with these fields:

- User: PSN Gamertag
- User: Wii Friend Code
- User: Xbox Gamertag

Thanks for your help :)

Comments

pobster’s picture

Assigned: Unassigned » pobster

It looks like Views 3 now has to define option_definition, probably something like;

function option_definition() {
  $options = parent::option_definition();
  $options['gamertags_as_text'] = array('default' => FALSE);
  return $options;
}

Could you place this in:

class views_handler_field_user_gamertags extends views_handler_field {

And test it for me?

Thanks,

Pobster

MasterChief’s picture

Assigned: pobster » Unassigned

Hi again Pobster!

I put your code at the line 25, and it works now :)

pobster’s picture

Awesome - thanks for testing! I'll push out a new release once I get home from work.

Pobster

pobster’s picture

Version: 6.x-2.75 » 6.x-2.76
Status: Active » Fixed

Done! It thankfully is backwards compatible (i.e. Views 2 just ignores it) lets hope nothing changes between now and when the Views alpha release goes stable!

Thanks,

Pobster

Status: Fixed » Closed (fixed)

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