26
BoDGie
Re:TRUE Multisites hack.... at last!
  • 2004/10/11 10:07

  • BoDGie

  • Just popping in

  • Posts: 65

  • Since: 2003/8/4 1


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

25
sgshell
Re:TRUE Multisites hack.... at last!
  • 2004/10/8 2:44

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


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?

24
BoDGie
Re:TRUE Multisites hack.... at last!
  • 2004/10/8 1:11

  • BoDGie

  • Just popping in

  • Posts: 65

  • Since: 2003/8/4 1


http://www.virtuepark.com



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

23
sgshell
Re:TRUE Multisites hack.... at last!
  • 2004/10/8 1:01

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


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

22
BoDGie
Re:TRUE Multisites hack.... at last!
  • 2004/10/8 0:18

  • BoDGie

  • Just popping in

  • Posts: 65

  • Since: 2003/8/4 1


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 :)

21
sgshell
Re:TRUE Multisites hack.... at last!
  • 2004/10/7 11:48

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


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?

20
intel352
Re:TRUE Multisites hack.... at last!
  • 2004/10/7 11:30

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


i believe for the method they are referring to here, you must have all php files stored in one place (a single XOOPS install)

19
sgshell
Re:TRUE Multisites hack.... at last!
  • 2004/10/7 11:04

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


Quote:

BoDGie wrote:
That code will allow you to run several websites off the one install.. all with seperate databases etc.....

Basically the way it works is if you type www.domainA.com it will remove the www and the .com and then assign that to $subdominio the code will then instruct XOOPS to include the file called domainA.mainfile.php

If you do www.domainB.com it will include domainB.mainfile.php

You setup a seperate mainfile for each domain you wish to use..


Thanks....

I assume that
i need to create Bdomain.mainfile.php <==is this file going to be install in Adomain or Bdomain?


And what exact file needed for Bdomain?

18
BoDGie
Re:TRUE Multisites hack.... at last!
  • 2004/10/7 6:16

  • BoDGie

  • Just popping in

  • Posts: 65

  • Since: 2003/8/4 1


That code will allow you to run several websites off the one install.. all with seperate databases etc.....

Basically the way it works is if you type www.domainA.com it will remove the www and the .com and then assign that to $subdominio the code will then instruct XOOPS to include the file called domainA.mainfile.php

If you do www.domainB.com it will include domainB.mainfile.php

You setup a seperate mainfile for each domain you wish to use..

17
sgshell
Re:TRUE Multisites hack.... at last!
  • 2004/10/7 2:25

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


Quote:

<?php
if (!(isset($subdominio))) {
$subdominio = $HTTP_HOST;
$subdominio = str_replace("www.","",$subdominio);
$subdominio = str_replace(".com","",$subdominio);
$subdominio = str_replace(".net","",$subdominio);
$subdominio = str_replace(".org","",$subdominio);
}

if (!(empty($subdominio))) {
include($subdominio."mainfile.php");
}
?>


Hi, sorry i was confuse with above code for sharing file. Could someone explain abit more detail how it work?

If I have
A domain = >>> www.Adomain.com <<< main
B Domain = >>> www.Bdomain.com <<<like to use the file in www.Adomin.com

What are the file needed to change in Adomain and B domain to get it work?

Login

Who's Online

153 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits