Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

MultiSite

Asked Modified Viewed 2,475 times
S
Smolenkov_BN
S
E--------=(Competent experience responsibility is a rapid quality guarantee)=-
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Newbie

MULTISITE
(Nick Jones idea from 2010)


Example of bilingual two-site on one "PHPFusion v.7.02.07" rendering-engine creation.
As a result You have two absolutely different site on one rendering-engine.

Read

LICENSE.TXT
INSTALL.TXT

and look

screenshot_a.png
screenshot_b.png
screenshot_c.png

on how to install.
Smolenkov_BN attached the following file:
multisite.zip [No information available / 335 Downloads]
0 replies

3 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Im not downloading them files, cant be bothered. Where have you been? On some deserted island or some such? Dude multi site was added to php-fusion core a long time ago or am I the one who has missed something here. What? Lol aye! :D eek!
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Well, his multi-site is not the multisite we have. His multisite is like this...


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!


He's pairing several database into 1 installation with multiple DB_prefixes, so dbconnect() will read from few sites at a go. Unique I give it.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

:D :G
0 replies

Category Forum

Addons Open Testing

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
S
S
E--------=(Competent experience responsibility is a rapid quality guarantee)=-
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet