theprof wrote:
I have actually checked my cache settings as they were..I was running 774, and it has been working .....so I guess I keep it there
bd_csmc wrote:
it still has more integration that it needs to go through, esp concerning the dual login issue
http://au2.php.net/manual/en/language.constants.php
Like superglobals, the scope of a constant is global. You can access constants anywhere in your script without regard to scope. For more information on scope, read the manual section on variable scope.
Syntax
You can define a constant by using the define()-function. Once a constant is defined, it can never be changed or undefined.
<?php
// Constants prefixed with string "MLP" indicate Multi Language Pack constants
// If user comes to site with preceeding string "www." , remove it, not required
$httphostname = $_SERVER['HTTP_HOST'];
$hostname = str_replace("www.", "", $httphostname);
define('MLP_HOSTNAME', $hostname);
$domains['xoops.de'] = array(
'language'=>'de',
'domain_no'=>'1',
'partner_logo'=>'logo_german.jpg'
);
$domains['xoops.jp'] = array(
'language'=>'jp',
'domain_no'=>'2',
'partner_logo'=>'logo_japanese.jpg'
);
$domains['xoops.fr'] = array(
'language'=>'fr',
'domain_no'=>'3',
'partner_logo'=>'logo_french.jpg'
);
//Default to german language if not found
if (isset($domains[$hostname]['language'])) {
$language = $domains[$hostname]['language'];
$domain_number = $domains[$hostname]['domain_no'];
$logo = $domains[$hostname]['partner_logo'];
} else {
$language = 'de';
$domain_number = '1';
$logo = 'logo_german.jpg';
}
define('MLP_LANGUAGE', $language);
define('MLP_DOMAIN_NUMBER', $domain_number);
define('MLP_LOGO', $logo);
//Then set any other variables or constants needed for the Multi langauge pack
?>
iolai wrote:
Any idea what makes the right block disappear, even that I have "$xoopsOption['show_rblock'] = 1;" in the wrap code?
How to wrap static HTML content in Xoops
The following applies If you wish to have a page of HTML content wrapped inside XOOPS without using a content module. This example works if you want the HTML content files to be located in the root of your XOOPS installation. First create a PHP file with the following content using your favorite text editor. Notepad for windows is suitable for example.
<?php
include("mainfile.php");
include("header.php");
$xoopsOption['show_rblock'] = 1; //0 for no right block
?>
Your HTML Code here (Note: Do not include head and body tags)
<?php
include("footer.php");
?>