Fixing new Address International Plugin

More
10 years 8 months ago #48919 by jkirsch
Hello,

I have tested the new Address International plugin (2.2.0 r1932 beta) and see that the "US States" and "Country" fields aren't populated.

After a few debugging, I have seen that some lines were missing in the code.
The following code :
Code:
$options = array(); $options[] = JHTML::_('select.option', '', JText::_('FLEXI_PLEASE_SELECT')); $display = "";
should be change to :
Code:
$options = array(); $options[] = JHTML::_('select.option', '', JText::_('FLEXI_PLEASE_SELECT')); foreach($listarrays as $key=>$val) : $options[] = JHTML::_('select.option', $key, $val); endforeach; $display = "";
I have also found that the following constants are missing in the plugin language file :
PLG_FLEXICONTENT_FIELDS_ADDRESSINT_CC_xx (where xx is the country code)
As I was to lazy to define them all and as I am, for the moment, only using addresses in the same implicit country, I have just commented out the line displaying the country :
Code:
// if($address['country']) $field->{$prop} .= '<div class="country">'.JText::_('PLG_FLEXICONTENT_FIELDS_ADDRESSINT_CC_'.$address['country']).'</div>';

I hope this may help people who want to use this plugin.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #48926 by micker
thanks for return !

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #50557 by dudlhofer
As you're going to fix this, could you please amend the code to permit overwriting of altitude and latitude values? Sometimes the address is not recognized correctly and the map shows a wrong place.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #50558 by ggppdk
Hello

this will happen in v2.3.0 along with a new template with category layout to display all values of items in category in a single map

added this new enhancement issue
github.com/FLEXIcontent/flexico ... /issues/43


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.422 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save