81
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?



82
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 http://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 http://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?



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

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


Quote:

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 = >>> http://www.Adomain.com <<< main
B Domain = >>> http://www.Bdomain.com <<http://www.Adomin.com

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



84
sgshell
Re: How to customise difference Block with difference design?
  • 2004/10/5 11:11

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


Quote:
<{foreach item=block from=$xoops_lblocks}> <{include file="default/theme_blockleft.html"}> <{/foreach}>


The above was taken ftom the default theme.html:

Do anyone know how to add a "if""else" command so that it can call to others theme_xxx.html instead of theme_blockleft.html??



85
sgshell
Re: How to customise difference Block with difference design?
  • 2004/10/4 8:07

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4




Thanks but i still do not know where to insert and how the code look like?

I do no want to try ML package at this moment..i prefer a clean insert of code so i know what go wrong when it do not run properly....



86
sgshell
How to customise difference Block with difference design?
  • 2004/10/4 3:21

  • sgshell

  • Just popping in

  • Posts: 94

  • Since: 2004/10/4


Hi,

Do anyone know where can i modify to made difference block title with difference design?



I do not know where to start even through i have few years of theme design experience with phpnuke.

Please help...thks




TopTop
« 1 ... 6 7 8 (9)



Login

Who's Online

165 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

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

Latest GitHub Commits