Jump to content

dzhan_ru

Clients
  • Posts

    63
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

dzhan_ru's Achievements

  1. I posted my solution there, feel free to try it. ;)
  2. If you need any additional info on my server/settings, or need to run some scripts to test - feel free to PM me. ;)
  3. And thanks a lot for prompt answers btw, awesome support! ;)
  4. OK, I figured it out. You're relying on $LocaleInfo["mon_thousands_sep"] and $LocaleInfo["mon_decimal_point"] to fix the value for MySQL. localeconv() on my server returns following array (currency/monetary values aren't set, no idea why): Array ( [decimal_point] => . [thousands_sep] => [int_curr_symbol] => [currency_symbol] => [mon_decimal_point] => [mon_thousands_sep] => [positive_sign] => [negative_sign] => [int_frac_digits] => 127 [frac_digits] => 127 [p_cs_precedes] => 127 [p_sep_by_space] => 127 [n_cs_precedes] => 127 [n_sep_by_space] => 127 [p_sign_posn] => 127 [n_sign_posn] => 127 [grouping] => Array ( ) [mon_grouping] => Array ( ) ) So I changed: $floatString = str_replace($LocaleInfo["mon_decimal_point"] , ".", $floatString); $floatString = str_replace($LocaleInfo["mon_thousands_sep"] , "", $floatString); To: $floatString = str_replace($LocaleInfo["decimal_point"] , ".", $floatString); $floatString = str_replace($LocaleInfo["thousands_sep"] , "", $floatString); Now it seems to work fine.
  5. Oh, yes, seems the refreshing part was related to POST data indeed. Thanks! What about numbers being rounded when entering the location normal way, how do I fix that in 1.0.1?
  6. Hey, thanks for a great addon! I just have one problem that I can't figure out how to fix. No matter how I enter the location - typing it or entering the exact coordinates, it gets written to database rounded. So 'Moscow, Russia' becomes 55.000000,37.000000. Even if I go to phpMyAdmin and manually change it to 55.452083,37.370348, after refreshing the map in the browser, the values in the database go back to rounded ones. Found the fixed map.php on page 8 of the topic, but it's for 1.0.0 beta 2. Should I use it on the latest version?
  7. Is there a way to show reputation in topic view as a profile field (like Group, Posts, Joined, etc) rather than as a separate block? Takes too much space imo.
×
×
  • Create New...