tslocum / kusaba

This project is discontinued. Use TinyIB: https://gitlab.com/tslocum/TinyIB
0 stars 1 forks source link

mb #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
this doesnt work on servers with mb_ not enabled.

Anyway to bypass it?

Original issue reported on code.google.com by Sventhek...@gmail.com on 2 Sep 2007 at 7:45

GoogleCodeExporter commented 9 years ago
and by the way i cant enable it, im using a godaddy public host

Original comment by Sventhek...@gmail.com on 2 Sep 2007 at 7:46

GoogleCodeExporter commented 9 years ago
Well, this might screw the text up, but it is worth a shot.

Open up lib/gettext/gettext.inc.php

Replace

/**
 * Convert the given string to the encoding set by bind_textdomain_codeset.
 */
function _encode($text) {
    $source_encoding = mb_detect_encoding($text);
    $target_encoding = _get_codeset();
    if ($source_encoding != $target_encoding) {
        return mb_convert_encoding($text, $target_encoding, $source_encoding);
    }
    else {
        return $text;
    }
}

With

/**
 * Convert the given string to the encoding set by bind_textdomain_codeset.
 */
function _encode($text) {
    return $text;
}

And see what happens.  Let me know how it goes.

Original comment by tslocum on 2 Sep 2007 at 7:48

GoogleCodeExporter commented 9 years ago
wow that was the fastest response.

Ever.

Anyway, it installed correctly so now i just need to make an index or whatever.

Original comment by Sventhek...@gmail.com on 2 Sep 2007 at 7:53

GoogleCodeExporter commented 9 years ago
hmmm i am getting some errors, whenever i try to manage it says
domain.com/domain.com/manage.php when i try to log in

Original comment by Sventhek...@gmail.com on 2 Sep 2007 at 7:56

GoogleCodeExporter commented 9 years ago
also, 
Warning: mkdir(/home/content/a/n/i/aniblock/html/b): File exists in
/home/content/a/n/i/aniblock/html/inc/classes/manage.class.php on line 2001

happens when i try to make a new board

Original comment by Sventhek...@gmail.com on 2 Sep 2007 at 7:58

GoogleCodeExporter commented 9 years ago
disregard comment 5.

Original comment by Sventhek...@gmail.com on 2 Sep 2007 at 8:01

GoogleCodeExporter commented 9 years ago

Original comment by tslocum on 2 Sep 2007 at 8:09

GoogleCodeExporter commented 9 years ago
Okay problem.

On every link that is generated, my domain named is placed before it so for 
instance.

4chan.org/4chan.org/b/ is what it looks like

Original comment by Sventhek...@gmail.com on 2 Sep 2007 at 8:17

GoogleCodeExporter commented 9 years ago
Your paths area is incorrect.  This is an inefficient way to keep conversing 
back and
forth, so send me a message on gTalk or msn with this email address.

I'm eating dinner now so I won't be available for a few minutes, but afterwards 
I can
help.

Original comment by tslocum on 2 Sep 2007 at 8:20

GoogleCodeExporter commented 9 years ago
alright. I fixed it, sorry.

Original comment by Sventhek...@gmail.com on 2 Sep 2007 at 3:32