Jump to content

Courage

Enthusiast
  • Posts

    177
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by Courage

  1. They're using outdated php4 code.
  2. It doesn't work when I try to upgrade..
  3. Hi.. AdminCP > Look and Feel > [your skin] -> Global Templates -> userInfoPane Change <li class='group_title'> {$author['_group_formatted']} </li> with <!-- <li class='group_title'> {$author['_group_formatted']} </li> -->
  4. By default, numbers are formatted with `,` character. To change it with `.` or ` `, you should edit your language locale, but there's another way to do that. Open <forum_path> / admin / sources / classes / class_localization.php We have 3 options: 1. Format with `,` character: Replace public function formatNumber( $number, $places=0 ) { return is_numeric( $number ) ? str_replace( 'x', $this->local_data['thousands_sep'], number_format( $number, $places, $this->local_data['decimal_point'], 'x' ) ) : 0; } with public function formatNumber( $number, $places=0 ) { return number_format($number, NULL, '', ','); } 2. Format with `.` character: Replace public function formatNumber( $number, $places=0 ) { return is_numeric( $number ) ? str_replace( 'x', $this->local_data['thousands_sep'], number_format( $number, $places, $this->local_data['decimal_point'], 'x' ) ) : 0; } with public function formatNumber( $number, $places=0 ) { return number_format($number, NULL, '', '.'); } 3. Format with ` ` (space) character: Replace public function formatNumber( $number, $places=0 ) { return is_numeric( $number ) ? str_replace( 'x', $this->local_data['thousands_sep'], number_format( $number, $places, $this->local_data['decimal_point'], 'x' ) ) : 0; } with public function formatNumber( $number, $places=0 ) { return number_format($number, NULL, '', ' '); }
×
×
  • Create New...