descartes
28.06.2004, 12:44
Hi, ich habe mir heute mal mal das MultiSites Projekt (http://mosforge.net/projects/multisites/) angeschaut. Bevor ich darüber aber eine News verfasse wollte ich mal fragen ob einer damit positive/negative Erfahrungen gesammelt hat. Wenn es positive Erfahrungen gibt, könnte man ja das hier mal Übersetzen (http://www.mambogtt.de):
----Start----
Multisites for Mambo
(This project tested with Mambo version 4.5.1.0.7, it may work with future versions of 4.5 released after the 4.5.1.0.7 maintenance release.)
This program is like mamsites, you can refer to mamsites's document.
--------------
Summary
--------------
This project let Mambo suport Multisites like:
1)Base on directory, eg:
http://www.yoursitename.com/ (main site)
http://www.yoursitename.com/subsite1 (subsite1)
http://www.yoursitename.com/subsite2 (subsite2)
...
2)Base on domain name (unfulfilment), eg:
http://www.yoursitename1.com/ (site1£©
http://www.yoursitename2.com/ (site2£©
...
Shared Mambo's sound code, shared database(or not), shared login and session(or not)...
-------------
installation
-------------
1) In your Mambo site root directory£¬rename configuration.php to config.php;
2) Decompression multisites.zip, copy all files under mambo directory to your Mambo site root directory, replace original files.
3) Copy config.php under root directory to site1 directory;
4) rename site1 directory to other name that you want, eg: subsite1;
5) modify site1(subsite1)/initsite.php, make $main_site_path to your site absolute path, like $mosConfig_absolute_path in config.php;
6) modify site1(subsite1)/classes/sitedatabase.php, find
$sql = str_replace('#__content_frontpage', 'site1_content_frontpage', $sql);
$sql = str_replace('#__menu', 'site1_menu', $sql);
$sql = str_replace('#__modules_menu', 'site1_modules_menu', $sql);
$sql = str_replace('#__modules', 'site1_modules', $sql);
$sql = str_replace('#__templates', 'site1_templates', $sql);
replace 'site1' with 'subsite1' (or other database prefix);
7) Use phpMyAdmin or other program connect to mambo database,
copy mos_content_frontpage to subsite1_content_frontpage
Copy mos_menu to subsite1_menu
Copy mos_modules_menu to subsite1_modules_menu
Copy mos_modules to subsite1_modules
Copy mos_templates to subsite1_templates
************************************************** ********
Note: Copy these database table you can let different site have different template, menu, module, and shared other data--eg:¡¡articles.
If you not shared contact component, under
$sql = str_replace('#__templates', 'subsite1_templates', $sql);
you can add:
$sql = str_replace('#__contact_details', 'subsite1_contact_details', $sql);
and then Use phpMyAdmin or other program
Copy mos_contact_details to subsite1_contact_details
and so on.
************************************************** *********
installaltion done.
If you want to install second subsite, copy subsite1 directory to Mambo site root and rename to subsite2, redo 5-7 step.
test you site:
http://www.yoursitename.com
and subsite:
http://www.yoursitename.com/subsite1
----Ende----
Danke im Voraus und Gruss,
----Start----
Multisites for Mambo
(This project tested with Mambo version 4.5.1.0.7, it may work with future versions of 4.5 released after the 4.5.1.0.7 maintenance release.)
This program is like mamsites, you can refer to mamsites's document.
--------------
Summary
--------------
This project let Mambo suport Multisites like:
1)Base on directory, eg:
http://www.yoursitename.com/ (main site)
http://www.yoursitename.com/subsite1 (subsite1)
http://www.yoursitename.com/subsite2 (subsite2)
...
2)Base on domain name (unfulfilment), eg:
http://www.yoursitename1.com/ (site1£©
http://www.yoursitename2.com/ (site2£©
...
Shared Mambo's sound code, shared database(or not), shared login and session(or not)...
-------------
installation
-------------
1) In your Mambo site root directory£¬rename configuration.php to config.php;
2) Decompression multisites.zip, copy all files under mambo directory to your Mambo site root directory, replace original files.
3) Copy config.php under root directory to site1 directory;
4) rename site1 directory to other name that you want, eg: subsite1;
5) modify site1(subsite1)/initsite.php, make $main_site_path to your site absolute path, like $mosConfig_absolute_path in config.php;
6) modify site1(subsite1)/classes/sitedatabase.php, find
$sql = str_replace('#__content_frontpage', 'site1_content_frontpage', $sql);
$sql = str_replace('#__menu', 'site1_menu', $sql);
$sql = str_replace('#__modules_menu', 'site1_modules_menu', $sql);
$sql = str_replace('#__modules', 'site1_modules', $sql);
$sql = str_replace('#__templates', 'site1_templates', $sql);
replace 'site1' with 'subsite1' (or other database prefix);
7) Use phpMyAdmin or other program connect to mambo database,
copy mos_content_frontpage to subsite1_content_frontpage
Copy mos_menu to subsite1_menu
Copy mos_modules_menu to subsite1_modules_menu
Copy mos_modules to subsite1_modules
Copy mos_templates to subsite1_templates
************************************************** ********
Note: Copy these database table you can let different site have different template, menu, module, and shared other data--eg:¡¡articles.
If you not shared contact component, under
$sql = str_replace('#__templates', 'subsite1_templates', $sql);
you can add:
$sql = str_replace('#__contact_details', 'subsite1_contact_details', $sql);
and then Use phpMyAdmin or other program
Copy mos_contact_details to subsite1_contact_details
and so on.
************************************************** *********
installaltion done.
If you want to install second subsite, copy subsite1 directory to Mambo site root and rename to subsite2, redo 5-7 step.
test you site:
http://www.yoursitename.com
and subsite:
http://www.yoursitename.com/subsite1
----Ende----
Danke im Voraus und Gruss,