1

(13 replies, posted in PunBB 1.2 troubleshooting)

tyr to tweak mysql server for heavy load by using more memory for cache .. ther are plenty of guides on net how to do that ...

ko sem nazadnje gledu prevod ni bil utf-8 .. a je zdej bolje?

ok .. i had same problems like u all (with utf slovenian language ... so i start lookin why my message is f* up) coz if i eneter utf message in phpMyAdmin post was ok .. but not if i posted via forum .. so what i did was

1. cahnged this in mysql.php (round line 50)

if (@mysql_select_db($db_name, $this->link_id)) {
   @mysql_query("SET NAMES utf8", $this->link_id);
   return $this->link_id;
} else {
   error('Unable to select database. MySQL reported: '.mysql_error(), __FILE__, __LINE__);
}

2. in functions.php i found out that pun_trim somehow chaneged some of my utf letters so i did this (round line 721)

function pun_trim($str)
{
    /*
    global $lang_common;

    if (strpos($lang_common['lang_encoding'], '8859') !== false)
    {
        $fishy_chars = array(chr(0x81), chr(0x8D), chr(0x8F), chr(0x90), chr(0x9D), chr(0xA0));
        return trim(str_replace($fishy_chars, ' ', $str));
    }
    else
        
    */    
    return trim($str);
}

everythings works just fine now