PDA

View Full Version : MultiSite Hack


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,

master
29.06.2004, 17:12
If you want to install second subsite, copy subsite1 directory to Mambo site root and rename to subsite2, redo 5-7 step.


ooops, http://mambers.com/images/smilies/redface.gif das hab ich nicht richtig übersetzt, bitte in der Readme ausbessern, Christian.

Gruss, Uli

panter011
23.07.2004, 02:17
hi,
What is the best multisites hack?
mamsites or multisites?

and I have a 2 question:
Can I have one site in english and the second in german?

Thanks

panter011
29.07.2004, 03:49
Hello, please can you tell me if this multisites hack is working fine,
can I see any website running this hack?

Thank you

descartes
30.07.2004, 06:17
@panther011

Please download the tripack (http://mamboforge.net/projects/mamsites/) from mamboforge. IMO, it is better to start with this pre-configured package.

Yes, you can use one Site in German and one in English because the package use 3 configuration.php files for the alpha, beta and gamma Site. If you understand german please read this (http://www.mamboreport.de/index.php?option=content&task=view&id=387) article. But i don't have a Live Site and i tested the package only local!

Sorry for my bad english. :mad:

Greetings,