Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • a question concerning ringmaster’s solution. I am sorry but I didn’t quite understand what to do with this code, where I should put these lines?
    /*
    Plugin Name: Unmanage Posts
    Description: Require manage_posts capability to manage posts
    Author: Owen Winkler
    Version: 1.0
    Author URI: asymptomatic.net/
    */
    add_action(‘admin_menu’, ‘my_admin_menu’);
    add_filter(‘capabilities_list’, ‘my_caps_list’);
    // Redefine some menu cap requirements:
    function my_admin_menu() {
    // Make the menu variables accessable here:
    global $menu, $submenu;
    $submenu[‘edit.php’][5] = array(__(‘Posts’), ‘manage_posts’, ‘edit.php’);
    }
    // Define a new capability for the Role Manager to use:
    function my_caps_list($caps) {
    $caps[] = ‘manage_posts’;
    return $caps;
    }

    could you help me out? thank you

    Thread Starter cooldown

    (@cooldown)

    emptying cache didn’t help,
    well maybe i will find a solution one day 🙂
    thanks

    Thread Starter cooldown

    (@cooldown)

    thank you moshu for your attention, i got little bit nervous because of all this problem, so i had to eat a cake to calm down 🙂

    at least i got to the initial problem, at first I made a mistake and put in wp-db after line 43
    mysql_query(“SET NAMES ‘utf8′”);
    so everything got messed up but then I put
    mysql_query(“SET NAMES ‘utf8′”, $conn);
    and at least everything went back to normal EXCEPT TWO LETTERS. But I had the same situation before putting SET NAMES, so it didn’t help.

    OK I’ll try to explain but I have to say that this is not the problem in WordPress only, this is smth related to mysql encodings… I have the same problem with my Phorum program.

    I use UTF-8 everywhere in WordPress and I write it in the Lithuanian language: http://mokslas.ktv.lt/
    I didn’t notice anything wrong when writing posts, all the letters show up correctly, by the way, beside Latin letters Lithuanian has additional letters: ą?ęėįšųūž
    Problems arise when I try to restore posts, etc. from a backup copy and problems only with TWO letters “?” and capital “Š” – you cannot restore them; strange characters show up instead of them when restoring from a backup. You can see this in the first experimental post: http://mokslas.ktv.lt/

    I have read in forums that this happens with some characters, a bug in mysql or something. But all the guys say that SET NAMES in php code helps; in my case it made no difference though I tried to back through WordPress and through phpMyAdmin.

    Maybe there smth wrong when i open .sql backup file in editors like notepad but this is hardly a problem because only two letters are affected. Or maybe
    mysql_query(“SET NAMES ‘utf8′”, $conn);
    should be put in some other places in other files
    or maybe some other queries should be made
    I don’t know.

    Thread Starter cooldown

    (@cooldown)

    thanks for the link

    unfortunately, this didn’t help
    <?php
    mysql_query(“SET NAMES ‘utf8′”, $conn);
    ?>”
    it got worse, now ALL nonstandard characters became smth like Ä…Ä?ęėįšųūž

    maybe my provider’s mysql server is set incorrectly, i don’t know 🙁

Viewing 4 replies - 1 through 4 (of 4 total)