xoops forums

sgshell

Just popping in
Posted on: 2004/10/7 11:48
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#21

Re:TRUE Multisites hack.... at last!

I understand i need to have one full intallation..

so i assume if i have Adomain install with xoops. ANd i want Bdomain to use Adomain file and database.

What do i need to do for Bdomain? What file i need to install in Bdomain?

BoDGie

Just popping in
Posted on: 2004/10/8 0:18
BoDGie
BoDGie (Show more)
Just popping in
Posts: 65
Since: 2003/8/4 1
#22

Re:TRUE Multisites hack.... at last!

Ok... Technically (I think :S, havent tried it personally) You could use that code in conjunction with my subsite module to run multiple sites from a single install with shared common tables...

Basically add that code to your mainfile inclusion code, make your domainA.mainfile.php and domainB.mainfile.php, make a copy of domainA's tables but rename it to be domainB (eg, you could have the prefix for domainA's database as 'domainA' and then the prefix for domainB's database 'domainB'.. BUT AT THE MOMENT THEY MUST BOTH BE IN THE SAME DATABASE!!!!) install the subsite module onto domainB and then choose which tables you want to make common.

Sounds simple doesnt it :P

Come to think of it that may not work just yet... - Consider it added to the 'wish list' for the module :)

sgshell

Just popping in
Posted on: 2004/10/8 1:01
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#23

Re:TRUE Multisites hack.... at last!

thks...where can i download yours my subsite module ?

BoDGie

Just popping in
Posted on: 2004/10/8 1:11
BoDGie
BoDGie (Show more)
Just popping in
Posts: 65
Since: 2003/8/4 1
#24

Re:TRUE Multisites hack.... at last!

http://www.virtuepark.com



Keep in mind it is outdated and lacks functionality....

sgshell

Just popping in
Posted on: 2004/10/8 2:44
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#25

Re:TRUE Multisites hack.... at last!

thks BoDGie...for the very nice hack.
I understand it is only use for sharing of database.....

but how about sharing of file that mention in the above share file CODE article?? www.Adomain.com with xoops....www.Bdomain.com without anything...How B can share XOOPS file with A? What are the step needed for B to able to share the file in A?

BoDGie

Just popping in
Posted on: 2004/10/11 10:07
BoDGie
BoDGie (Show more)
Just popping in
Posts: 65
Since: 2003/8/4 1
#26

Re:TRUE Multisites hack.... at last!

You have to edit your mainfile.php and replace it with the code you mentioned earlier.

reynaldo

Not too shy to talk
Posted on: 2004/10/17 18:02
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#27

Re:TRUE Multisites hack.... at last!

I have about 10 sites running on XOOPS with independent databases and files and sharing just a few tables.

The way I did it was with a simple modification to the database.php file. Also the hack can be turned on/off editing a line at mainfile.php

I never had any problems caused by sharing tables.

BoDGie

Just popping in
Posted on: 2004/10/22 1:50
BoDGie
BoDGie (Show more)
Just popping in
Posts: 65
Since: 2003/8/4 1
#28

Re:TRUE Multisites hack.... at last!

Yeah all depends on what tables you share... Some can get confused on file locations or group permissions - but most things if done right will work with no problems.

sgshell

Just popping in
Posted on: 2004/10/22 3:20
sgshell
sgshell (Show more)
Just popping in
Posts: 94
Since: 2004/10/4
#29

Re:TRUE Multisites hack.... at last!

i understand on the part of share database, as i have create for mutiple phpnuke site share same user database before...and i think XOOPS have a better, advance and easy solution on sharing database compare to phpnuke.

The only part confuse me....is the part on sharing of FILE which only "ABC" site have it and the "DEF" site have nothing but using the FILE(not database)of "ABC"?

If i surf to "DEF" , don't "DEF" need a index file??? it can't work for just having a mainfile.php in it....

Is it i have to do is to put the "index.php" and the modify "mainfile.php" in "DEF"???

BoDGie

Just popping in
Posted on: 2004/10/22 4:29
BoDGie
BoDGie (Show more)
Just popping in
Posts: 65
Since: 2003/8/4 1
#30

Re:TRUE Multisites hack.... at last!

Ok.... Here's how you do it.

Say you have /home/mywebsite/public_html/
Upload your XOOPS installation there and install it, etc.
Make a copy of your mainfile.php and rename it to ABC.mainfile.php
Edit mainfile.php to have the modified code.
Point www.ABC.com to /home/mywebsite/public_html/

Basically when you goto www.ABC.com it will first goto read mainfile.php but mainfile.php has code in it to grab the domain name ABC and then direct it to ABC.mainfile.php

Next make a copy of the database and the ABC.mainfile.php but call it DEF.mainfile.php
Edit DEF.mainfile.php with the new database information.
Point www.DEF.com to /home/mywebsite/public_html/

Now when you goto www.DEF.com it will grab the information from DEF.mainfile.php

For every other site you want running of the same install just make a new copy of the database and a new mainfile.php to match it.