xoops forums

Forum Index


Board index » All Posts (sgshell)




sgshell

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

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?


sgshell

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

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

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?


sgshell

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

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

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?


sgshell

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

Re: How to customise difference Block with difference design?

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


sgshell

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

Re: How to customise difference Block with difference design?



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....


sgshell

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

How to customise difference Block with difference design?

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)