Sort order for Country field from join.php

Hello,

 

Sort order for Country field is wrong from join.php and pedit.php for other languages.

 

For English like so:

  1. Afghanistan
  2. Aland Islands
  3. Albania
  4. Algeria

For other languages like so:

  1. Afghanistan
  2. Mexia
  3. Algeria
  4. Russia

 

I think this is a bug..

 

Thanks,

Quote · 9 Feb 2013

Countries list is a regular predefined links which you can compose using admin -> builders -> predefined lists

The list have the order you set for it.

Rules → http://www.boonex.com/terms
Quote · 10 Feb 2013

That must be such as from event add page. If you want to support multi-languages from Dolphin, you need to think about translators. If as you say I compose from predefined lists at this time will be a problem to english and other langs..

Does it make sense do you think?

Countries list is a regular predefined links which you can compose using admin -> builders -> predefined lists
The list have the order you set for it.

 

Quote · 10 Feb 2013

Current system provides sorting manually using predefined lists builder, if we use sorting programmatically - it will interfere with current functionality.

Rules → http://www.boonex.com/terms
Quote · 11 Feb 2013

 You must be willing them to make the system more useful.

Whatever.. Can you provide me programmatically sorting code please?

Current system provides sorting manually using predefined lists builder, if we use sorting programmatically - it will interfere with current functionality.

 

Quote · 11 Feb 2013

Current system don't allow this, hardcoded sorting isn't good solution.

We will try to consider this feature in future versions.

You can use this solution temporary:

In BxDOlProfileFields.php file near 1747 line in convertValues4Input function just before the following code:

        return $aValues;

add this:

        if (is_string($mValues) && '#!Country' == $mValues)
            asort($aValues);

Rules → http://www.boonex.com/terms
Quote · 12 Feb 2013

does not work..

Current system don't allow this, hardcoded sorting isn't good solution.

We will try to consider this feature in future versions.

You can use this solution temporary:

In BxDOlProfileFields.php file near 1747 line in convertValues4Input function just after the following code:

        return $aValues;

add this:

        if (is_string($mValues) && '#!Country' == $mValues)
            asort($aValues);

 

Quote · 13 Feb 2013

 Please explain

does not work..

 

Rules → http://www.boonex.com/terms
Quote · 13 Feb 2013

I did what you say, but still the same sort..

 

    function convertValues4Input($mValues, $sUseLKey = 'LKey')

    {

        $aValues = array();

 

        if (is_array($mValues)) {

            foreach ($mValues as $sKey)

                $aValues[$sKey] = _t('_FieldValues_' . $sKey);

        } elseif (is_string($mValues) and !empty($mValues) and substr($mValues, 0, 2) == $this->sLinkPref) {

            $sKey = substr($mValues, 2);

            if (isset($GLOBALS['aPreValues'][$sKey]) ) {

                $aPValues = $GLOBALS['aPreValues'][$sKey];

 

                foreach ($aPValues as $sKey => $aPValue) {

 

                    if (!isset($aPValue[$sUseLKey]))

                        $sUseLKey = 'LKey';

 

                    $aValues[$sKey] = _t($aPValue[$sUseLKey]);

                }

            }

        }

        //echoDbg($aValues);

        return $aValues;

 

if (is_string($mValues) && '#!Country' == $mValues)

            asort($aValues);

    }

Quote · 16 Feb 2013

Sorry I meant:

In BxDOlProfileFields.php file near 1747 line in convertValues4Input function just before the following code:

        return $aValues;

 
not after!
Rules → http://www.boonex.com/terms
Quote · 18 Feb 2013

 Thanks..

Sorry I meant:

In BxDOlProfileFields.php file near 1747 line in convertValues4Input function just before the following code:

        return $aValues;

 
not after!

 

Quote · 18 Feb 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.