Comment to 'How to Recommend profile in UNA'
  •     function getAlterOrder()

        {

            switch ($this->aCurrent['sorting']) {

                case 'featured':

                    return array('order' => ' ORDER BY `bx_persons_data`.`featured` DESC ');

                case 'recommended':

                    return array('order' => ' ORDER BY RAND() ');

                case 'none':

                    return array();

                case 'active':

                    return array('order' => ' ORDER BY `sys_accounts`.`logged` DESC ');

                case 'online':

                    return array('order' => ' ORDER BY `sys_sessions`.`date` DESC ');

                case 'last':

                default:

                    return array('order' => ' ORDER BY `bx_persons_data`.`added` DESC ');

            }

        }



    recommended means  random records.

    0 0 0 0 0 0
    • ok, but it is nothing showing on page

      0 0 0 0 0 0

    UNA - Social Media Software Framework

    Close