WordPress.org

Ready to get started?Download WordPress

Forums

Where is the prefix store for admin? (2 posts)

  1. ppyczek
    Member
    Posted 2 years ago #

    Hi,

    I am trying to make the blog a two language website. I managed to workout a way. I have a script that saves info in cookies about what the choice is and the website itself works fine. What i did is I duplicated all the DB tables with a new prefix 'pl_wp_' and depending on which language version i click, the blog uses either tables with 'wp_' or 'pl_wp_' prefix.

    I added this line to wp-config.php

    if ($c_lang=='p') { $table_prefix  = 'pl_wp_'; }
    else { $table_prefix  = 'wp_';}

    and with my small script i have, it works fine. I know this is not the most professional way to do that but the scripts for twolanguage websites just did not meet our expectations. ok.. and...

    What does not work is the admin. Do you have any clue where i have to insert ifs to change the prefix for the administration dashboard? I seems that is might have separate config file. I founbd setup-config.php but changes i did there make no difference.

    I will be grateful for help ;)

  2. ppyczek
    Member
    Posted 2 years ago #

    Ok.. i found the solution. It is "spend more time on google" :)

    Found this to be the solution http://www.eligeotravez.net/2007/04/17/changing-table-prefix-for-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Topic