(2011-02-24, 06:06 PM)dizan Wrote: [ -> ]2-can i use 2 mybb installation in 2 language in two different subdomain ,but all statics and users such online users and total users be together?
http://pcbook.ir
Nope. I've checked. It requires manually editing a lot of php scripts.
The Global variable
"$config['database']['table_prefix'] = ''mybb_";
Needs to be adapted to be two prefixes.
"$config['database']['table_par_prefix'] = ''mybb_0_"
"$config['database']['table_chi_prefix'] = ''mybb_1_"
Where table_par_prefix' is for the first install, which all the user data related tables, the site themes
Where table_chi_prefix is for the second install, which is all the forum related tables, polls, etc.
In the first install:
"$config['database']['table_par_prefix'] = ''mybb_0_"
"$config['database']['table_chi_prefix'] = ''mybb_0_"
In the second install:
"$config['database']['table_par_prefix'] = ''mybb_0_"
"$config['database']['table_chi_prefix'] = ''mybb_1_"
In the third install:
"$config['database']['table_par_prefix'] = ''mybb_0_"
"$config['database']['table_chi_prefix'] = ''mybb_2_"
The coding within the PHP scripts, need to be replaced with global constants, based on those variables.
like:
Defiine the 'user' table as a global, that is a combination of 'par_prefix" and "user"
So instead of using: ['table_prefix'].user, with is manually coded in the PHP scripts, get them to point to the global constant conceptially like
['user_table]
Where [user_table] is global constant: "mybb_0_user"
Then add in another forum type called "link", that generates an html link from one installation to the next installation.