Noone can see the "Extras" fields...regardless of logged in or not...not even UID=1.

They can see the fields setup with the Addresses module, but not the "Adresses Extras" module

Comments

AlexisWilke’s picture

I'm surprised you are the first to report such a problem... I'll have to setup a new test case on my end. It will take a little time but will return soon on that.

Thank you for your patience.
Alexis Wilke

clo75’s picture

Hi

Same for me than mdowsett (I use drupal 6.9),

Extra fields don't display ; basics address fields are displaying correctly.

Also impossible to reorder the adress fields (even with "Addres > field order" in "admin/settings/address"

AlexisWilke’s picture

clo75,

The field order mechanism is brand new and not yet supported in my Extras.

For the fact that the fields are not visible, I have to test here, but for that I need to change a few things in one of the modules I use. So more soon on that one...

Thank you for your patience.
Alexis Wilke

clo75’s picture

Thanks for your informations Alexis,

Your module is a nice one

PeterHock’s picture

Component: User interface » Code

Hi Alexis,
same problem. I want to output the Notes-Field but all I get is 'Array'. And also simple copying code for output from adresses.inc doesn't work. For me it seems there was a change in the Adresses-Module ...

Ciao from Bavaria,
Peter

dboulet’s picture

Title: Noone can see the "Extras" fields » "Extras" fields are not properly displayed

Same here, fields are shown as 'Array'.

dboulet’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB

That attached patch fixes the addresses_internet module fields for me. The token values must be overridden in both 'addresses_general' and 'addresses_adr' types.

mario_prkos’s picture

After I applied patch I still don't see any extra fields, I only have country field.

I checked arrays in function addresses_internet_token_values() and I have at least web and contact email contained in that array, but they don't display.

Does anybody know which function is responsible for displaying of these fields ?

dboulet’s picture

@mario_prkos, Did you add the tokens corresponding to your fields to your address formats at admin/settings/address?

portulaca’s picture

subscribing

mario_prkos’s picture

StatusFileSize
new19.16 KB
new184.57 KB

Thank you for help and thank you all for your efforts.
Yes, I did add tokens and applied your patch and internet address still not displayed.

But I did some research in code what is happening and I find that in token_replace doesn't function very well in function theme_addresses($afields) in address.inc. In function addresses_internet_token_values($type, $object = NULL) tokens are not populated well and in function theme_addresses($afields) token replace is not correct.

What I did:

  • fixed yahoo_id; theme function has yim instead yahoo_id
  • added msn field
  • fixed token_replace theme_addresses($afields) and addresses_internet_token_values($type, $object = NULL)

I am new in drupal so I am not sure if this is best practice for this module. Check it out and I will appreciate any feed back from you.

abdelatifs’s picture

Hi,
Is there anyway to have a skype field too.

thanks

AlexisWilke’s picture

Assigned: Unassigned » AlexisWilke
Status: Needs review » Fixed

Skype field added.

Weights correctly supported.

Visibility fixed (Note: the core module would not call the right theme() functions.)

It should all be solved, if you still remotely using this module and still have a problem, feel free to reopen.

IMPORTANT: it will only work with addresses versions after Jul 3, 2010.

Thank you.
Alexis

P.S. I did not use the proposed fixed from here. The problem was that the core changed many things and thus broken the compatibility.

Status: Fixed » Closed (fixed)

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