MULTISITE
(Nick Jones idea from 2010)
Example of bilingual two-site on one rendering-engine creation
1. Upload into the temporal folder "PHPFusion v.7.02.07 with English "iso-8859-1" locale files.
2. Open file:
locale/English/global.php
Search for:
$locale['charset'] = "iso-8859-1";
Replace with:
$locale['charset'] = "utf-8";
3. Upload into the temporal folder Russian "utf-8" locale files.
4. Upload into the root of your server folder "PHPFusion v.7.02.07 English-Russian" files.
5. Change "_config.php" file on "config.php" file with zero size.
6. Install "PHPFusion v.7.02.07 English-Russian" with options:
Locale: Russian
Database table prefix: fusion_ru_
Cookie prefix: fusion_ru_
7. Change "config.php" file on "config.php" file with zero size.
8. Install "PHPFusion v.7.02.07 English-Russian" with options:
Locale: English
Database table prefix: fusion_en_
Cookie prefix: fusion_en_
9. Open from "MultiSite" archive file:
config.php
Enter necessary data with "<Your...>" mark:
<?php
// Database Settings
$db_host = "<Your database host>";
$db_user = "<Your database user>";
$db_pass = "<Your database password>";
$db_name = "<Your database name>";
if (isset($_COOKIE['multisite'])) {
$db_prefix = $_COOKIE['multisite'];
define("DB_PREFIX", $_COOKIE['multisite']);
define("COOKIE_PREFIX", $_COOKIE['multisite']);
}
else {
$db_prefix = "fusion_en_";
define("DB_PREFIX", "fusion_en_");
define("COOKIE_PREFIX", "fusion_en_");
}
?>
10. Upload into the root of your server from "MultiSite" archive 3 files:
/config.php
/multisite_en.php
/multisite_ru.php
11. Login as administrator.
Open "Admin Panel" => "System Admin" => "Site Links"
"Add Site Link"
Link Name: ENGLISH
Link URL: multisite_en.php
Visibility: Public
Order: 1
Position:
navigation panel only
navigation panel and sub-header
* sub-header only
Click "Save Link".
"Add Site Link"
Link Name: RUSSIAN
Link URL: multisite_ru.php
Visibility: Public
Order: 2
Position:
navigation panel only
navigation panel and sub-header
* sub-header only
Click "Save Link".
Execute for other
"Edit"
Position:
* navigation panel only
navigation panel and sub-header
sub-header only
Logout as administrator.
12. —lick "RUSSIAN" and execute point 11.
Installation done!
As a result You have two absolutely different site ("ENGLISH" and "RUSSIAN") on one "PHPFusion v.7.02.07" rendering-engine!
Category Forum
Addons Open TestingLabels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions