Log in

View Full Version : adding this to the header without..


Xelation
08-29-2002, 01:37 PM
hey everyone I was just wondering if anyone could tell me how I could add the following information to the header without editing the phps files...

Welcome back, Xelation
View New Posts
Members: 2, Threads: 2, Posts: 17
Welcome to our newest member, Xeo The time now is 10:35 AM.
You last visited: 08-28-2002 06:05 PM.

and the $logincode

thanks

DrkFusion
08-29-2002, 04:55 PM
If you mean to the header template, Im not sure it can be done without editing, those information is found in the Forum Home templates, and the coding for that is found in index.php, I think header is run off global.php

DrkFusion
08-29-2002, 04:58 PM
I just took a look in global.php
$header='';
$footer='';

// parse PHP include ##################
eval(gettemplate('phpinclude',0,0));

// parse css, header & footer ##################
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
eval("\$footer .= \"".gettemplate('footer')."\";");

// parse other global templates

eval("\$gobutton = \"".gettemplate('gobutton')."\";");

$timediff='';
if ($bbuserinfo['timezoneoffset']!=0) {
if (abs($bbuserinfo['timezoneoffset'])==1) {
$timediff=" $bbuserinfo[timezoneoffset] hour";
} else {
$timediff=" $bbuserinfo[timezoneoffset] hours";
}
}

$timenow=vbdate($timeformat,time());

eval("\$timezone = \"".gettemplate('timezone')."\";");

Im not sure if this will work, but you best bet to get those info into the header would be to copy and paste the code from index.php below
// parse css, header & footer ##################

Erwin
08-29-2002, 05:32 PM
Add it to the phpinclude template. There is no need to edit any php files then.