Hi there suria,
This is just a guess, but I think you're going to want to try placing it in the header.php called by this function:
function doModule(&$tmpl,$cache='') {
global $zc, $z_t1;
$tmpl = str_replace('{$BeNiceToZina}', htmlZina($cache), $tmpl);
if ($zc['html_space']) $tmpl = preg_replace("/>\s*</s","><",$tmpl);
if ($zc['embed'] == 0) {
$tmpl = str_replace('{$htmlhead}', htmlHeader(), $tmpl);
echo $tmpl;
} else {
$tmpl = preg_replace("/<!DOCTYPE.*?<body.*?>/si", htmlHeader(true), $tmpl);
$tmpl = preg_replace("/<\/body>.*/si","", $tmpl);
#POSTNUKE=2, PHPNUKE=1
if ($zc['embed'] == 1 || $zc['embed'] == 2 || $zc['embed'] == 8) {
include("header.php");
global $bgcolor1, $bgcolor2, $bgcolor4;
$bgc02 = ($type == 1) ? $bgcolor4 : $bgcolor2;
OpenTable();
echo "$tmpl<style type='text/css'>.z_row0 { background-color:$bgcolor1; }.z_row1 { background-color:$bgc02; }</style>";
CloseTable();
include("footer.php");
} elseif ($zc['embed'] == 3) { #XOOPS
global $xoopsUser, $xoopsLogger, $xoopsConfig;
include_once XOOPS_ROOT_PATH."/header.php";
echo $tmpl;
include_once XOOPS_ROOT_PATH."/footer.php";
} elseif ($zc['embed'] >= 4 && $zc['embed'] <= 7) { # MAMBO / DRUPAL / PHPWEBSITE / E107
echo $tmpl;
}
}
}
where it calls
include("header.php");
is it's attempt to insert any custom html code before the CMS starts loading the normal page. If you place it there, you should be a-ok.
thanks,
json